Package com.founder.fix.bpmn2extensions.fixflow

Examples of com.founder.fix.bpmn2extensions.fixflow.TaskCommand


            UserTask userTask = (UserTask) sequenceFlow.getTargetRef();
            for (ExtensionAttributeValue extensionAttributeValue : userTask.getExtensionValues()) {
              FeatureMap extensionElements = extensionAttributeValue.getValue();
              for (Entry entry : extensionElements) {
                if (entry.getValue() instanceof TaskCommand) {
                  TaskCommand taskCommand = (TaskCommand) entry.getValue();
                  taskCommands.add(taskCommand);
                }
              }
            }
          }
        }
      }
    }

    for (TaskCommand taskCommand : taskCommands) {
      if (taskCommands.size() > 0 && taskCommand != null) {
        if (taskCommand.getCommandType().equals("submit") || taskCommand.getCommandType().equals("startandsubmit")) {
          return;
        }

      }
    }
View Full Code Here


          for (ExtensionAttributeValue extensionAttributeValue : userTask.getExtensionValues()) {
            FeatureMap extensionElements = extensionAttributeValue.getValue();

            for (Entry entry : extensionElements) {
              if (entry.getValue() instanceof TaskCommand) {
                TaskCommand taskCommand = (TaskCommand) entry.getValue();
                if (taskCommand.getCommandType().equals("rollBack")) {
                  sb.append(((UserTask) flowElement).getId() + " 含有多实例的节点不能做退回处理;" + "");
                }

              }
            }
View Full Code Here

      for (ExtensionAttributeValue extensionAttributeValue : ((UserTask) flowElement).getExtensionValues()) {
        FeatureMap extensionElements = extensionAttributeValue.getValue();

        for (Entry entry : extensionElements) {
          if (entry.getValue() instanceof TaskCommand) {
            TaskCommand taskCommand = (TaskCommand) entry.getValue();
            if (taskCommand != null) {
              return;
            }
          }
        }
View Full Code Here

        JsonNode itemsNode = taskCommandNode.get(EDITOR_PROPERTIES_GENERAL_ITEMS);
        if(itemsNode !=null){
          Iterator<JsonNode> taskcommandIterator = itemsNode.getElements();
          while(taskcommandIterator.hasNext()) {
            JsonNode taskCommandItemNode = taskcommandIterator.next();
            TaskCommand taskCommand = FixFlowFactory.eINSTANCE.createTaskCommand();
            String commandName = taskCommandItemNode.get(PROPERTY_TASKCOMMAND_NAME).asText();
            String commandId = taskCommandItemNode.get(PROPERTY_TASKCOMMAND_ID).asText();
            String commandType = taskCommandItemNode.get(PROPERTY_TASKCOMMAND_TYPE).asText();
            String isSaveData = taskCommandItemNode.get(PROPERTY_TASKCOMMAND_IS_SAVEDATA).asText();
            String isSimulation =  taskCommandItemNode.get(PROPERTY_TASKCOMMAND_IS_SIMULATION_RUN).asText();
            String isVerify = taskCommandItemNode.get(PROPERTY_TASKCOMMAND_IS_VERIFICATION).asText();
            String paraExpression = taskCommandItemNode.get(PROPERTY_TASKCOMMAND_PARA_EXPRESSION).asText();
            String expression = taskCommandItemNode.get(PROPERTY_TASKCOMMAND_EXPRESSION).asText();
             
            taskCommand.setCommandType(commandType);
            taskCommand.setId(commandId);
            taskCommand.setName(commandName);
            taskCommand.setIsSimulationRun(isSimulation);
            taskCommand.setIsSaveData(isSaveData);
            taskCommand.setIsVerification(isVerify);
            //执行表达式
            Expression expression2 = FixFlowFactory.eINSTANCE.createExpression();
            expression2.setName(expression);
            expression2.setValue(expression);
            taskCommand.setExpression(expression2);
            //参数表达式
            Expression expression3 = FixFlowFactory.eINSTANCE.createExpression();
            expression3.setName(paraExpression);
            expression3.setValue(paraExpression);
            taskCommand.setParameterExpression(expression3);
            BpmnModelUtil.addExtensionElement(task, FixFlowPackage.Literals.DOCUMENT_ROOT__TASK_COMMAND, taskCommand);
          }
        }
      }
     
View Full Code Here

TOP

Related Classes of com.founder.fix.bpmn2extensions.fixflow.TaskCommand

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.