could you give me some more context of what you are trying to accomplish ?
Task task = new Task(taskDefinition, null); node.setBehaviour(task.getTaskDefinition());
looks a bit strange to me. Normally, the XML parsing would build the task as part of the process definition
TaskDefinition taskDefinition = ...parse from xml...; node.setBehaviour(taskDefinition);
Then during execution time, the execution of the taskDefinition leads to the creation of a Task.
I get a descriptor on TaskDefinition when parsing
AbstractDescriptor taskDefinitionDescriptor = (AbstractDescriptor)parser.parseElement(XmlUtil.element(taskElement,"TaskManual"), parse);
and then I build the task as part of the xpdl process by doing:
The execute() method of the taskDefinition is now executed.
note: node.setBehaviour(taskDefinition); gave me an error previously.It was why I ask you the question.
I have now to get the task from the task repository.