void initializeVariables() { if (task != null) { TaskController taskController = task.getTaskController(); if (taskController != null) taskController.initializeVariables(this); } }
@Override void process() throws Exception { initProcessAndTask(task); handler.initializeTaskVariables(task, context, token); } }.runAndWrap();
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(); }
public void setTask(Task task) { this.name = task.getName(); this.description = task.getDescription(); this.task = task; this.isBlocking = task.isBlocking(); this.priority = task.getPriority(); this.isSignalling = task.isSignalling(); }
public void readStartStateTask(Element startTaskElement, StartState startState) { TaskMgmtDefinition taskMgmtDefinition = processDefinition.getTaskMgmtDefinition(); Task startTask = readTask(startTaskElement, taskMgmtDefinition, null); startTask.setStartState(startState); if (startTask.getName() == null) startTask.setName(startState.getName()); taskMgmtDefinition.setStartTask(startTask); }
public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Swimlane)) return false; Swimlane other = (Swimlane) o; if (id != 0 && id == other.getId()) return true; return name.equals(other.getName()) && taskMgmtDefinition.equals(other.getTaskMgmtDefinition()); }
public boolean isStartTaskInstance() { if (taskMgmtInstance != null) { TaskMgmtDefinition taskMgmtDefinition = taskMgmtInstance.getTaskMgmtDefinition(); if (taskMgmtDefinition != null) { return task != null && task.equals(taskMgmtInstance.getTaskMgmtDefinition().getStartTask()); } } return false; }
@Override void process() throws Exception { initProcessAndTask(context); handler.assign(assignable, context); } }.run();
@Override void process() throws Exception { initProcessAndTask(task); handler.submitTaskVariables(task, context, token); } }.runAndWrap();
/** * @return the name of the replacement task, if one is given in the task name mapping, or the * old task name */ private String getReplacementTaskName(Task oldTask) { String oldName = oldTask.getName(); if (taskNameMapping != null && taskNameMapping.containsKey(oldName)) { return (String) taskNameMapping.get(oldName); } // return new node name = old node name as default return oldName; }
public SwimlaneInstance(Swimlane swimlane) { this.name = swimlane.getName(); this.swimlane = swimlane; }
public int hashCode() { int result = 1154431951 + name.hashCode(); result = 1436943863 * result + taskMgmtDefinition.hashCode(); return result; }
public void setTask(Task task) { this.name = task.getName(); this.description = task.getDescription(); this.task = task; this.isBlocking = task.isBlocking(); this.priority = task.getPriority(); this.isSignalling = task.isSignalling(); }
public void readStartStateTask(Element startTaskElement, StartState startState) { TaskMgmtDefinition taskMgmtDefinition = processDefinition.getTaskMgmtDefinition(); Task startTask = readTask(startTaskElement, taskMgmtDefinition, null); startTask.setStartState(startState); if (startTask.getName() == null) startTask.setName(startState.getName()); taskMgmtDefinition.setStartTask(startTask); }
public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Swimlane)) return false; Swimlane other = (Swimlane) o; if (id != 0 && id == other.getId()) return true; return name.equals(other.getName()) && taskMgmtDefinition.equals(other.getTaskMgmtDefinition()); }
void initializeVariables() { if (task != null) { TaskController taskController = task.getTaskController(); if (taskController != null) taskController.initializeVariables(this); } }
public boolean isStartTaskInstance() { if (taskMgmtInstance != null) { TaskMgmtDefinition taskMgmtDefinition = taskMgmtInstance.getTaskMgmtDefinition(); if (taskMgmtDefinition != null) { return task != null && task.equals(taskMgmtInstance.getTaskMgmtDefinition().getStartTask()); } } return false; }
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(); }
public SwimlaneInstance(Swimlane swimlane) { this.name = swimlane.getName(); this.swimlane = swimlane; }
public int hashCode() { int result = 1154431951 + name.hashCode(); result = 1436943863 * result + taskMgmtDefinition.hashCode(); return result; }