JBoss Community

Re: A question on the external event using event Correlation

created by byungwoojun in jBPM - View the full discussion

OK, it looks like I self-answered my question above.

 

Now, I understand why Krisv V. said that use kession.signalEvent for the external aync event.

 

So, I used

 

ksession.signalEvent(eventType, eventData);     // without the top-level restoredProcessInstanceId.

 

Then, the jBPM 5 automatically finds the corresponding sub-process with the intermediate message event.

 

It worked as long as I don't share the ksession with another top-level bpmn process.

 

bwj.

Reply to this message by going to Community

Start a new discussion in jBPM at Community