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.
 
Fields inherited from class org.jwarp.flow.AWorkflowObject
description, id, name, workflow
 
Fields inherited from interface org.jwarp.flow.process.IProcess
STATUS_BLOCKED, STATUS_COMPLETED, STATUS_COMPLETED_ERROR, STATUS_CREATED, STATUS_RUNNING, STATUS_SUSPENDED
 
Constructor Summary
Process(IActivity owner, IProcess metaData)
          Creates a new transition instance given the passed metaData information.
 
Method Summary
 void abort(IWorkflowContext context)
          Abort the process instance.
 java.util.Iterator getActivities()
          Returns all the started activities.
 java.util.Date getCreationTime()
           
 java.util.Date getEndTime()
           
 IProcess getMetadata()
           
 int getPriority()
           
 java.util.Date getStartTime()
           
 int getStatus()
          Returns the current status of the process instance.
 org.jdom.Element getXML()
           
protected  void prepareRun()
           
 void setXML(org.jdom.Element xml)
           
 void start(IWorkflowContext context)
          Start the process instance.
 
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

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.
Constructor Detail

Process

public Process(IActivity owner,
               IProcess metaData)
Creates a new transition instance given the passed metaData information.
Method Detail

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

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