com.ecyrd.jspwiki.workflow
Class SimpleDecision
java.lang.Object
com.ecyrd.jspwiki.workflow.AbstractStep
com.ecyrd.jspwiki.workflow.Decision
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
| 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 |
SimpleDecision
public SimpleDecision(Workflow workflow,
String messageKey,
Principal actor)
- Constructs a new SimpleDecision assigned to a specified actor.
- Parameters:
workflow - the parent WorkflowmessageKey - the message key that describes the Decision, which
will be presented in the UIactor - the Principal (e.g., WikiPrincipal,
GroupPrincipal, Role) who will decide