Today I tried a tiny C# snippet to exit the workflow execution.
The executor is launched, also the C# compiler and it is also ended …
… but the workflow is not terminated.
It remains in the execution state.
- Should Environment.Exit be avoided in an Invoke Code activity?
- What is the correct procedure to completely exit a workflow using Invoke Code activity?
Thanks for hints and tips.