Interface NotificationComp<M extends Model>


public interface NotificationComp<M extends Model>
A computation for sending Notifications to users which can be invoked in the context of an action-based workflow.
  • Method Details

    • execute

      java.util.List<Notification> execute​(M input, M current, ActionBasedWorkflowContext<M> context) throws java.lang.Exception
      Executes this notification computation.
      Parameters:
      input - the original Model which was passed in to the workflow
      current - current "working copy" of the Model
      context - context of the current action based workflow
      Returns:
      contains the Notifications which should be sent via the NotificationService
      Throws:
      java.lang.Exception - any Exception can be thrown by the client to abort the computation - this Exception will cause all Models being written in this workflow to fail