the 'error' you pass as a parameter should be the name of a transition, not a (state)node
actually i have same name for the parameter as is state name, e.g.
parenthesis didn' show up, what I mean is
transition name='error' to='error'
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.
end-tasksproperty 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 with
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 use
of course if you feel more comfortable.