Discussion:
[jboss-user] [jBPM] - Can Jbpm5 Catch Event out of sequence exception handling?
navisdrools
2012-03-15 23:00:22 UTC
Permalink
navisdrools [https://community.jboss.org/people/navisdrools] created the discussion

"Can Jbpm5 Catch Event out of sequence exception handling?"

To view the discussion, visit: https://community.jboss.org/message/724167#724167

--------------------------------------------------------------
Hi,
I am implementing jbpm 5.2 using catch events, script tasks and work items. We use catch event to wait for the next task. Is there a way to prevent the later events from catching because the eariler events haven't been catch yet? If thers is no out of box solution, is there a good work around?
Thanks.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/724167#724167]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
navisdrools
2012-04-11 18:14:55 UTC
Permalink
navisdrools [https://community.jboss.org/people/navisdrools] created the discussion

"Re: Can Jbpm5 Catch Event out of sequence exception handling?"

To view the discussion, visit: https://community.jboss.org/message/729450#729450

--------------------------------------------------------------
Loading Image... Loading Image...
I hope this picture can explain what I need to do better. There is business logic happening between events. We need to know when the second event is caught, the first event must be caught earlier. If not we need to throw an exception to preserve the workflow state. Is there any way to get any feedback, exception, status, checking to know the first event on the workflow engine level. I guess I can have a state object on my business logic,, but I am trying to use anything out of the box.
Thanks.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/729450#729450]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Thomas Setiabudi
2013-03-11 06:49:20 UTC
Permalink
Thomas Setiabudi [https://community.jboss.org/people/thomas.setiabudi] created the discussion

"Re: Can Jbpm5 Catch Event out of sequence exception handling?"

To view the discussion, visit: https://community.jboss.org/message/801800#801800

--------------------------------------------------------------
Hi Navisdrools,

A possible workaround will be:

1. After first event is caught, put a script task node that will set value to a variable "firstEventFired" to true
2. After second event is caught, put a script task node that will check the value of variable "firstEventFired", if the variable value is true then proceed, else throw exception.


Regards,
Thomas Setiabudi
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/801800#801800]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...