Hello,
I would like to "clean" queued messages from the database.
We are using ProcessAPI.sendMessage() to send messages to a process when some external event occurs, using the "correlation" feature to reach the right process instance.
The normal processing is that when the process reaches the target task, it will consume the message and do whatever is triggered by the event.
It happens that sometimes a message is never consumed, for example if the target task is already done, or if the external event occurs twice (we have no control on this).