public final class SimpleNotification extends Decision
Outcome.DECISION_ACKNOWLEDGE. The Decision is
not reassignable, and the default Outcome is Outcome.DECISION_ACKNOWLEDGE.TIME_NOT_SET| Constructor and Description |
|---|
SimpleNotification(int workflowId,
Map<String,Serializable> workflowContext,
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, setIdaddError, addSuccessor, getAvailableOutcomes, getEndTime, getErrors, getMessageKey, getOutcome, getStartTime, getSuccessor, getWorkflowContext, getWorkflowId, isCompleted, isStarted, setOutcome, setWorkflow, startpublic SimpleNotification(int workflowId, Map<String,Serializable> workflowContext, String messageKey, Principal actor)
Outcome.DECISION_ACKNOWLEDGE, the actor can only acknowledge the message.workflowId - the parent workflow id to setworkflowContext - the parent workflow context to setmessageKey - 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 Decisionfalse always.Copyright © 2001-2020 The Apache Software Foundation. All rights reserved.