Package org.apache.wiki.workflow
Class SimpleNotification
- java.lang.Object
 - 
- org.apache.wiki.workflow.AbstractStep
 - 
- org.apache.wiki.workflow.Decision
 - 
- org.apache.wiki.workflow.SimpleNotification
 
 
 
 
- 
- All Implemented Interfaces:
 java.io.Serializable,Step
public final class SimpleNotification extends Decision
Decision subclass used for notifications that includes only one available Outcome:Outcome.DECISION_ACKNOWLEDGE. The Decision is not reassignable, and the default Outcome isOutcome.DECISION_ACKNOWLEDGE.- Since:
 - 2.5
 - See Also:
 - Serialized Form
 
 
- 
- 
Field Summary
- 
Fields inherited from interface org.apache.wiki.workflow.Step
TIME_NOT_SET 
 - 
 
- 
Constructor Summary
Constructors Constructor 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. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacknowledge(Context context)Convenience method that simply callsDecision.decide(Outcome, Context)with the valueOutcome.DECISION_ACKNOWLEDGE.booleanisReassignable()Notifications cannot be re-assigned, so this method always returnsfalse.- 
Methods inherited from class org.apache.wiki.workflow.Decision
addFact, decide, execute, getActor, getDefaultOutcome, getFacts, getId, reassign, setId 
- 
Methods inherited from class org.apache.wiki.workflow.AbstractStep
addError, addSuccessor, getAvailableOutcomes, getEndTime, getErrors, getMessageKey, getOutcome, getStartTime, getSuccessor, getWorkflowContext, getWorkflowId, isCompleted, isStarted, setOutcome, setWorkflow, start 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
SimpleNotification
public 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. The notification is placed in the Principal's list of queued Decisions. Because the only available Outcome isOutcome.DECISION_ACKNOWLEDGE, the actor can only acknowledge the message.- Parameters:
 workflowId- the parent workflow id to setworkflowContext- the parent workflow context to setmessageKey- the message keyactor- the Principal who will acknowledge the message
 
 - 
 
- 
Method Detail
- 
acknowledge
public void acknowledge(Context context) throws WikiException
Convenience method that simply callsDecision.decide(Outcome, Context)with the valueOutcome.DECISION_ACKNOWLEDGE.- Throws:
 WikiException- never
 
- 
isReassignable
public boolean isReassignable()
Notifications cannot be re-assigned, so this method always returnsfalse.- Overrides:
 isReassignablein classDecision- Returns:
 falsealways.
 
 - 
 
 -