Package org.apache.wiki.workflow
Class Outcome
java.lang.Object
org.apache.wiki.workflow.Outcome
- All Implemented Interfaces:
Serializable
Resolution of a workflow Step, such as "approve," "deny," "hold," "task error," or other potential resolutions.
- Since:
- 2.5
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Outcome
Acknowlege the Decision.static final Outcome
Approve the Decision (and complete the step).static final Outcome
Deny the Decision (and complete the step).static final Outcome
Put the Decision on hold (and pause the step).static final Outcome
Reassign the Decision to another actor (and pause the step).static final Outcome
Terminate workflow step (without errors)static final Outcome
Complete workflow step (without errors)static final Outcome
Continue workflow step (without errors) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Two Outcome objects are equal if their message keys are equal.static Outcome
Returns a named Outcome.The i18n key for this outcome, which is prefixed byoutcome.
.int
hashCode()
The hashcode of an Outcome is identical to the hashcode of its message key, multiplied by 2 if it is a "completion" Outcome.boolean
Returnstrue
if this Outcome represents a completion condition for a Step.toString()
-
Field Details
-
STEP_COMPLETE
Complete workflow step (without errors) -
STEP_ABORT
Terminate workflow step (without errors) -
STEP_CONTINUE
Continue workflow step (without errors) -
DECISION_ACKNOWLEDGE
Acknowlege the Decision. -
DECISION_APPROVE
Approve the Decision (and complete the step). -
DECISION_DENY
Deny the Decision (and complete the step). -
DECISION_HOLD
Put the Decision on hold (and pause the step). -
DECISION_REASSIGN
Reassign the Decision to another actor (and pause the step).
-
-
Method Details
-
isCompletion
Returnstrue
if this Outcome represents a completion condition for a Step.- Returns:
- the result
-
getMessageKey
The i18n key for this outcome, which is prefixed byoutcome.
. If calling classes wish to return a locale-specific name for this task (such as "approve this request"), they can use this method to obtain the correct key suffix.- Returns:
- the i18n key for this outcome
-
hashCode
The hashcode of an Outcome is identical to the hashcode of its message key, multiplied by 2 if it is a "completion" Outcome. -
equals
Two Outcome objects are equal if their message keys are equal. -
forName
Returns a named Outcome. If an Outcome matching the supplied key is not found, this method throws aNoSuchOutcomeException
.- Parameters:
key
- the name of the outcome- Returns:
- the Outcome
- Throws:
NoSuchOutcomeException
- if an Outcome matching the key isn't found.
-
toString
-