Package com.orchestranetworks.workflow
Class UserTask.CompletionStrategy
java.lang.Object
com.orchestranetworks.workflow.UserTask.CompletionStrategy
- Enclosing class:
- UserTask
Defines the different strategies for work items completion.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final UserTask.CompletionStrategy
Terminates the current task when all work items have been accepted.static final UserTask.CompletionStrategy
Terminates current task when all work items except one have been accepted.static final UserTask.CompletionStrategy
Terminates current task either when all work items have been accepted, or as soon as one work item has been rejected.static final UserTask.CompletionStrategy
Terminates current task when all work items have been either accepted or rejected.static final UserTask.CompletionStrategy
Terminates current task as soon as one work item has been accepted.static final UserTask.CompletionStrategy
Terminates current task as soon as half of the work items have been accepted.static final Set<UserTask.CompletionStrategy>
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
format()
Returns a persistent identifier of this header.static UserTask.CompletionStrategy
Returns the default task termination criteria.getLabel()
Returns the label associated with the task termination criteria.static UserTask.CompletionStrategy
Returns theCompletionStrategy
for the specified string.toString()
-
Field Details
-
IGNORE_REJECT_STRATEGIES
-
ALL_WORK_ITEMS_ACCEPTED
Terminates the current task when all work items have been accepted. -
ANY_WORK_ITEM_ACCEPTED
Terminates current task as soon as one work item has been accepted. -
ALL_WORK_ITEMS_ACCEPTED_BUT_ONE
Terminates current task when all work items except one have been accepted. -
AT_LEAST_HALF_WORK_ITEMS_ACCEPTED
Terminates current task as soon as half of the work items have been accepted. -
ALL_WORK_ITEMS_COMPLETED
Terminates current task when all work items have been either accepted or rejected. -
ALL_WORK_ITEMS_ACCEPTED_OR_ANY_REJECTED
Terminates current task either when all work items have been accepted, or as soon as one work item has been rejected.
-
-
Method Details
-
parse
Returns theCompletionStrategy
for the specified string. The parameter has to have been generated byformat()
.- See Also:
-
getDefaultStrategy
Returns the default task termination criteria. -
format
Returns a persistent identifier of this header.- See Also:
-
toString
-
getLabel
Returns the label associated with the task termination criteria.
-