void initializeVariables() { if (task != null) { TaskController taskController = task.getTaskController(); if (taskController != null) taskController.initializeVariables(this); } }
void initializeVariables() { if (task != null) { TaskController taskController = task.getTaskController(); if (taskController != null) taskController.initializeVariables(this); } }
private void submitVariables() { TaskController taskController; // if a task controller is present, if (task != null && (taskController = task.getTaskController()) != null) { // the task controller copies variables back into the process taskController.submitParameters(this); } // otherwise, all task-local variables are flushed to the process else if (token != null && variableInstances != null) { ContextInstance contextInstance = token.getProcessInstance().getContextInstance(); boolean debug = log.isDebugEnabled(); for (Iterator iter = variableInstances.values().iterator(); iter.hasNext();) { VariableInstance variableInstance = (VariableInstance) iter.next(); String variableName = variableInstance.getName(); if (debug) log.debug(this + " writes '" + variableName + '\''); contextInstance.setVariable(variableName, variableInstance.getValue(), token); } } }
private void submitVariables() { TaskController taskController; // if a task controller is present, if (task != null && (taskController = task.getTaskController()) != null) { // the task controller copies variables back into the process taskController.submitParameters(this); } // otherwise, all task-local variables are flushed to the process else if (token != null && variableInstances != null) { ContextInstance contextInstance = token.getProcessInstance().getContextInstance(); boolean debug = log.isDebugEnabled(); for (Iterator iter = variableInstances.values().iterator(); iter.hasNext();) { VariableInstance variableInstance = (VariableInstance) iter.next(); String variableName = variableInstance.getName(); if (debug) log.debug(this + " writes '" + variableName + '\''); contextInstance.setVariable(variableName, variableInstance.getValue(), token); } } }