Class 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 Details

    • SimpleDecision

      public SimpleDecision​(int workflowId, Map<String,​Serializable> workflowContext, String messageKey, Principal actor)
      Constructs a new SimpleDecision assigned to a specified actor.
      Parameters:
      workflowId - the parent workflow id to set
      workflowContext - the parent workflow context to set
      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