public enum WorkflowStatus extends java.lang.Enum<WorkflowStatus>
WorkflowModel can exist in four states:
WorkflowService.isPlanned(WorkflowModel),
WorkflowService.isRunning(WorkflowModel), WorkflowService.isFinished(WorkflowModel),
WorkflowService.isTerminated(WorkflowModel) to check what is the current state of the WorkflowModel.
WorkflowStatus is used as additional criteria to fetch WorkflowModel for more than one strict status within
WorkflowService.getAllAdhocWorkflows(EnumSet, java.util.Date, java.util.Date) and
WorkflowService.getAllWorkflows(EnumSet, java.util.Date, java.util.Date).| Enum Constant and Description |
|---|
FINISHED |
PLANNED |
RUNNING |
TERMINATED |
| Modifier and Type | Method and Description |
|---|---|
static java.util.EnumSet<WorkflowStatus> |
getAll() |
static WorkflowStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WorkflowStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WorkflowStatus PLANNED
public static final WorkflowStatus RUNNING
public static final WorkflowStatus FINISHED
public static final WorkflowStatus TERMINATED
public static WorkflowStatus[] values()
for (WorkflowStatus c : WorkflowStatus.values()) System.out.println(c);
public static WorkflowStatus 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 nullpublic static java.util.EnumSet<WorkflowStatus> getAll()
Copyright © 2018 SAP SE. All Rights Reserved.