org.apache.wiki.workflow
Class SimpleDecision

java.lang.Object
  extended by org.apache.wiki.workflow.AbstractStep
      extended by org.apache.wiki.workflow.Decision
          extended by 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

Constructor Summary
SimpleDecision(Workflow workflow, String messageKey, Principal actor)
          Constructs a new SimpleDecision assigned to a specified actor.
 
Method Summary
 
Methods inherited from class org.apache.wiki.workflow.Decision
addFact, decide, execute, getActor, getDefaultOutcome, getFacts, getId, isReassignable, reassign, setId
 
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
 

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


Copyright © {inceptionYear}-2014 The Apache Software Foundation. All rights reserved.