Package org.imixs.workflow
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 Summary
Modifier and TypeMethodDescriptionvoid
Adds a new Model to the ModelManager.Returns a Model by version.getModelByWorkitem
(ItemCollection workitem) Returns a Model matching a given workitem.void
removeModel
(String version) Removes a Model from the ModelManager
-
Method Details
-
getModel
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
Adds a new Model to the ModelManager.- Parameters:
model
-- Throws:
ModelException
-
removeModel
Removes a Model from the ModelManager- Parameters:
version
-
-
getModelByWorkitem
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
-