|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wiki.workflow.Outcome
public final class Outcome
Resolution of a workflow Step, such as "approve," "deny," "hold," "task error," or other potential resolutions.
Field Summary | |
---|---|
static Outcome |
DECISION_ACKNOWLEDGE
Acknowlege the Decision. |
static Outcome |
DECISION_APPROVE
Approve the Decision (and complete the step). |
static Outcome |
DECISION_DENY
Deny the Decision (and complete the step). |
static Outcome |
DECISION_HOLD
Put the Decision on hold (and pause the step). |
static Outcome |
DECISION_REASSIGN
Reassign the Decision to another actor (and pause the step). |
static Outcome |
STEP_ABORT
Terminate workflow step (without errors) |
static Outcome |
STEP_COMPLETE
Complete workflow step (without errors) |
static Outcome |
STEP_CONTINUE
Continue workflow step (without errors) |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Two Outcome objects are equal if their message keys are equal. |
static Outcome |
forName(String key)
Returns a named Outcome. |
String |
getMessageKey()
The i18n key for this outcome, which is prefixed by outcome. |
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 |
isCompletion()
Returns true if this Outcome represents a completion
condition for a Step. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Outcome STEP_COMPLETE
public static final Outcome STEP_ABORT
public static final Outcome STEP_CONTINUE
public static final Outcome DECISION_ACKNOWLEDGE
public static final Outcome DECISION_APPROVE
public static final Outcome DECISION_DENY
public static final Outcome DECISION_HOLD
public static final Outcome DECISION_REASSIGN
Method Detail |
---|
public boolean isCompletion()
true
if this Outcome represents a completion
condition for a Step.
public String getMessageKey()
outcome.
.
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.
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
obj
- the object to test
true
if logically equal, false
if notpublic static Outcome forName(String key) throws NoSuchOutcomeException
NoSuchOutcomeException
.
key
- the name of the outcome
NoSuchOutcomeException
- if an Outcome matching the key isn't found.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |