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
           
 
Fields inherited from class org.jwarp.flow.AWorkflowObject
description, id, name, workflow
 
Constructor Summary
WorkflowModel(int id, java.lang.String name, java.lang.String description)
           
 
Method Summary
 void addWorkflow(IWorkflow flow)
          Add a workflow
 void configure(org.jdom.Element config)
          Pass the Configuration to the Configurable class.
 java.util.Date getCreationDate()
          Return the creation date (start of this generation).
 int getGeneration()
          Return the generation counter (starting at 1).
 java.util.Iterator getWorkflows()
          Get all workflows from this model.
 IWorkflowSystem getWorkflowSystem()
           
 void removeWorkflow(IWorkflow flow)
          Remove a workflow.
 void setWorkflowSystem(IWorkflowSystem system)
           
 
Methods inherited from class org.jwarp.flow.AWorkflowObject
getDescription, getID, getName, getWorkflow, setDescription, setName, setWorkflow
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jwarp.flow.IWorkflowObject
getDescription, getID, getName
 

Field Detail

flows

java.util.LinkedList flows
The workflows belonging to this model

creationDate

java.util.Date creationDate

generation

int generation
Constructor Detail

WorkflowModel

public WorkflowModel(int id,
                     java.lang.String name,
                     java.lang.String description)
Method Detail

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

©   O R C A   S y s t e m s