Class SimpleNotification

    • Constructor Detail

      • 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