Package org.codehaus.jackson

Examples of org.codehaus.jackson.JsonNode.asText()


      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);
View Full Code Here


        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);
View Full Code Here

      //浏览表单
      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);
      }
      //分配策略
View Full Code Here

      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);
View Full Code Here

      }
      //分配策略
      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);
View Full Code Here

  }
 
  protected String getValueAsString(String name, JsonNode objectNode) {
    String propertyValue = null;
    JsonNode propertyNode = objectNode.get(name);
    if (propertyNode != null && "null".equalsIgnoreCase(propertyNode.asText()) == false) {
      propertyValue = propertyNode.asText();
    }
    return propertyValue;
  }
 
View Full Code Here

 
  protected String getValueAsString(String name, JsonNode objectNode) {
    String propertyValue = null;
    JsonNode propertyNode = objectNode.get(name);
    if (propertyNode != null && "null".equalsIgnoreCase(propertyNode.asText()) == false) {
      propertyValue = propertyNode.asText();
    }
    return propertyValue;
  }
 
  protected List<String> getValueAsList(String name, JsonNode objectNode) {
View Full Code Here

 
  protected static String getPropertyValueAsString(String name, JsonNode objectNode) {
    String propertyValue = null;
    JsonNode propertyNode = getProperty(name, objectNode);
    if (propertyNode != null) {
      propertyValue = propertyNode.asText();
    }
    return propertyValue;
  }
 
  protected static JsonNode getProperty(String name, JsonNode objectNode) {
View Full Code Here

    @Override
    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);
View Full Code Here

      //任务主题
      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);
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.