
public final class Outcome extends Object implements Serializable
| Modifier and Type | Field and Description | 
|---|---|
| static Outcome | DECISION_ACKNOWLEDGEAcknowlege the Decision. | 
| static Outcome | DECISION_APPROVEApprove the Decision (and complete the step). | 
| static Outcome | DECISION_DENYDeny the Decision (and complete the step). | 
| static Outcome | DECISION_HOLDPut the Decision on hold (and pause the step). | 
| static Outcome | DECISION_REASSIGNReassign the Decision to another actor (and pause the step). | 
| static Outcome | STEP_ABORTTerminate workflow step (without errors) | 
| static Outcome | STEP_COMPLETEComplete workflow step (without errors) | 
| static Outcome | STEP_CONTINUEContinue workflow step (without errors) | 
| Modifier and Type | Method and Description | 
|---|---|
| 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  trueif this Outcome represents a completion
 condition for a Step. | 
| String | toString() | 
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
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()
public boolean equals(Object obj)
public static Outcome forName(String key) throws NoSuchOutcomeException
NoSuchOutcomeException.key - the name of the outcomeNoSuchOutcomeException - if an Outcome matching the key isn't found.Copyright © 2001-2018 The Apache Software Foundation. All rights reserved.