assertNotNull(variableAccesses);
assertEquals("c", variableAccess.getMappedName());
}
public void testTaskControllerWithDelegation() {
ProcessDefinition processDefinition = ProcessDefinition.parseXmlString(
"<process-definition>" +
" <task-node name='t'>" +
" <task name='clean ceiling'>" +
" <controller class='my-own-task-controller-handler-class'>" +
" --here comes the configuration of the task controller handler--" +
" </controller>" +
" </task>" +
" </task-node>" +
"</process-definition>"
);
TaskNode taskNode = (TaskNode) processDefinition.getNode("t");
Task task = taskNode.getTask("clean ceiling");
TaskController taskController = task.getTaskController();
assertNull(taskController.getVariableAccesses());
Delegation taskControllerDelegation = taskController.getTaskControllerDelegation();
assertNotNull(taskControllerDelegation);