Package com.onenetwork.platform.workflow
Interface Comp<M extends Model>
public interface Comp<M extends Model>
A computation (Issue, Valication, etc) which can be invoked in the context
of an action-based workflow.
-
Method Summary
Modifier and Type Method Description void
execute(M input, M current, ActionBasedWorkflowContext<M> context)
Executes this computation.
-
Method Details
-
execute
Executes this 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- 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
-