Enum CancellationTokenHandling
OptimaJet.Workflow.Core.Runtime.CancellationTokenHandling
Specifies whether workflow execution checks a CancellationToken at the post-activity checkpoint before continuing the process.
Namespace: OptimaJet.Workflow.Core.Runtime
public enum CancellationTokenHandlingFields
Ignore = 0 #Remarks
Throw = 1 #Remarks
The runtime calls CancellationToken.ThrowIfCancellationRequested() before starting the continuation work. The check does not roll back persistence updates already performed for the completed activity.
In the standard execution loop, the resulting OperationCanceledException is handled as an execution failure: the runtime records the error, changes the process status to Error when the current activity has command transitions or the process has active timers and to Terminated otherwise, and then throws an ProcessExecutionException that wraps the cancellation exception.
Remarks
The checkpoint is reached after the activity executor returns successfully and the runtime performs the configured persistence updates for the completed activity. It precedes fork subprocess creation, automatic transition execution, break request processing, and completion of the process as idle or finalized.
This setting controls only that explicit checkpoint. The token is still passed to asynchronous actions, conditions, custom activities, event handlers, and other token-aware operations, which may observe cancellation independently.