Idempotency and HistoryService

When the message is received, do you want a correlation to occur with the process definition or do you want the correlation to fail?

option that comes to mind is to create a second definition that receives the messages from the outside source and run a check such as:

And then decide to re-correlate the message to the ‘real’ process definition using a script task.