public enum ChildWorkflowCancellationType extends java.lang.Enum<ChildWorkflowCancellationType>
CancellationScope
that wraps child workflow
execution request is canceled. The result of the cancellation independently of the type is a
CanceledFailure
thrown from the child workflow method.Enum Constant and Description |
---|
ABANDON
Do not request cancellation of the child workflow
|
TRY_CANCEL
Initiate a cancellation request and immediately report cancellation to the parent.
|
WAIT_CANCELLATION_COMPLETED
Wait for child cancellation completion.
|
WAIT_CANCELLATION_REQUESTED
Request cancellation of the child and wait for confirmation that the request was received.
|
Modifier and Type | Method and Description |
---|---|
static ChildWorkflowCancellationType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ChildWorkflowCancellationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChildWorkflowCancellationType WAIT_CANCELLATION_COMPLETED
public static final ChildWorkflowCancellationType WAIT_CANCELLATION_REQUESTED
public static final ChildWorkflowCancellationType TRY_CANCEL
ParentClosePolicy
to ParentClosePolicy.PARENT_CLOSE_POLICY_REQUEST_CANCEL
.public static final ChildWorkflowCancellationType ABANDON
public static ChildWorkflowCancellationType[] values()
for (ChildWorkflowCancellationType c : ChildWorkflowCancellationType.values()) System.out.println(c);
public static ChildWorkflowCancellationType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null