Package org.imixs.workflow
Interface Model
- All Known Implementing Classes:
BPMNModel
public interface Model
The IModel interface defines getter methods to navigate through a Imixs
Workflow Model. The IModel interface is used by the
IModelManager
.
A Imixs-Workflow Model is defined by a collections of Tasks and Events. A
Task defines the state of a process instance. The Event defines the
transition from one state to another. A Task contains informations about the
processing state e.g. the name or the status description. A Task is uniquely
identified by its ID. A Event is unambiguously assigned to a Task and
uniquely identified by by an ID.
Task and Event elements are implemented as instances of the class
ItemCollection.
A Model holds a Definition which contains general model information.- Version:
- 1.0
- Author:
- Ralph Soika
- See Also:
-
org.imixs.workflow.IModelwManager
ItemCollection
-
Method Summary
Modifier and TypeMethodDescriptionfindAllEventsByTask
(int taskID) Returns all Events assigned to a task.Returns all Tasks defined in the model.findTasksByGroup
(String group) Returns a list of Tasks assigned to a specific workflow group.Returns the model definition containing general model information (e.g.getEvent
(int taskID, int eventID) Returns a Event by its Id and Task-ID.Returns all Group definitions.getTask
(int taskID) Returns a Task by its Id.Returns the model version.
-
Method Details
-
getVersion
String getVersion()Returns the model version.- Returns:
-
getDefinition
ItemCollection getDefinition()Returns the model definition containing general model information (e.g. $ModelVersion).- Returns:
-
getTask
Returns a Task by its Id.- Parameters:
taskid
-modelVersion
-- Returns:
- ItemCollection
- Throws:
ModelException
-
getEvent
Returns a Event by its Id and Task-ID.- Parameters:
taskid
-eventid
-modelVersion
-- Returns:
- ItemCollection
- Throws:
ModelException
-
getGroups
Returns all Group definitions.- Returns:
-
findAllTasks
List<ItemCollection> findAllTasks()Returns all Tasks defined in the model.- Parameters:
modelVersion
-- Returns:
- List org.imixs.workflow.ItemCollection
-
findAllEventsByTask
Returns all Events assigned to a task.- Parameters:
taskid
-- Returns:
- Collection org.imixs.workflow.ItemCollection
-
findTasksByGroup
Returns a list of Tasks assigned to a specific workflow group.- Parameters:
group
-- Returns:
-