public static enum Work.State extends Enum<Work.State>
Work
instance.Enum Constant and Description |
---|
CANCELED
Work instance was canceled.
|
COMPLETED
Work instance has completed.
|
FAILED
Work instance has failed.
|
RUNNING
Work instance is running.
|
SCHEDULED
Work instance is scheduled but not yet running.
|
SUSPENDED
Work instance is suspended in memory and work is stopped.
|
SUSPENDING
Work instance is running but should suspend work.
|
Modifier and Type | Method and Description |
---|---|
static Work.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Work.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Work.State SCHEDULED
public static final Work.State RUNNING
public static final Work.State SUSPENDING
public static final Work.State SUSPENDED
public static final Work.State COMPLETED
public static final Work.State FAILED
public static final Work.State CANCELED
public static Work.State[] values()
for (Work.State c : Work.State.values()) System.out.println(c);
public static Work.State valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullCopyright © 2012 Nuxeo SA. All Rights Reserved.