org.jwarp.flow.model
Class WorkflowModel
java.lang.Object
|
+--org.jwarp.flow.AWorkflowObject
|
+--org.jwarp.flow.model.WorkflowModel
- All Implemented Interfaces:
- IConfigurable, IWorkflowModel, IWorkflowObject, IWorkflowSystemAware
- public class WorkflowModel
- extends AWorkflowObject
- implements IWorkflowModel
Implementation class for a workflow model. A workflow model embraces several workflows.
The whole workflow systems is built on a set of such models combined with the basic workflow system sub services.
|
Field Summary |
(package private) java.util.Date |
creationDate
|
(package private) java.util.LinkedList |
flows
The workflows belonging to this model |
(package private) int |
generation
|
|
Constructor Summary |
WorkflowModel(int id,
java.lang.String name,
java.lang.String description)
|
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
flows
java.util.LinkedList flows
- The workflows belonging to this model
creationDate
java.util.Date creationDate
generation
int generation
WorkflowModel
public WorkflowModel(int id,
java.lang.String name,
java.lang.String description)
configure
public void configure(org.jdom.Element config)
- Description copied from interface:
IConfigurable
- Pass the
Configuration to the Configurable
class. This method must always be called after the constructor and before any other method.
- Specified by:
configure in interface IConfigurable
- Following copied from interface:
org.jwarp.service.configuration.IConfigurable
- Parameters:
configuration - the class configurations.
getGeneration
public int getGeneration()
- Description copied from interface:
IWorkflowModel
- Return the generation counter (starting at 1).
- Specified by:
getGeneration in interface IWorkflowModel
- Following copied from interface:
org.jwarp.flow.model.IWorkflowModel
- Returns:
- The generation
addWorkflow
public void addWorkflow(IWorkflow flow)
- Add a workflow
- Specified by:
addWorkflow in interface IWorkflowModel
- Parameters:
The - new workflow
removeWorkflow
public void removeWorkflow(IWorkflow flow)
- Remove a workflow.
- Specified by:
removeWorkflow in interface IWorkflowModel
- Parameters:
The - workflow to be removed.
getCreationDate
public java.util.Date getCreationDate()
- Description copied from interface:
IWorkflowModel
- Return the creation date (start of this generation).
- Specified by:
getCreationDate in interface IWorkflowModel
- Following copied from interface:
org.jwarp.flow.model.IWorkflowModel
- Returns:
- The creation date
getWorkflows
public java.util.Iterator getWorkflows()
- Get all workflows from this model.
- Specified by:
getWorkflows in interface IWorkflowModel
- Parameters:
The - workflows
setWorkflowSystem
public void setWorkflowSystem(IWorkflowSystem system)
- Specified by:
setWorkflowSystem in interface IWorkflowSystemAware
getWorkflowSystem
public IWorkflowSystem getWorkflowSystem()
- Specified by:
getWorkflowSystem in interface IWorkflowSystemAware