org.jwarp.flow.process
Class Process
java.lang.Object
|
+--org.jwarp.flow.AWorkflowObject
|
+--org.jwarp.flow.process.Process
- All Implemented Interfaces:
- IProcess, IWorkflowObject
- public class Process
- extends AWorkflowObject
- implements IProcess
|
Field Summary |
protected java.util.Date |
creationDate
The dateTime when the transition was created. |
protected java.util.Date |
endDate
The dateTime when the transition started. |
protected IProcess |
metaData
The transitions metadata |
protected IActivity |
owner
The process owner |
protected int |
priority
|
protected java.util.Date |
startDate
The dateTime when the transition finished. |
protected int |
status
The instances status. |
|
Constructor Summary |
Process(IActivity owner,
IProcess metaData)
Creates a new transition instance given the passed metaData information. |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
owner
protected IActivity owner
- The process owner
metaData
protected IProcess metaData
- The transitions metadata
startDate
protected java.util.Date startDate
- The dateTime when the transition finished.
endDate
protected java.util.Date endDate
- The dateTime when the transition started.
creationDate
protected java.util.Date creationDate
- The dateTime when the transition was created.
priority
protected int priority
status
protected int status
- The instances status.
Process
public Process(IActivity owner,
IProcess metaData)
- Creates a new transition instance given the passed metaData information.
getStatus
public int getStatus()
- Description copied from interface:
IProcess
- Returns the current status of the process instance.
- Specified by:
getStatus in interface IProcess
- Following copied from interface:
org.jwarp.flow.process.IProcess
- Returns:
- the status
getActivities
public java.util.Iterator getActivities()
- Description copied from interface:
IProcess
- Returns all the started activities.
- Specified by:
getActivities in interface IProcess
- Following copied from interface:
org.jwarp.flow.process.IProcess
- Returns:
- the started activities
prepareRun
protected void prepareRun()
throws ProcessException
start
public void start(IWorkflowContext context)
throws ProcessException
- Description copied from interface:
IProcess
- Start the process instance.
- Specified by:
start in interface IProcess
- Following copied from interface:
org.jwarp.flow.process.IProcess
- Parameters:
The - workflow context.
abort
public void abort(IWorkflowContext context)
throws java.lang.SecurityException
- Description copied from interface:
IProcess
- Abort the process instance.
- Specified by:
abort in interface IProcess
- Following copied from interface:
org.jwarp.flow.process.IProcess
- Parameters:
The - workflow context.
getMetadata
public IProcess getMetadata()
setXML
public void setXML(org.jdom.Element xml)
throws XMLException
getXML
public org.jdom.Element getXML()
getCreationTime
public java.util.Date getCreationTime()
- Specified by:
getCreationTime in interface IProcess
getStartTime
public java.util.Date getStartTime()
- Specified by:
getStartTime in interface IProcess
getEndTime
public java.util.Date getEndTime()
- Specified by:
getEndTime in interface IProcess
getPriority
public int getPriority()
- Specified by:
getPriority in interface IProcess