This content has been marked as final.
Show 6 replies
-
1. Re: TaskInstance.end(
kukeltje May 8, 2006 12:35 PM (in response to sbhatti)the 'error' you pass as a parameter should be the name of a transition, not a (state)node
-
2. Re: TaskInstance.end(
sbhatti May 8, 2006 12:44 PM (in response to sbhatti)actually i have same name for the parameter as is state name, e.g.
<task-node ... -
3. Re: TaskInstance.end(
sbhatti May 8, 2006 12:45 PM (in response to sbhatti)parenthesis didn' show up, what I mean is
<task-node -
4. Re: TaskInstance.end(
sbhatti May 8, 2006 12:46 PM (in response to sbhatti)transition name='error' to='error'
-
5. Re: TaskInstance.end(
sbhatti May 8, 2006 12:56 PM (in response to sbhatti)Also, I noticed that you cannot generally call signal from action, instead you have to leaveNode. Is there any similar rule for task where you cannot change taskInstance from the action class.
-
6. Re: TaskInstance.end(
saviola May 8, 2006 4:14 PM (in response to sbhatti)Hi, sbhatti!
Try settingend-tasks
property of the task node to true and set the first transition to be the one you want to go when the task is finished. This way when you end a task withtaskInstance.end();
all the other ununfinished tasks will be ended and the token will proceed to the default leaving transition which is the first one in the list.
You can usetaskInstance(transitionName);
of course if you feel more comfortable.
Regards,
Saviola