public final class Outcome extends Object implements 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(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() |
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.