public static final class UserTask.WorkItem.State extends Object
Modifier and Type | Field and Description |
---|---|
static UserTask.WorkItem.State |
ALLOCATED |
static UserTask.WorkItem.State |
COMPLETED |
static UserTask.WorkItem.State |
ERROR |
static UserTask.WorkItem.State |
OFFERED |
static UserTask.WorkItem.State |
STARTED |
Modifier and Type | Method and Description |
---|---|
UserMessage |
getLabel() |
boolean |
isAllocated()
Returns
true if the work item is allocated to
a UserReference , but has not yet been started. |
boolean |
isCompleted()
Returns
true if the work item has been completed,
which means the UserReference has
finished its task and saved their decision. |
boolean |
isError()
Returns
true if the work item is in error. |
boolean |
isOffered()
Returns
true when the work item is offered to
a Role . |
boolean |
isStarted()
Returns
true if the work item has been started by
the UserReference to which it is allocated. |
public static final UserTask.WorkItem.State OFFERED
public static final UserTask.WorkItem.State ALLOCATED
public static final UserTask.WorkItem.State STARTED
public static final UserTask.WorkItem.State COMPLETED
public static final UserTask.WorkItem.State ERROR
public UserMessage getLabel()
public boolean isOffered()
true
when the work item is offered to
a Role
. In this state, the work item
can be taken or allocated to a UserReference
member of the specified Role
.public boolean isAllocated()
true
if the work item is allocated to
a UserReference
, but has not yet been started.public boolean isStarted()
true
if the work item has been started by
the UserReference
to which it is allocated.public boolean isCompleted()
true
if the work item has been completed,
which means the UserReference
has
finished its task and saved their decision.public boolean isError()
true
if the work item is in error.