Message boundary event granular correlation

Hi experts,

What is a best way to filter messages in boundary event or something else? and skip if message is incorrect and wait for the correct one.

The process in short:

  1. We trigger consumer to start the order.
  2. Entering the subprocess and either waiting for a message to come with status completed or pinging their API to retrieve the status. Double check is needed because consumer sometimes do not send complete message.
  3. Complete process

The issue is that the correlation key is process_id and it cannot be changed. Consumer are sending some extra data in the message, but i cannot find a way to read this data for more granular correlation in the message event boundary. How would you suggest to get out of this situation, because now i am getting the first message with status initiated and process is completed. In addition we are using Camunda 8.3

Thanks a lot in advance.

Hi all, found a way. The simple solution is to include exclusive gateway after the message event, and return to subprocess if message is incorrect.

1 Like