Package com.founder.fix.fixflow.core.task

Examples of com.founder.fix.fixflow.core.task.TaskDefinition


*/
public class PotentialOwnerOneAssignmentImpl implements AssignmentHandler {

  public void assign(Assignable assignable, ExecutionContext executionContext) {
    // TODO 自动生成的方法存根
    TaskDefinition taskDefinition = assignable.getTaskDefinition();

    List<TaskAssigneeDefinitionTo> taskAssigneeDefinitionTos = taskDefinition.getTaskAssigneeDefinitionTos();

    for (TaskAssigneeDefinitionTo taskAssigneeDefinitionTo : taskAssigneeDefinitionTos) {

      if (taskAssigneeDefinitionTo.getUserIdExpression() != null) {
        List<String> resultList = executionExpression(taskAssigneeDefinitionTo.getUserIdExpression(), executionContext);
View Full Code Here


   
   
    Object valueObject=Context.getAbstractScriptLanguageMgmt().getVariable("selectInfo");
    boolean succecd = false;
    if(valueObject != null){
      TaskDefinition taskDefinition = assignable.getTaskDefinition();
      String nodeId = taskDefinition.getUserTaskNode().getId();
      @SuppressWarnings("unused")
      String taskId=assignable.getId();
      List<Map<String, String>> selectInfoList = (List<Map<String, String>> )valueObject;
     
      for(Map<String, String> seleInfoMap : selectInfoList){
//        String _taskId = seleInfoMap.get("taskId");
        String _nodeId = seleInfoMap.get("nodeId");
        String _processer = seleInfoMap.get("processer");
       
        if(nodeId.equals(_nodeId)){
          assignable.setAssignee(_processer);
          succecd = true;
          break;
        }
      }
    }
   
   
    if(!succecd){
      TaskDefinition taskDefinition=assignable.getTaskDefinition();
     
      List<TaskAssigneeDefinitionTo> taskAssigneeDefinitionTos = taskDefinition.getTaskAssigneeDefinitionTos();

      for (TaskAssigneeDefinitionTo taskAssigneeDefinitionTo : taskAssigneeDefinitionTos) {

        if (taskAssigneeDefinitionTo.getUserIdExpression() != null) {
          List<String> resultList = executionExpression(taskAssigneeDefinitionTo.getUserIdExpression(), executionContext);
View Full Code Here

public class PotentialOwnerAssignmentImpl implements AssignmentHandler {

  public void assign(Assignable assignable, ExecutionContext executionContext) {
    // TODO 自动生成的方法存根
    TaskDefinition taskDefinition=assignable.getTaskDefinition();
   
    List<TaskAssigneeDefinitionTo> taskAssigneeDefinitionTos = taskDefinition.getTaskAssigneeDefinitionTos();

    for (TaskAssigneeDefinitionTo taskAssigneeDefinitionTo : taskAssigneeDefinitionTos) {

      if (taskAssigneeDefinitionTo.getUserIdExpression() != null) {
        List<String> resultList = executionExpression(taskAssigneeDefinitionTo.getUserIdExpression(), executionContext);
View Full Code Here

*/
public class HumanPerformerAssignmentImpl implements AssignmentHandler {

  public void assign(Assignable assignable, ExecutionContext executionContext) {
    // TODO 自动生成的方法存根
    TaskDefinition taskDefinition=assignable.getTaskDefinition();
   
    List<TaskAssigneeDefinitionTo> taskAssigneeDefinitionTos = taskDefinition.getTaskAssigneeDefinitionTos();

    for (TaskAssigneeDefinitionTo taskAssigneeDefinitionTo : taskAssigneeDefinitionTos) {
     
   

View Full Code Here

        }
       
       
        taskInstance.setDraft(true);
       
        TaskDefinition taskDefinition=taskInstance.getTaskDefinition();
       
        if (taskDefinition != null && taskDefinition.getDescriptionExpression() != null) {

          Object result = ExpressionMgmt.execute(taskDefinition.getDescriptionExpression(), getExecutionContext());
          if (result != null) {
            taskInstance.setDescription(result.toString());
          } else {
            taskInstance.setDescription(taskInstance.getToken().getFlowNode().getName());
          }
View Full Code Here

TOP

Related Classes of com.founder.fix.fixflow.core.task.TaskDefinition

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.