[jboss-user] [jBPM] - Re: How to remove the process instance when the abort fails

Eduard Rameder do-not-reply at jboss.com
Thu Jul 25 05:52:18 EDT 2013


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&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130725/85a48c44/attachment-0001.html 


More information about the jboss-user mailing list