-
1. Re: Skip a UserTask with resultMapping
calca Sep 9, 2011 12:06 PM (in response to antoniodb83)Are you skipping the task after completing it? or replacing the .complete with the .skip= You should skip a task when it is "Created", "Ready", "Reserved" or "In Progress", not when it is completed.
I have made a simple test for skip:
https://github.com/calcacuervo/JBPM5-Samples/blob/master/human-tasks/src/test/java/com/test/HumanTaskTest.java test skipHumanTask(), and works fine.
Regards,
Demian
-
2. Re: Skip a UserTask with resultMapping
salaboy21 Sep 9, 2011 12:52 PM (in response to antoniodb83)As demian mention, you are getting that exception because it's not allowed in the cycle to move that task from the Obsolete state using the Skip action.
Cheers
-
3. Re: Skip a UserTask with resultMapping
antoniodb83 Sep 12, 2011 11:14 AM (in response to antoniodb83)Ok, now it works, thank you, however I still have this error when I try to abort a sub-process.
I have recreated the problem, I attach the processes files and the log.
Why the script Task "abortSP" is executed more times?
Thank you, I hope you can help me again!
Antonio
-
forum2.bpmn2.zip 1.5 KB
-
forum.bpmn2.zip 2.7 KB
-
bpmn.log.zip 1.3 KB
-