com.ecyrd.jspwiki.workflow
Class SimpleDecision

java.lang.Object
  extended by com.ecyrd.jspwiki.workflow.AbstractStep
      extended by com.ecyrd.jspwiki.workflow.Decision
          extended by com.ecyrd.jspwiki.workflow.SimpleDecision
All Implemented Interfaces:
Step, Serializable

public class SimpleDecision
extends Decision

Decision subclass that includes two available Outcomes: Outcome.DECISION_APPROVE or Outcome.DECISION_DENY. The Decision is reassignable, and the default Outcome is Outcome.DECISION_APPROVE.

Author:
Andrew Jaquith
See Also:
Serialized Form

Constructor Summary
SimpleDecision(Workflow workflow, String messageKey, Principal actor)
          Constructs a new SimpleDecision assigned to a specified actor.
 
Method Summary
 
Methods inherited from class com.ecyrd.jspwiki.workflow.Decision
addFact, decide, execute, getActor, getDefaultOutcome, getFacts, getId, isReassignable, reassign, setId
 
Methods inherited from class com.ecyrd.jspwiki.workflow.AbstractStep
addError, addSuccessor, getAvailableOutcomes, getEndTime, getErrors, getMessageArguments, getMessageKey, getOutcome, getOwner, getStartTime, getSuccessor, getWorkflow, isCompleted, isStarted, setOutcome, setWorkflow, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDecision

public SimpleDecision(Workflow workflow,
                      String messageKey,
                      Principal actor)
Constructs a new SimpleDecision assigned to a specified actor.

Parameters:
workflow - the parent Workflow
messageKey - the message key that describes the Decision, which will be presented in the UI
actor - the Principal (e.g., WikiPrincipal, GroupPrincipal, Role) who will decide