Handling Duplicate Messages
When a duplicate is detected, the Checkpoint activity fails with the DuplicateException
. You can place an error transition from the Checkpoint activity to a series of activities to handle the duplicate message. If no error transition is specified, the process instance terminates and duplicate messages are effectively ignored.
The following illustrates an error transition added to the example process.
In this example, when a duplicate message is detected, the duplicate message is confirmed so that it is no longer redelivered, then the transition is taken to the end of the process definition.