Documentation

ChildWorkflowCancellationType : int
in package

Defines the behavior of the parent workflow when a CancellationScope that wraps child workflow execution request is canceled.

The result of the cancellation independently of the type is a FailedCancellationException thrown from the child workflow method.

Table of Contents

Cases

Abandon  = 3
Do not request cancellation of the child workflow.
TryCancel  = 2
Initiate a cancellation request and immediately report cancellation to the parent. Note that it doesn't guarantee that cancellation is delivered to the child if parent exits before the delivery is done. It can be mitigated by setting to {@see ParentClosePolicy::RequestCancel}
WaitCancellationCompleted
Wait for child cancellation completion.
WaitCancellationRequested  = 1
Request cancellation of the child and wait for confirmation that the request was received.

Cases

WaitCancellationRequested

Request cancellation of the child and wait for confirmation that the request was received.

Doesn't wait for actual cancellation.

Note: currently not supported.

TryCancel

Initiate a cancellation request and immediately report cancellation to the parent. Note that it doesn't guarantee that cancellation is delivered to the child if parent exits before the delivery is done. It can be mitigated by setting to {@see ParentClosePolicy::RequestCancel}


        
On this page

Search results