[jboss-user] [jBPM] - Re: A question on the external event using event Correlation

byungwoojun do-not-reply at jboss.com
Sun May 8 17:35:04 EDT 2011


byungwoojun [http://community.jboss.org/people/byungwoojun] created the discussion

"Re: A question on the external event using event Correlation"

To view the discussion, visit: http://community.jboss.org/message/604069#604069

--------------------------------------------------------------
As I addressed above, to support an async message event (external), I store a unique correlation id, with a session id and a process instance id. When an intermediate message arrives, I restore a session and a procss instance is based on the incoming message correlation id field. Using the following code:

ksession.signalEvent(eventType, eventData, restoredProcessInstanceId);

It worked nicely, but there is a problem. If the async message event is in a reusable sub-process (not in the top-level process), the above method won't work because the sub-process has its own process id. I looked at the jBPM ProcessInstanceInfo database table, there is no link between the parent and the sub-process.

So, how do I get the sub-process process id when the top-level hit the async message event and returns back to the process caller?

Any suggestion will be appreciated.

bwj
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[http://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/20110508/f839bfc2/attachment.html 


More information about the jboss-user mailing list