Does jbpm has anything to work with correlation? Is there any example?
To describe my problem, i will give this example:
let's suppose that i've 2 workflows instances started, and i received an event from outside of the workflows. The listener class reads the event, see to what worflow the event should be propagated, and propagate the message to the right workflow.
The async functionality has something, but I'm not sure if that is what you need. Since the way a mapping/correlation needs to be done, it is best to do this outside jBPM or use a variable to store the relevant info and retrieve process instances based on this variable and its value (see the web ui in cvs for an example of this)