org.jwarp.flow
Class AWorkflowObject
java.lang.Object
|
+--org.jwarp.flow.AWorkflowObject
- All Implemented Interfaces:
- IWorkflowObject
- Direct Known Subclasses:
- Activity, ActivityFactory, Participant, Process, Role, State, WorkflowModel
- public abstract class AWorkflowObject
- extends java.lang.Object
- implements IWorkflowObject
This is the base interface for all relevant workflow object. First of all
All objects must define a simple numeic id, a name and a description.
The interface IXMLStorable defines the xml methods.
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
protected int id
name
protected java.lang.String name
description
protected java.lang.String description
workflow
protected IWorkflow workflow
AWorkflowObject
public AWorkflowObject(int id,
java.lang.String name)
AWorkflowObject
public AWorkflowObject(int id,
java.lang.String name,
java.lang.String description)
AWorkflowObject
public AWorkflowObject(int id,
java.lang.String name,
java.lang.String description,
IWorkflow flow)
setWorkflow
protected void setWorkflow(IWorkflow wf)
- Sets a wrokflow.
setDescription
public void setDescription(java.lang.String description)
- Sets the description.
setName
protected void setName(java.lang.String name)
- Sets the description.
getID
public int getID()
- Return th eid nr
- Specified by:
getID in interface IWorkflowObject
- Returns:
- The id
getName
public java.lang.String getName()
- Return a name
- Specified by:
getName in interface IWorkflowObject
- Returns:
- The name
getDescription
public java.lang.String getDescription()
- Return a description (opional)
- Specified by:
getDescription in interface IWorkflowObject
- Returns:
- The description
getWorkflow
public IWorkflow getWorkflow()
- Returns the owning workflow.
- Returns:
- The workflow of this transition instance