This content has been marked as final.
Show 2 replies
-
1. Re: node implemented by a taskDefinition
tom.baeyens Jun 6, 2007 4:36 AM (in response to blachonm)could you give me some more context of what you are trying to accomplish ?
the sequenceTask 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 definitionTaskDefinition taskDefinition = ...parse from xml...; node.setBehaviour(taskDefinition);
Then during execution time, the execution of the taskDefinition leads to the creation of a Task. -
2. Re: node implemented by a taskDefinition
blachonm Jun 6, 2007 8:24 AM (in response to blachonm)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:
node.setBehaviour(taskDefinitionDescriptor);
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.
regards,
Marc.