"</process-definition>"
);
processDefinition = saveAndReload(processDefinition);
TaskNode taskNode = (TaskNode) processDefinition.getNode("t");
assertNotNull(taskNode);
assertEquals("t", taskNode.getName());
assertEquals(TaskNode.SIGNAL_FIRST_WAIT, taskNode.getSignal());
assertFalse(taskNode.getCreateTasks());
assertEquals(3, taskNode.getTasks().size());
Map tasks = new HashMap();
Iterator iter = taskNode.getTasks().iterator();
while (iter.hasNext()) {
Task task = (Task) iter.next();
tasks.put(task.getName(), task);
}
Task task = (Task) tasks.get("change the world once");