Class SimpleNotification

java.lang.Object
All Implemented Interfaces:
java.io.Serializable, Step

public final class SimpleNotification
extends Decision
Decision subclass used for notifications that includes only one available Outcome: Outcome.DECISION_ACKNOWLEDGE. The Decision is not reassignable, and the default Outcome is Outcome.DECISION_ACKNOWLEDGE.
Since:
2.5
See Also:
Serialized Form
  • Constructor Details

    • SimpleNotification

      public SimpleNotification​(int workflowId, java.util.Map<java.lang.String,​java.io.Serializable> workflowContext, java.lang.String messageKey, java.security.Principal actor)
      Constructs a new SimpleNotification object with a supplied message key, associated Workflow, and named actor who must acknowledge the message. The notification is placed in the Principal's list of queued Decisions. Because the only available Outcome is Outcome.DECISION_ACKNOWLEDGE, the actor can only acknowledge the message.
      Parameters:
      workflowId - the parent workflow id to set
      workflowContext - the parent workflow context to set
      messageKey - the message key
      actor - the Principal who will acknowledge the message
  • Method Details