Discussion:
[jboss-user] [jBPM] - Re: Data input objects - blocking a task
Jim Beam
2013-03-20 15:50:20 UTC
Permalink
Jim Beam [https://community.jboss.org/people/jamesbeam] created the discussion

"Re: Data input objects - blocking a task"

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

--------------------------------------------------------------
Hi.  I believe we are working on a similar problem - If I understand your question.  I have received a few helpful suggestions.  The easiest (and ugliest) was to put an AND gateway and a signal intermediate event in front of each task.  This way, the task is not reached until the signal event (new data) is added to the process/ksession.  The other option, which I am working on now (a recommendation from salaboy I think), is implementing this functionality in a customworkitem - where the handler will not complete the work item until the required data is available.  This way, one handler could be used to look for a message that was defined as a parameter in that workitem.  This seems much cleaner to me. 
hth  (let me know if you have any thoughts)
-J
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
annah
2013-03-21 10:13:38 UTC
Permalink
annah [https://community.jboss.org/people/annah] created the discussion

"Re: Data input objects - blocking a task"

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

--------------------------------------------------------------
Hi Jim,


Thank you for your suggestions, I had the same two solutions in my mind. I guess custom handler is the right way to go.
There is so little documentation about data objects in jbpm, so I was hoping I'm just doing something wrong and that it can be modeled the way I showed above (associating a data object to a task). I'm nor really sure what is the intended purpose of data object arfiacts in this case, since they don't make any difference in process execution, it seems that it is just a visual element for clarification of the process, but that's all.
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Maciej Swiderski
2013-03-25 09:37:08 UTC
Permalink
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: Data input objects - blocking a task"

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

--------------------------------------------------------------
one additional way of achieving blocking execution until something happens is to use intermediate events. As it comes to the case described I would suggest to use conditional intermediate event that will be activated as soon as defined condition becomes true - for example an object is inserted into the session.

HTH
--------------------------------------------------------------

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

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