org.apache.wiki.workflow
Class SimpleDecision
java.lang.Object
org.apache.wiki.workflow.AbstractStep
org.apache.wiki.workflow.Decision
org.apache.wiki.workflow.SimpleDecision
- All Implemented Interfaces:
- Serializable, Step
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
.
- See Also:
- Serialized Form
Methods inherited from class org.apache.wiki.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
Copyright © {inceptionYear}-2014 The Apache Software Foundation. All rights reserved.