To maintain uptime, you need to catch an exception in your workflow. Add a TryCatch action to your workflow, and in the Catch block you can use either Submit or a custom action to send data to the main application.
The only exception is to use WorkflowApplication.OnUnhandledException with persistence and specify an interrupt. In this case, the state of the memory in the working state is simply deleted, and the workflow can be restarted for the last stored state. If you go this way, you need to make sure that with Perist activity your workflow is saved whenever something cannot be redone.
source
share