public final class Outcome extends java.lang.Object implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
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)
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Two Outcome objects are equal if their message keys are equal.
|
static Outcome |
forName(java.lang.String key)
Returns a named Outcome.
|
java.lang.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. |
java.lang.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 java.lang.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 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to testtrue if logically equal, false if notpublic static Outcome forName(java.lang.String key) throws NoSuchOutcomeException
NoSuchOutcomeException.key - the name of the outcomeNoSuchOutcomeException - if an Outcome matching the key isn't found.public java.lang.String toString()
toString in class java.lang.ObjectCopyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.