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,
java.util.Map<java.lang.String,java.io.Serializable> workflowContext,
java.lang.String messageKey,
java.security.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(Context context)
Convenience method that simply calls
Decision.decide(Outcome, Context) 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, java.util.Map<java.lang.String,java.io.Serializable> workflowContext, java.lang.String messageKey, java.security.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(Context context) throws WikiException
Decision.decide(Outcome, Context) with the value Outcome.DECISION_ACKNOWLEDGE.WikiException - neverpublic boolean isReassignable()
false.isReassignable in class Decisionfalse always.Copyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.