[jboss-user] [JBoss jBPM] - signaling to a forked sibling

gnagy do-not-reply at jboss.com
Fri Sep 12 12:23:08 EDT 2008


We have a workflow where a number of observers need to observe a number of items. A possible dependency relationship is such:

       /   \
Observer1  Observer2
   /    \  /   \
 Item1 Item2 Item3 

An observer can only continue in the workflow if all observed items were "activated". So e.g. Observer1  can only continue after it gets a signal from both Item1 and Item2.

A possible chain of events after fork:

I1 activates, O1 notices, but does not continie (I2 not activated)
I2 activates, O1 notices, continues, O2 notices, but stays put
I3 activates, O2 notices, continues (I2 was activated)

We are trying to solve this as follows. O1,2 are state nodes, I1,2,3 are task nodes. The workflow branches to O + I branches:

 .------ FORK ------.
 |    |    |    |   |
 O1  O2    I1  I2  I3
 |    |    |    |   |

When any Item activates, it sends an event that Os can see, and the Os decide if they can continue.

I just don't really know how to implement this with jbpm, or if this is a good way the solve the problem.

Any help appreciated.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176207#4176207

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176207

More information about the jboss-user mailing list