Package com.founder.fix.bpmn2extensions.fixflow

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


   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetFormUri(FormUri newFormUri, NotificationChain msgs) {
    FormUri oldFormUri = formUri;
    formUri = newFormUri;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FixFlowPackage.DOCUMENT_ROOT__FORM_URI, oldFormUri, newFormUri);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here


    if (process.getExtensionValues().size() > 0) {
      for (ExtensionAttributeValue extensionAttributeValue : process.getExtensionValues()) {
        FeatureMap extensionElements = extensionAttributeValue.getValue();
        for (Entry entry : extensionElements) {
          if (entry.getValue() instanceof FormUri) {
            FormUri formUri = (FormUri) entry.getValue();
            if (formUri.getExpression().getValue() == null || formUri.getExpression().getValue().equals("")) {
              yzForm = true;
            } else {
              yzForm = false;
            }
            break;
View Full Code Here

  }

  public String getFormUri() {

    if (this.formUri == null) {
      FormUri formUriObj  =EMFUtil.getExtensionElementOne(FormUri.class,this,FixFlowPackage.Literals.DOCUMENT_ROOT__FORM_URI);
      if (formUriObj!=null&&formUriObj.getExpression() != null) {
        this.formUri = formUriObj.getExpression().getValue();
      }

    }
    return this.formUri;
View Full Code Here

    if (process.getExtensionValues().size() > 0) {
      for (ExtensionAttributeValue extensionAttributeValue : process.getExtensionValues()) {
        FeatureMap extensionElements = extensionAttributeValue.getValue();
        for (Entry entry : extensionElements) {
          if (entry.getValue() instanceof FormUri) {
            FormUri formUri = (FormUri) entry.getValue();
            if (formUri.getExpression().getValue() != null && !formUri.getExpression().getValue().equals("")) {
              formUriYZ = true;
            }
          }

          if (entry.getValue() instanceof TaskSubject) {
View Full Code Here

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

        for (Entry entry : extensionElements) {
          if (entry.getValue() instanceof FormUri) {
            FormUri formUri = (FormUri) entry.getValue();
            if (formUri.getExpression().getValue() != null || !(formUri.getExpression().getValue().equals(""))) {
              return;
            }
          }

        }
View Full Code Here

    TaskSubjectBehavior taskSubject =  mainProcess.getTaskSubject();
    if(taskSubject!= null){
      propertiesNode.put(PROPERTY_PROCESS_SUBJECT, mainProcess.getTaskSubject().getExpressionValue());
    }
  
    FormUri formObj = mainProcess.getFormUriObj();
    if(formObj != null){
       propertiesNode.put(PROPERTY_PROCESS_DEFAULT_FORMURI,formObj.getExpression().getValue());
    }
    boolean isVerify = mainProcess.isVerification();
    propertiesNode.put(PROPERTY_PROCESS_IS_VERIFY,isVerify);
    //由于获取流程模型的时候没有loadvariable,所以此处先用emf原始加载的方式加载数据变量,后期可能需要改掉
    List<DataVariable> dataVariables = EMFExtensionUtil.getDataVariables(mainProcess);
View Full Code Here

        }
       
        //默认表单
        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);
View Full Code Here

      }
     
      //默认表单
      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){
View Full Code Here

          }

        } else {

         
          FormUri formUriObj=token.getProcessInstance().getProcessDefinition().getFormUriObj();
         
          String expressionValue=null;
          if (formUriObj != null && formUriObj.getExpression() != null) {
            expressionValue = formUriObj.getExpression().getValue();
          }
         
          Object returnObject = ExpressionMgmt.execute(expressionValue, executionContext);
          if (returnObject != null) {
            taskInstance.setFormUri(StringUtil.getString(returnObject));
View Full Code Here

TOP

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

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.