public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof TaskController)) return false; // task controller has no notion of equality beyond identity TaskController other = (TaskController) o; return id != 0 && id == other.getId(); }
protected TaskController readTaskController(Element taskControllerElement) { TaskController taskController = new TaskController(); if (taskControllerElement.attributeValue("class") != null) { Delegation taskControllerDelegation = new Delegation(); taskControllerDelegation.read(taskControllerElement, this); taskController.setTaskControllerDelegation(taskControllerDelegation); } else { List variableAccesses = readVariableAccesses(taskControllerElement); taskController.setVariableAccesses(variableAccesses); } return taskController; }
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); } } }
protected TaskController readTaskController(Element taskControllerElement) { TaskController taskController = new TaskController(); if (taskControllerElement.attributeValue("class") != null) { Delegation taskControllerDelegation = new Delegation(); taskControllerDelegation.read(taskControllerElement, this); taskController.setTaskControllerDelegation(taskControllerDelegation); } else { List variableAccesses = readVariableAccesses(taskControllerElement); taskController.setVariableAccesses(variableAccesses); } return taskController; }
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); } } }
public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof TaskController)) return false; // task controller has no notion of equality beyond identity TaskController other = (TaskController) o; return id != 0 && id == other.getId(); }