Package com.founder.fix.bpmn2extensions.fixflow

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


  }

  public TaskSubjectBehavior getTaskSubject() {

    if (this.taskSubject == null) {
      TaskSubject taskSubjectObj  =EMFUtil.getExtensionElementOne(TaskSubject.class,this,FixFlowPackage.Literals.DOCUMENT_ROOT__TASK_SUBJECT);
      if (taskSubjectObj!=null&&taskSubjectObj.getExpression() != null) {
        this.taskSubject =new TaskSubjectBehavior(taskSubjectObj);
      }
     
     
    }
View Full Code Here


              formUriYZ = true;
            }
          }

          if (entry.getValue() instanceof TaskSubject) {
            TaskSubject taskSubject = (TaskSubject) entry.getValue();
            if (taskSubject.getExpression().getValue() != null && !taskSubject.getExpression().getValue().equals("")) {
              taskSubjectYZ = true;
            }
          }
        }
      }
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);
View Full Code Here

  public TaskSubjectBehavior getTaskSubject() {

    if (this.taskSubject == null) {

      TaskSubject taskSubjectObj = EMFUtil.getExtensionElementOne(TaskSubject.class, this, FixFlowPackage.Literals.DOCUMENT_ROOT__TASK_SUBJECT);

      if (taskSubjectObj != null) {
        this.taskSubject = new TaskSubjectBehavior(taskSubjectObj);
      }
View Full Code Here

    protected FlowElement convertJsonToElement(JsonNode elementNode, JsonNode modelNode, Map<String, JsonNode> shapeMap) {
      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);
View Full Code Here

TOP

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

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.