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 when WorkflowService#writeCurrentToDatabase(ActionBasedWorkflowContext, boolean) is called.
    ModelList<M> getInput()
    ModelList containing the Models which were given to the workflow as input from the user

    Methods inherited from interface com.onenetwork.platform.workflow.WorkflowContext

    getPlatformUserContext, setRollbackOnly
  • Method Details

    • getInput

      ModelList<M> getInput()
      ModelList containing the Models which were given to the workflow as input from the user
    • getCurrent

      ModelList<M> getCurrent()
      ModelList containing the "working copy" of Models which will be written to the database when WorkflowService#writeCurrentToDatabase(ActionBasedWorkflowContext, boolean) is called. One can use WorkflowService.mergeInputToCurrent(ActionBasedWorkflowContext) to merge values down from input to current automatically, and WorkflowService#populateCurrentFromDatabase(ActionBasedWorkflowContext, FetchingParam...) to populate current directly from the database.