Eduard Rameder [
https://community.jboss.org/people/jboss-at-rameder.com] created the
discussion
"Re: How to remove the process instance when the abort fails"
To view the discussion, visit:
https://community.jboss.org/message/829689#829689
--------------------------------------------------------------
Hi,
We faced the exact same problem. It seams the process engine sends an abort signal to each
workItem (actually the fitting workItemHandler). Which is fine.
BUT: standard implentation of the HumanTaskWorkItemHandler would fail if you send abort
("exit"-command) to a completed task.
Fix:
Allow the exit-command on an already completed task and do nothing with it.
operations-dsl.mvel:
...
| | | | } ], |
| | Operation.Exit |
| | : [ new OperationCommand().{ |
| | status = [ Status.Created, Status.Ready, Status.Reserved,
Status.InProgress, Status.Suspended ], |
| | allowed = [ Allowed.BusinessAdministrator ], |
| | newStatus = Status.Exited |
| | *},new OperationCommand().{* |
| | *status = [ Status.Completed ],* |
| | *allowed = [ Allowed.BusinessAdministrator ],* |
| | *newStatus = Status.Completed* |
| | } ] |
| ] | |
...
regards from Vienna
Edi
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/829689#829689]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]