Package com.orchestranetworks.workflow
Class UserTask.CompletionStrategy
- java.lang.Object
-
- com.orchestranetworks.workflow.UserTask.CompletionStrategy
-
-
Field Summary
Fields Modifier and Type Field Description static UserTask.CompletionStrategyALL_WORK_ITEMS_ACCEPTEDTerminates the current task when all work items have been accepted.static UserTask.CompletionStrategyALL_WORK_ITEMS_ACCEPTED_BUT_ONETerminates current task when all work items except one have been accepted.static UserTask.CompletionStrategyALL_WORK_ITEMS_ACCEPTED_OR_ANY_REJECTEDTerminates current task either when all work items have been accepted, or as soon as one work item has been rejected.static UserTask.CompletionStrategyALL_WORK_ITEMS_COMPLETEDTerminates current task when all work items have been either accepted or rejected.static UserTask.CompletionStrategyANY_WORK_ITEM_ACCEPTEDTerminates current task as soon as one work item has been accepted.static UserTask.CompletionStrategyAT_LEAST_HALF_WORK_ITEMS_ACCEPTEDTerminates current task as soon as half of the work items have been accepted.static Set<UserTask.CompletionStrategy>IGNORE_REJECT_STRATEGIES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringformat()Returns a persistent identifier of this header.static UserTask.CompletionStrategygetDefaultStrategy()Returns the default task termination criteria.UserMessagegetLabel()Returns the label associated with the task termination criteria.static UserTask.CompletionStrategyparse(String flag)Returns theCompletionStrategyfor the specified string.StringtoString()
-
-
-
Field Detail
-
IGNORE_REJECT_STRATEGIES
public static final Set<UserTask.CompletionStrategy> IGNORE_REJECT_STRATEGIES
-
ALL_WORK_ITEMS_ACCEPTED
public static final UserTask.CompletionStrategy ALL_WORK_ITEMS_ACCEPTED
Terminates the current task when all work items have been accepted.
-
ANY_WORK_ITEM_ACCEPTED
public static final UserTask.CompletionStrategy ANY_WORK_ITEM_ACCEPTED
Terminates current task as soon as one work item has been accepted.
-
ALL_WORK_ITEMS_ACCEPTED_BUT_ONE
public static final UserTask.CompletionStrategy ALL_WORK_ITEMS_ACCEPTED_BUT_ONE
Terminates current task when all work items except one have been accepted.
-
AT_LEAST_HALF_WORK_ITEMS_ACCEPTED
public static final UserTask.CompletionStrategy AT_LEAST_HALF_WORK_ITEMS_ACCEPTED
Terminates current task as soon as half of the work items have been accepted.
-
ALL_WORK_ITEMS_COMPLETED
public static final UserTask.CompletionStrategy ALL_WORK_ITEMS_COMPLETED
Terminates current task when all work items have been either accepted or rejected.
-
ALL_WORK_ITEMS_ACCEPTED_OR_ANY_REJECTED
public static final UserTask.CompletionStrategy 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 Detail
-
parse
public static UserTask.CompletionStrategy parse(String flag)
Returns theCompletionStrategyfor the specified string. The parameter has to have been generated byformat().- See Also:
format()
-
getDefaultStrategy
public static UserTask.CompletionStrategy getDefaultStrategy()
Returns the default task termination criteria.
-
format
public final String format()
Returns a persistent identifier of this header.- See Also:
parse(String)
-
getLabel
public UserMessage getLabel()
Returns the label associated with the task termination criteria.
-
-