Package org.activiti.rest.service.api.runtime.process

Examples of org.activiti.rest.service.api.runtime.process.ProcessInstanceResponse.addVariable()


    //End Added by Ryan Johnston
   
    if (processInstance.getProcessVariables() != null) {
      Map<String, Object> variableMap = processInstance.getProcessVariables();
      for (String name : variableMap.keySet()) {
        result.addVariable(createRestVariable(name, variableMap.get(name),
            RestVariableScope.LOCAL, processInstance.getId(), VARIABLE_PROCESS, false, serverRootUrl));
      }
    }
   
    return result;
View Full Code Here


    if (returnVariables) {
     
      if (processInstance.isEnded()) {
        if (historicVariableList != null) {
          for (HistoricVariableInstance historicVariable : historicVariableList) {
            result.addVariable(createRestVariable(historicVariable.getVariableName(), historicVariable.getValue(),
                RestVariableScope.LOCAL, processInstance.getId(), VARIABLE_PROCESS, false, serverRootUrl));
          }
        }
       
      } else {
View Full Code Here

        }
       
      } else {
        if (runtimeVariableMap != null) {
          for (String name : runtimeVariableMap.keySet()) {
            result.addVariable(createRestVariable(name, runtimeVariableMap.get(name),
                RestVariableScope.LOCAL, processInstance.getId(), VARIABLE_PROCESS, false, serverRootUrl));
          }
        }
      }
    }
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.