Package com.founder.fix.bpmn2extensions.fixflow

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


   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetExpression(Expression newExpression, NotificationChain msgs) {
    Expression oldExpression = expression;
    expression = newExpression;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FixFlowPackage.SKIP_ASSIGNEE__EXPRESSION, oldExpression, newExpression);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here


   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetExpression(Expression newExpression, NotificationChain msgs) {
    Expression oldExpression = expression;
    expression = newExpression;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FixFlowPackage.TIME_EXPRESSION__EXPRESSION, oldExpression, newExpression);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

                ConnectorParameterInputs connectorParameterInputsElm = FixFlowFactory.eINSTANCE.createConnectorParameterInputs();
                connectorParameterInputsElm.setId(id);
                connectorParameterInputsElm.setName(name);
                connectorParameterInputsElm.setDataType(dataType);

                Expression expression = FixFlowFactory.eINSTANCE.createExpression();
                expression.setName(expression_name);
                expression.setValue(expression_value);
                connectorParameterInputsElm.setExpression(expression);
               
                ConnectorInstance.getConnectorParameterInputs().add(connectorParameterInputsElm);
              }
            
              }
             
             
              JsonNode connectorParameterOutputsNode = connectorInstanceItemNode.get(PROPERTY_CONNECTORPARAMETEROUTPUTS);
              if(connectorParameterOutputsNode !=null){
               
              Iterator<JsonNode> connectorParameterOutputsIterator = connectorParameterOutputsNode.getElements();
              while (connectorParameterOutputsIterator.hasNext()) {
                JsonNode connectorParameterOutputsItemNode = connectorParameterOutputsIterator.next();
                String variableTarget = connectorParameterOutputsItemNode.get(PROPERTY_CONNECTORPARAMETEROUTPUTS_VARIABLETARGET).asText();
                  String expression_name = connectorParameterOutputsItemNode.get(PROPERTY_CONNECTORPARAMETEROUTPUTS_EXPRESSION_NAME).asText();
                  String expression_value = connectorParameterOutputsItemNode.get(PROPERTY_CONNECTORPARAMETEROUTPUTS_EXPRESSION_VALUE).asText();
               
                  ConnectorParameterOutputs connectorParameterOutputsElm = FixFlowFactory.eINSTANCE.createConnectorParameterOutputs();
                  connectorParameterOutputsElm.setVariableTarget(variableTarget);

                Expression expression = FixFlowFactory.eINSTANCE.createExpression();
                expression.setName(expression_name);
                expression.setValue(expression_value);
                connectorParameterOutputsElm.setExpression(expression);
               
                ConnectorInstance.getConnectorParameterOutputs().add(connectorParameterOutputsElm);
              }
            
              }
             
             
              JsonNode connectorParameterOutputsDefNode = connectorInstanceItemNode.get(PROPERTY_CONNECTORPARAMETEROUTPUTSDEF);
              if(connectorParameterOutputsDefNode !=null){
               
              Iterator<JsonNode> connectorParameterOutputsDefIterator = connectorParameterOutputsDefNode.getElements();
              while (connectorParameterOutputsDefIterator.hasNext()) {
                JsonNode connectorParameterOutputsDefItemNode = connectorParameterOutputsDefIterator.next();
                String id = connectorParameterOutputsDefItemNode.get(PROPERTY_CONNECTORPARAMETEROUTPUTSDEF_ID).asText();
                  String name = connectorParameterOutputsDefItemNode.get(PROPERTY_CONNECTORPARAMETEROUTPUTSDEF_NAME).asText();
                  String dataType = connectorParameterOutputsDefItemNode.get(PROPERTY_CONNECTORPARAMETEROUTPUTSDEF_DATATYPE).asText();
               
                  ConnectorParameterOutputsDef connectorParameterOutputsDefElm = FixFlowFactory.eINSTANCE.createConnectorParameterOutputsDef();
                  connectorParameterOutputsDefElm.setId(id);
                  connectorParameterOutputsDefElm.setName(name);
                  connectorParameterOutputsDefElm.setDataType(dataType);

                ConnectorInstance.getConnectorParameterOutputsDef().add(connectorParameterOutputsDefElm);
              }
              }
             
             
              JsonNode skipCommentNode = connectorInstanceItemNode.get(PROPERTY_SKIPCOMMENT);
              if(skipCommentNode !=null){
               
                String id = skipCommentNode.get(PROPERTY_SKIPCOMMENT_EXPRESSION_ID).asText();
                String name = skipCommentNode.get(PROPERTY_SKIPCOMMENT_EXPRESSION_NAME).asText();
                String value = skipCommentNode.get(PROPERTY_SKIPCOMMENT_EXPRESSION_VALUE).asText();
               
                Expression expression = FixFlowFactory.eINSTANCE.createExpression();
                expression.setId(id);
                expression.setName(name);
              expression.setValue(value);
             
              SkipComment skipCommentElm = FixFlowFactory.eINSTANCE.createSkipComment();
              skipCommentElm.setExpression(expression);

                ConnectorInstance.setSkipComment(skipCommentElm);
              }
             
             
              JsonNode timeExpressionNode = connectorInstanceItemNode.get(PROPERTY_TIME_EXPRESSION);
              if(timeExpressionNode !=null){
               
                String id = timeExpressionNode.get(PROPERTY_TIME_EXPRESSION_ID).asText();
                String name = timeExpressionNode.get(PROPERTY_TIME_EXPRESSION_NAME).asText();
                String value = timeExpressionNode.get(PROPERTY_TIME_EXPRESSION_VALUE).asText();
               
                Expression expression = FixFlowFactory.eINSTANCE.createExpression();
                expression.setId(id);
                expression.setName(name);
              expression.setValue(value);
             
              TimeExpression timeExpressionElm = FixFlowFactory.eINSTANCE.createTimeExpression();
              timeExpressionElm.setExpression(expression);

                ConnectorInstance.setTimeExpression(timeExpressionElm);
              }
             
             
              JsonNode timeSkipExpressionNode = connectorInstanceItemNode.get(PROPERTY_TIME_SKIP_EXPRESSION);
              if(timeSkipExpressionNode !=null){
               
                String id = timeSkipExpressionNode.get(PROPERTY_TIME_SKIP_EXPRESSION_ID).asText();
                String name = timeSkipExpressionNode.get(PROPERTY_TIME_SKIP_EXPRESSION_NAME).asText();
                String value = timeSkipExpressionNode.get(PROPERTY_TIME_SKIP_EXPRESSION_VALUE).asText();
               
                Expression expression = FixFlowFactory.eINSTANCE.createExpression();
                expression.setId(id);
                expression.setName(name);
              expression.setValue(value);
             
              TimeSkipExpression timeSkipExpressionElm = FixFlowFactory.eINSTANCE.createTimeSkipExpression();
              timeSkipExpressionElm.setExpression(expression);

                ConnectorInstance.setTimeSkipExpression(timeSkipExpressionElm);
View Full Code Here

        ObjectNode datavariableItemNode = objectMapper.createObjectNode();
        datavariableItemNode.put(PROPERTY_DATAVARIABLE_ID,dataVariable.getId());
        datavariableItemNode.put(PROPERTY_DATAVARIABLE_TYPE,dataVariable.getDataType());
        datavariableItemNode.put(PROPERTY_DATAVARIABLE_BIZTYPE,dataVariable.getBizType());
        datavariableItemNode.put(PROPERTY_DATAVARIABLE_IS_PERSISTENCE,dataVariable.isIsPersistence());
          Expression expression = dataVariable.getExpression();
          if(expression != null){
            datavariableItemNode.put(PROPERTY_DATAVARIABLE_DEFAULT_VALUE,expression.getValue());
          }
          itemsNode.add(datavariableItemNode);
        }
      datavariableNode.put("totalCount", itemsNode.size());
      datavariableNode.put(EDITOR_PROPERTIES_GENERAL_ITEMS, itemsNode);
View Full Code Here

        //加载process的扩展元素
        //任务主题
        JsonNode processSubject = JsonConverterUtil.getProperty(PROPERTY_PROCESS_SUBJECT, modelNode);
        if(processSubject != null && StringUtils.isNotEmpty(processSubject.asText())) {
          TaskSubject taskSubject = FixFlowFactory.eINSTANCE.createTaskSubject();
            Expression subjectExpression = FixFlowFactory.eINSTANCE.createExpression();
            subjectExpression.setName(processSubject.asText());
            subjectExpression.setValue(processSubject.asText());
            taskSubject.setExpression(subjectExpression);
            taskSubject.setId("TaskSubject_1");
            BpmnModelUtil.addExtensionElement(process, FixFlowPackage.Literals.DOCUMENT_ROOT__TASK_SUBJECT, taskSubject);
        }
       
        //流程分类
        JsonNode processCategory = JsonConverterUtil.getProperty(PROPERTY_PROCESS_CATEGORY, modelNode);
        if(processCategory != null &&!"null".equals(processCategory.asText()) && StringUtil.isNotEmpty(processCategory.asText())){
          BpmnModelUtil.addExtensionAttribute(process, FixFlowPackage.Literals.DOCUMENT_ROOT__CATEGORY, processCategory.asText());
        }
       
        //默认表单
        JsonNode processFormUri = JsonConverterUtil.getProperty(PROPERTY_PROCESS_DEFAULT_FORMURI, modelNode);
        if(processFormUri != null && StringUtil.isNotEmpty(processFormUri.asText())){
          FormUri formUri = FixFlowFactory.eINSTANCE.createFormUri();
          Expression expression = FixFlowFactory.eINSTANCE.createExpression();
          expression.setName(processFormUri.asText());
          expression.setValue(processFormUri.asText());
          formUri.setExpression(expression);
          BpmnModelUtil.addExtensionElement(process, FixFlowPackage.Literals.DOCUMENT_ROOT__FORM_URI, formUri);
        }
       
        //流程变量
        JsonNode dataVariablesNode = JsonConverterUtil.getProperty(PROPERTY_PROCESS_DATAVARIABLE, modelNode);
        if(dataVariablesNode != null){
          JsonNode itemsNode = dataVariablesNode.get(EDITOR_PROPERTIES_GENERAL_ITEMS);
          if(itemsNode != null) {
                Iterator<JsonNode> variableIterator = itemsNode.getElements();
                while(variableIterator.hasNext()) {
                  JsonNode variableNode = variableIterator.next();
                  String id = variableNode.get(PROPERTY_DATAVARIABLE_ID).asText();
                  String dataType = variableNode.get(PROPERTY_DATAVARIABLE_TYPE).asText();
                  String bizType = variableNode.get(PROPERTY_DATAVARIABLE_BIZTYPE).asText();
                  boolean isPersistence = StringUtil.getBoolean(variableNode.get(PROPERTY_DATAVARIABLE_IS_PERSISTENCE));
                  String expression = "";
                  JsonNode tmpNode = variableNode.get(PROPERTY_DATAVARIABLE_DEFAULT_VALUE);
                  if(tmpNode != null){
                    expression = tmpNode.asText();
                  }
                  DataVariable dataVariableObj = FixFlowFactory.eINSTANCE.createDataVariable();
                  dataVariableObj.setBizType(bizType);
                  dataVariableObj.setId(id);
                  dataVariableObj.setDataType(dataType);
                  dataVariableObj.setIsPersistence(isPersistence);
                  Expression variableExpression = FixFlowFactory.eINSTANCE.createExpression();
                  variableExpression.setValue(expression);
                  variableExpression.setName(expression);
                  dataVariableObj.setExpression(variableExpression);
                  BpmnModelUtil.addExtensionElement(process, FixFlowPackage.Literals.DOCUMENT_ROOT__DATA_VARIABLE, dataVariableObj);
                }
          }
        }
View Full Code Here

    protected void convertElementToJson(ObjectNode propertiesNode, FlowElement flowElement) {
      UserTaskBehavior userTask = (UserTaskBehavior) flowElement;
      List<ResourceRole> resources = userTask.getResources();
      //任务分配
      setPropertyValue(PROPERTY_USERTASK_POLICYTYPE, userTask.getAssignPolicyType().getId(), propertiesNode);
      Expression assigneeExpression = userTask.getAssignPolicyType().getExpression();
      if(assigneeExpression != null){
        setPropertyValue(PROPERTY_USERTASK_ASSIGNEXPRESSION, assigneeExpression.getValue(), propertiesNode);
      }
      if(resources != null){
        ObjectNode assignmentNode = objectMapper.createObjectNode();
        ArrayNode itemsNode = objectMapper.createArrayNode();
        for(ResourceRole resource :resources){
View Full Code Here

      UserTask task = Bpmn2Factory.eINSTANCE.createUserTask();// UserTask();
      //任务主题
      JsonNode processSubject = JsonConverterUtil.getProperty(PROPERTY_USERTASK_SUBJECT, elementNode);
      if(processSubject != null && StringUtils.isNotEmpty(processSubject.asText())) {
        TaskSubject taskSubject = FixFlowFactory.eINSTANCE.createTaskSubject();
        Expression subjectExpression = FixFlowFactory.eINSTANCE.createExpression();
        subjectExpression.setName(processSubject.asText());
        subjectExpression.setValue(processSubject.asText());
        taskSubject.setExpression(subjectExpression);
        taskSubject.setId("TaskSubject_1");
        BpmnModelUtil.addExtensionElement(task, FixFlowPackage.Literals.DOCUMENT_ROOT__TASK_SUBJECT, taskSubject);
      }
     
      //任务类型
      JsonNode taskTypeNode = getProperty(PROPERTY_USERTASK_TASKTYPE, elementNode);
      if(taskTypeNode != null){
        BpmnModelUtil.addExtensionAttribute(task, FixFlowPackage.Literals.DOCUMENT_ROOT__TASK_TYPE, taskTypeNode.asText());
      }
     
      //任务优先级
      JsonNode taskPriorityNode = getProperty(PROPERTY_PRIORITY, elementNode);
      if(taskPriorityNode != null){
        TaskPriority taskPriority = FixFlowFactory.eINSTANCE.createTaskPriority();
        Expression taskPriorityExpression = FixFlowFactory.eINSTANCE.createExpression();
        taskPriorityExpression.setName(taskPriorityNode.asText());
        taskPriorityExpression.setValue(taskPriorityNode.asText());
        taskPriority.setExpression(taskPriorityExpression);
        BpmnModelUtil.addExtensionElement(task, FixFlowPackage.Literals.DOCUMENT_ROOT__TASK_PRIORITY, taskPriority);
      }
     
      //任务命令
      JsonNode taskCommandNode = getProperty(PROPERTY_TASKCOMMAND, elementNode);
      if(taskCommandNode != null){
        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);
          }
        }
      }
     
      //默认表单
      JsonNode usertaskFormUri = JsonConverterUtil.getProperty(PROPERTY_FORMURI, elementNode);
      if(usertaskFormUri != null && StringUtil.isNotEmpty(usertaskFormUri.asText())){
        FormUri formUri = FixFlowFactory.eINSTANCE.createFormUri();
        Expression expression = FixFlowFactory.eINSTANCE.createExpression();
        expression.setName(usertaskFormUri.asText());
        expression.setValue(usertaskFormUri.asText());
        formUri.setExpression(expression);
        BpmnModelUtil.addExtensionElement(task, FixFlowPackage.Literals.DOCUMENT_ROOT__FORM_URI, formUri);
      }
      //浏览表单
      JsonNode usertaskFormUriView = JsonConverterUtil.getProperty(PROPERTY_FORMURI_VIEW, elementNode);
      if(usertaskFormUriView != null && StringUtil.isNotEmpty(usertaskFormUriView.asText())){
        FormUriView formUri = FixFlowFactory.eINSTANCE.createFormUriView();
        Expression expression = FixFlowFactory.eINSTANCE.createExpression();
        expression.setName(usertaskFormUriView.asText());
        expression.setValue(usertaskFormUriView.asText());
        formUri.setExpression(expression);
        BpmnModelUtil.addExtensionElement(task, FixFlowPackage.Literals.DOCUMENT_ROOT__FORM_URI_VIEW, formUri);
      }
      //分配策略
      JsonNode policyTypeNode = getProperty(PROPERTY_USERTASK_POLICYTYPE, elementNode);
      if(policyTypeNode != null){
        AssignPolicyType assignPolicyType = FixFlowFactory.eINSTANCE.createAssignPolicyType();
        assignPolicyType.setId(policyTypeNode.asText());
        String expressionBody = getPropertyValueAsString(PROPERTY_USERTASK_ASSIGNEXPRESSION, elementNode);
        if(StringUtil.isNotEmpty(expressionBody)){
          Expression policyExpression = FixFlowFactory.eINSTANCE.createExpression();
          policyExpression.setValue(expressionBody);
          policyExpression.setName(expressionBody);
          assignPolicyType.setExpression(policyExpression);
        }
        BpmnModelUtil.addExtensionElement(task, FixFlowPackage.Literals.DOCUMENT_ROOT__ASSIGN_POLICY_TYPE, assignPolicyType);
      }
      //转换处理人
View Full Code Here

        }
        SkipComment skipComment = skipStrategy.getSkipComment();
        if(skipComment !=null){
          setPropertyValue(PROPERTY_ACTIVITY_SKIPCOMMENT, skipComment.getExpression().getValue(), propertiesNode);
        }
        Expression skipExpression = skipStrategy.getExpression();
        if(skipExpression !=null){
          setPropertyValue(PROPERTY_ACTIVITY_SKIPEXPRESSION, skipExpression.getValue(), propertiesNode);
        }
      }
     
      ConnectorInstanceElm cie = new ConnectorInstanceElm();
      propertiesNode.put(PROPERTY_CONNECTORINSTANCE, cie.convertElementToJson(activity));
View Full Code Here

        String outputDataItem = getPropertyValueAsString(PROPERTY_MULTIINSTANCE_OUTPUT_ITEM, elementNode);
        String completeExpression = getPropertyValueAsString(PROPERTY_MULTIINSTANCE_CONDITION, elementNode);
       
        //输出变量
        DataOutput dataOutput = Bpmn2Factory.eINSTANCE.createDataOutput();
        Expression dataOutputExpression = FixFlowFactory.eINSTANCE.createExpression();
        dataOutputExpression.setName(outputDataItem);
        dataOutputExpression.setValue(outputDataItem);
        BpmnModelUtil.addExtensionElement(dataOutput, FixFlowPackage.Literals.RESOURCE_FILTER__EXPRESSION, dataOutputExpression);
        newLoopCharacteristics.setOutputDataItem(dataOutput);
       
        //输入变量
        DataInput dataInput = Bpmn2Factory.eINSTANCE.createDataInput();
        Expression dataInputExpression = FixFlowFactory.eINSTANCE.createExpression();
        dataInputExpression.setName(inputDataItem);
        dataInputExpression.setValue(inputDataItem);
        BpmnModelUtil.addExtensionElement(dataInput, FixFlowPackage.Literals.RESOURCE_FILTER__EXPRESSION, dataInputExpression);
        newLoopCharacteristics.setInputDataItem(dataInput);
       
        //输入数据集
        LoopDataInputCollection loopDataInputCollection = FixFlowFactory.eINSTANCE.createLoopDataInputCollection();
        Expression inputCollectionExpression = FixFlowFactory.eINSTANCE.createExpression();
        inputCollectionExpression.setName(inputDataCollection);
        inputCollectionExpression.setValue(inputDataCollection);
        loopDataInputCollection.setExpression(inputCollectionExpression);
        BpmnModelUtil.addExtensionElement(newLoopCharacteristics, FixFlowPackage.Literals.DOCUMENT_ROOT__LOOP_DATA_INPUT_COLLECTION, loopDataInputCollection);

        //输出数据集
        LoopDataOutputCollection loopDataOutputCollection = FixFlowFactory.eINSTANCE.createLoopDataOutputCollection();
        Expression outputCollectionExpression = FixFlowFactory.eINSTANCE.createExpression();
        outputCollectionExpression.setName(outputDataCollection);
        outputCollectionExpression.setValue(outputDataCollection);
        loopDataOutputCollection.setExpression(outputCollectionExpression);
        BpmnModelUtil.addExtensionElement(newLoopCharacteristics, FixFlowPackage.Literals.DOCUMENT_ROOT__LOOP_DATA_OUTPUT_COLLECTION, loopDataOutputCollection);

        //完成表达式
        FormalExpression formalExpression= Bpmn2Factory.eINSTANCE.createFormalExpression();
        formalExpression.setId(completeExpression);
        formalExpression.setBody(completeExpression);
        newLoopCharacteristics.setCompletionCondition(formalExpression);
       
        activity.setLoopCharacteristics(newLoopCharacteristics);
       
      }
     
      //跳过策略
      JsonNode skipEnabled = getProperty(PROPERTY_ACTIVITY_SKIPSTRATEGY,elementNode);
      boolean isSkipEnabled = false;
      if(skipEnabled !=null){
        isSkipEnabled = getProperty(PROPERTY_ACTIVITY_SKIPSTRATEGY,elementNode).asBoolean();
      }
      if(isSkipEnabled){
        SkipStrategy skipStrategy = FixFlowFactory.eINSTANCE.createSkipStrategy();
        skipStrategy.setIsEnable(isSkipEnabled);
        String skipExpressionValue = getPropertyValueAsString(PROPERTY_ACTIVITY_SKIPEXPRESSION, elementNode);
        String skipAssigneeValue = getPropertyValueAsString(PROPERTY_ACTIVITY_SKIPASSIGNEE, elementNode);
        String skipCommentValue = getPropertyValueAsString(PROPERTY_ACTIVITY_SKIPCOMMENT, elementNode);
        Expression skipExpression = FixFlowFactory.eINSTANCE.createExpression();
        skipExpression.setName(skipExpressionValue);
        skipExpression.setValue(skipExpressionValue);
        skipStrategy.setExpression(skipExpression);
       
        boolean isCreateSkipProcess = getProperty(PROPERTY_ACTIVITY_IS_CREATE_SKIP_PROCESS, elementNode).asBoolean();
        if(isCreateSkipProcess){
          skipStrategy.setIsCreateSkipProcess(isCreateSkipProcess);
        }
       
        Expression skipAssigneeExpression = FixFlowFactory.eINSTANCE.createExpression();
        skipAssigneeExpression.setName(skipAssigneeValue);
        skipAssigneeExpression.setValue(skipAssigneeValue);
        SkipAssignee skipAssignee = FixFlowFactory.eINSTANCE.createSkipAssignee();
        skipAssignee.setExpression(skipAssigneeExpression);
        skipStrategy.setSkipAssignee(skipAssignee);
       
        Expression skipCommentExpression = FixFlowFactory.eINSTANCE.createExpression();
        skipCommentExpression.setName(skipCommentValue);
        skipCommentExpression.setValue(skipCommentValue);
        SkipComment skipComment = FixFlowFactory.eINSTANCE.createSkipComment();
        skipComment.setExpression(skipCommentExpression);
        skipStrategy.setSkipComment(skipComment);
       
        BpmnModelUtil.addExtensionElement(activity, FixFlowPackage.Literals.DOCUMENT_ROOT__SKIP_STRATEGY, skipStrategy);
View Full Code Here

   
   
    if(this.inputDataItemExpression==null){
      MultiInstanceLoopCharacteristics multiInstanceLoopCharacteristics=(MultiInstanceLoopCharacteristics)loopCharacteristics;
      DataInput dataInput =multiInstanceLoopCharacteristics.getInputDataItem();
      Expression expression=getExtensionExpression(dataInput);
      if(expression!=null){
        this.inputDataItemExpression=expression.getValue();
      }

    }
    return inputDataItemExpression;
  }
View Full Code Here

TOP

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

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.