public enum ActivityCancellationType extends java.lang.Enum<ActivityCancellationType>
CancellationScope
that wraps child workflow
execution request is cancelled. The result of the cancellation independently of the type is a
CancellationException
thrown from the child workflow method.Enum Constant and Description |
---|
ABANDON
Do not request cancellation of the activity and immediately report cancellation to the workflow
|
TRY_CANCEL
Initiate a cancellation request and immediately report cancellation to the workflow.
|
WAIT_CANCELLATION_COMPLETED
Wait for activity cancellation completion.
|
Modifier and Type | Method and Description |
---|---|
static ActivityCancellationType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ActivityCancellationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ActivityCancellationType WAIT_CANCELLATION_COMPLETED
public static final ActivityCancellationType TRY_CANCEL
public static final ActivityCancellationType ABANDON
public static ActivityCancellationType[] values()
for (ActivityCancellationType c : ActivityCancellationType.values()) System.out.println(c);
public static ActivityCancellationType 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