Examples of ProcessVariable


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

Examples of com.defaultcompany.external.model.ProcessVariable

    }
    @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

Examples of org.activiti.cdi.annotation.ProcessVariable

    for (Field field : ctx.getMethod().getDeclaringClass().getDeclaredFields()) {
      if (!field.isAnnotationPresent(ProcessVariable.class)) {
        continue;
      }
      field.setAccessible(true);
      ProcessVariable processStartVariable = field.getAnnotation(ProcessVariable.class);
      String fieldName = processStartVariable.value();
      if (fieldName == null || fieldName.length() == 0) {
        fieldName = field.getName();
      }
      Object value = field.get(ctx.getTarget());
      variables.put(fieldName, value);
View Full Code Here

Examples of org.activiti.cdi.annotation.ProcessVariable

    for (Field field : ctx.getMethod().getDeclaringClass().getDeclaredFields()) {
      if (!field.isAnnotationPresent(ProcessVariable.class)) {
        continue;
      }
      field.setAccessible(true);
      ProcessVariable processStartVariable = field.getAnnotation(ProcessVariable.class);
      String fieldName = processStartVariable.value();
      if (fieldName == null || fieldName.length() == 0) {
        fieldName = field.getName();
      }
      Object value = field.get(ctx.getTarget());
      variables.put(fieldName, value);
View Full Code Here

Examples of org.activiti.spring.annotations.ProcessVariable

            for (Annotation[] paramAnnotations : paramAnnotationsArray) {
              ctr += 1;

              for (Annotation pa : paramAnnotations) {
                if (pa instanceof ProcessVariable) {
                  ProcessVariable pv = (ProcessVariable) pa;
                  String pvName = pv.value();
                  vars.put(ctr, pvName);
                } else if (pa instanceof ProcessVariables) {
                  pvMapIndex = ctr;
                } else if (pa instanceof ProcessId  ) {
                  procIdIndex = ctr;
View Full Code Here

Examples of org.camunda.bpm.engine.cdi.annotation.ProcessVariable

    for (Field field : ctx.getMethod().getDeclaringClass().getDeclaredFields()) {
      if (!field.isAnnotationPresent(ProcessVariable.class)) {
        continue;
      }
      field.setAccessible(true);
      ProcessVariable processStartVariable = field.getAnnotation(ProcessVariable.class);
      String fieldName = processStartVariable.value();
      if (fieldName == null || fieldName.length() == 0) {
        fieldName = field.getName();
      }
      Object value = field.get(ctx.getTarget());
      variables.put(fieldName, value);
View Full Code Here

Examples of org.camunda.bpm.engine.spring.annotations.ProcessVariable

            for (Annotation[] paramAnnotations : paramAnnotationsArray) {
              ctr += 1;

              for (Annotation pa : paramAnnotations) {
                if (pa instanceof ProcessVariable) {
                  ProcessVariable pv = (ProcessVariable) pa;
                  String pvName = pv.value();
                  vars.put(ctr, pvName);
                } else if (pa instanceof ProcessVariables) {
                  pvMapIndex = ctr;
                } else if (pa instanceof ProcessId  ) {
                  procIdIndex = ctr;
View Full Code Here

Examples of org.openbp.core.model.item.process.ProcessVariable

    VariablesContainer container = (VariablesContainer) editedObject;

    for (Iterator it = container.getProcessVariables(); it.hasNext();)
    {
      ProcessVariable param = (ProcessVariable) it.next();
      param.maintainReferences(ModelObject.VALIDATE_BASIC | ModelObject.RESOLVE_GLOBAL_REFS);
    }

    checkNameUniqueness(container);

    // Print errors and return if any have been found
View Full Code Here

Examples of org.openbp.core.model.item.process.ProcessVariable

  {
    List invalidNames = new ArrayList();

    for (Iterator it = container.getProcessVariables(); it.hasNext();)
    {
      ProcessVariable param = (ProcessVariable) it.next();

      String name = param.getName();
      if (name != null && ! invalidNames.contains(name) && countNamedParams(container, name) > 1)
      {
        invalidNames.add(name);
        param.getModelMgr().getMsgContainer().addMsg(param, "An element with this name already exists.");
      }
    }
  }
View Full Code Here

Examples of org.openbp.core.model.item.process.ProcessVariable

  {
    int count = 0;

    for (Iterator it = container.getProcessVariables(); it.hasNext();)
    {
      ProcessVariable param = (ProcessVariable) it.next();

      if (name.equals(param.getName()))
        ++count;
    }

    return count;
  }
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.