Package com.onenetwork.platform.workflow
Interface ActionBasedWorkflowContext<M extends Model>
- All Superinterfaces:
WorkflowContext
public interface ActionBasedWorkflowContext<M extends Model> extends WorkflowContext
Describes the execution context for an activity in an action-based workflow.
-
Method Summary
Modifier and Type Method Description ModelList<M>
getCurrent()
ModelList containing the "working copy" of Models which will be written to the database whenWorkflowService#writeCurrentToDatabase(ActionBasedWorkflowContext, boolean)
is called.ModelList<M>
getInput()
ModelList containing the Models which were given to the workflow as input from the userMethods inherited from interface com.onenetwork.platform.workflow.WorkflowContext
getPlatformUserContext, setRollbackOnly
-
Method Details
-
getInput
ModelList containing the Models which were given to the workflow as input from the user -
getCurrent
ModelList containing the "working copy" of Models which will be written to the database whenWorkflowService#writeCurrentToDatabase(ActionBasedWorkflowContext, boolean)
is called. One can useWorkflowService.mergeInputToCurrent(ActionBasedWorkflowContext)
to merge values down from input to current automatically, andWorkflowService#populateCurrentFromDatabase(ActionBasedWorkflowContext, FetchingParam...)
to populate current directly from the database.
-