}
} else {
String typeId = assignPolicyType.getId();
AssignPolicyConfig assignPolicyConfig = Context.getProcessEngineConfiguration().getAssignPolicyConfig();
AssignPolicy assignPolicy = null;
for (AssignPolicy assignPolicyObj : assignPolicyConfig.getAssignPolicy()) {
if (assignPolicyObj.getId().equals(typeId)) {
assignPolicy = assignPolicyObj;
break;
}
}
if (assignPolicy.getClassImpl() == null || assignPolicy.getClassImpl().equals("")) {
throw new FixFlowException("任务的分配策略没有实现类,请检查!");
} else {
String classImpl = assignPolicy.getClassImpl();
AssignmentHandler assignmentHandler = ProcessObjectFactory.FACTORYINSTANCE.createAssignmentHandler(classImpl);
assignmentHandler.assign(assignable, executionContext);
}