Is there a way to exit the workflow more gracefully than throw it away InvalidWorkflowException? I am writing an activity (which interacts with an SQL database) that should be short if the operation is not performed.
I know that this can be divided into several steps / actions and link them, but can I set the status of my execution from the inside?
Something like this.currentContext.SetState(Cancelled)?
source
share