Package com.founder.fix.bpmn2extensions.coreconfig

Examples of com.founder.fix.bpmn2extensions.coreconfig.AssignPolicy


      }
    } 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);
      }
View Full Code Here

TOP

Related Classes of com.founder.fix.bpmn2extensions.coreconfig.AssignPolicy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.