Package com.defaultcompany.external.model

Examples of com.defaultcompany.external.model.ProcessVariable


          if (variableItem.length == 2) {
            String variableName = variableItem[0].trim();
            String variableValues = variableItem[1].trim();
           
            if (StringUtils.hasText(variableName) && StringUtils.hasText(variableValues)) {
              ProcessVariable pv = new ProcessVariable();
              pv.setName(variableName);
              for (String val : variableValues.split(",")) {
                pv.addValue(val)
              }
              this.addProcessVariable(pv);
            }
          }
        }
View Full Code Here


    }
    @SuppressWarnings("unchecked")
    public void setProcessVariablesByElementList(List<Element> processVariableElementList) {
      if (processVariableElementList != null) {
        for (Element processVariableElement : processVariableElementList) {
          ProcessVariable pv = new ProcessVariable();
         
          String key = processVariableElement.getChildText("key", WORKFLOW_NAMESPACE);
          List<Element> valueElementList = processVariableElement.getChildren("value", WORKFLOW_NAMESPACE);
          if (valueElementList.size() == 1) {
            String value = processVariableElement.getChildText("value", WORKFLOW_NAMESPACE);
            pv.addValue(value);
          } else {
            for (Element valueElement : valueElementList) {
              String value = valueElement.getText();
              pv.addValue(value);
            }
          }
         
          pv.setName(key);
          if (pv.getValues().size() > 0)
            this.addProcessVariable(pv);
        }
      }
    }
View Full Code Here

TOP

Related Classes of com.defaultcompany.external.model.ProcessVariable

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.