Resume interrupted process

My friend @hcaballero,

I believe this might make sense for what you need.
Check if this helps you, and if it makes sense, and please let me know.

image

You can do this through message correlation.

When sending a correlation to Camunda, you inform that something must be done for an instance (the correlated instance), and then you will execute a script task that must contain the script to suspend it, passing it as a parameter to the suspension method the “execution.processInstanceId()”.

After being suspended, the event subprocess token will wait until the next message correlation, and when received, it will release the instance again through the script.

IMPORTANT: I’m not sure if it will be possible to do it in an “event subprocess” because the token will be part of the same instance and because it is in a suspended state, I believe that it will not be possible to correlate a message with a suspended instance.
But you can create an “another process” to create a “new instance” passing as a variable in the correlation processInstanceId that you want to suspend, and then run the suspension script, and then do the same to activate the instance again.

I hope this helps!

William Robert Alves