Package com.onenetwork.platform.workflow
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 Summary
Modifier and Type Method Description java.util.List<Notification>
execute(M input, M current, ActionBasedWorkflowContext<M> context)
Executes this notification computation.
-
Method Details
-
execute
java.util.List<Notification> execute(M input, M current, ActionBasedWorkflowContext<M> context) throws java.lang.ExceptionExecutes this notification computation.- Parameters:
input
- the original Model which was passed in to the workflowcurrent
- current "working copy" of the Modelcontext
- 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
-