public final class SimpleNotification extends Decision
Outcome.DECISION_ACKNOWLEDGE
. The Decision is not reassignable, and
the default Outcome is Outcome.DECISION_ACKNOWLEDGE
.Constructor and Description |
---|
SimpleNotification(Workflow workflow,
String messageKey,
Principal actor)
Constructs a new SimpleNotification object with a supplied message key,
associated Workflow, and named actor who must acknowledge the message.
|
Modifier and Type | Method and Description |
---|---|
void |
acknowledge()
Convenience method that simply calls
Decision.decide(Outcome)
with the value Outcome.DECISION_ACKNOWLEDGE . |
boolean |
isReassignable()
Notifications cannot be re-assigned, so this method always returns
false . |
addFact, decide, execute, getActor, getDefaultOutcome, getFacts, getId, reassign, setId
addError, addSuccessor, getAvailableOutcomes, getEndTime, getErrors, getMessageArguments, getMessageKey, getOutcome, getOwner, getStartTime, getSuccessor, getWorkflow, isCompleted, isStarted, setOutcome, setWorkflow, start
public SimpleNotification(Workflow workflow, String messageKey, Principal actor)
Outcome.DECISION_ACKNOWLEDGE
, the actor can only acknowledge the
message.workflow
- the Workflow to associate this notification withmessageKey
- the message keyactor
- the Principal who will acknowledge the messagepublic void acknowledge() throws WikiException
Decision.decide(Outcome)
with the value Outcome.DECISION_ACKNOWLEDGE
.WikiException
- neverpublic boolean isReassignable()
false
.isReassignable
in class Decision
false
alwaysCopyright © 2001-2019 The Apache Software Foundation. All rights reserved.