Hello, I’m trying to model the following situation (I don’t know if it’s the correct way, I’m a BPMN novice).

In practice I need to start a process instance when one of the two messages arrive (they can arrive in any order) and then I need to execute some logic when all the messages had arrived. I need to generalize this concept to n events (where n >= 2) so this seemed the most meaningful representation. Apart from the BPMN modeling I’m wondering how to implement this in the event listeners; should I use message correlation to start / find matching process instance? Can you give me an example if exists?

Thank you so much!