public enum WorkflowErrorPolicy extends java.lang.Enum<WorkflowErrorPolicy>
Enum Constant and Description |
---|
BlockWorkflow
If workflow code throws an
Error the workflow progress blocks problem is fixed usually
by a worker deployment rollback. |
FailWorkflow
If workflow code throws an
Error the workflow is immediately failed. |
Modifier and Type | Method and Description |
---|---|
static WorkflowErrorPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WorkflowErrorPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WorkflowErrorPolicy BlockWorkflow
Error
the workflow progress blocks problem is fixed usually
by a worker deployment rollback.
Note that in case of non deterministic code which is the most frequently caused by a code
change not protected by Workflow.getVersion(String, int, int)
the
Error is thrown by the framework.
public static final WorkflowErrorPolicy FailWorkflow
Error
the workflow is immediately failed.
Note that in case of non deterministic code which is the most frequently caused by a code
change not protected by Workflow.getVersion(String, int, int)
the
Error is thrown by the framework.
WARNING: enabling this in production can cause all open workflows to fail on a single bug or bad deployment.
public static WorkflowErrorPolicy[] values()
for (WorkflowErrorPolicy c : WorkflowErrorPolicy.values()) System.out.println(c);
public static WorkflowErrorPolicy 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