[jboss-user] [JBoss Tools] - Message Events in statefully flows
Kris Verlaenen
do-not-reply at jboss.com
Tue Aug 31 10:01:32 EDT 2010
Kris Verlaenen [http://community.jboss.org/people/KrisVerlaenen] replied to the discussion
"Message Events in statefully flows"
To view the discussion, visit: http://community.jboss.org/message/559792#559792
--------------------------------------------------------------
Rob,
You should signal your flow about the occurence of an event using processInstance.signalEvent(name, value);
So the problem is, how do I find the right process instance to signal?
Drools Flow currently does not allow for automatic correlation of messages. You can however use the processInstanceId for correlation purposes:
a) store the process instance id as part of your domain model, when the event occurs due to a change of one of your facts, you can simply retrieve the process instance id from the fact
b) you can maintain a separate table that maps process instance id to some other domain data (like for example a fact id), so that you can lookup the process instance id like this.
We'll be looking at how to provide more automatic correlation mechanisms as part of the BPMN2 implementation.
Kris
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/559792#559792]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100831/6daf4e33/attachment.html
More information about the jboss-user
mailing list