Interface ModelManager

All Known Implementing Classes:
ModelService

public interface ModelManager
The interface ModelManager manages instances of a Model. A Model instance is uniquely identified by the ModelVersion. The ModelManager is used by the WorkflowKernel to manage the workflow of a workitem.

By analyzing the workitem model version the Workflowkernel determines the corresponding model and get the Tasks and Events from the model to process the workitem and assign the workitem to the next Task defined by the Model.

Author:
rsoika
See Also:
  • Method Details

    • getModel

      Model getModel(String version) throws ModelException
      Returns a Model by version. The method throws a ModelException in case the model version did not exits.
      Parameters:
      version -
      Returns:
      Model
      Throws:
      ModelException
    • addModel

      void addModel(Model model) throws ModelException
      Adds a new Model to the ModelManager.
      Parameters:
      model -
      Throws:
      ModelException
    • removeModel

      void removeModel(String version)
      Removes a Model from the ModelManager
      Parameters:
      version -
    • getModelByWorkitem

      Model getModelByWorkitem(ItemCollection workitem) throws ModelException
      Returns a Model matching a given workitem. The method throws a ModelException in case the model version did not exits.
      Parameters:
      version -
      Returns:
      Model
      Throws:
      ModelException