org.jwarp.flow.process
Class WorkflowContext

java.lang.Object
  |
  +--org.jwarp.flow.process.WorkflowContext
All Implemented Interfaces:
IWorkflowContext

public class WorkflowContext
extends java.lang.Object
implements IWorkflowContext

This is the workflow context. The workfloa context is created for each new workflow that is activated. Transitions can store within it the runtime data and references.


Field Summary
(package private)  long creationTime
           
(package private)  IFlowData flowData
           
(package private)  long id
           
(package private)  long lastUpdateTime
           
(package private)  ITicket mainUser
           
(package private)  long startTime
           
(package private)  IWorkflow workflow
           
 
Constructor Summary
WorkflowContext(ITicket user)
           
 
Method Summary
 long getCreationTime()
          Returns the creation time of this context
 IFlowData getData()
          Returns the current workflow data.
 long getID()
          Returns the internal id number of this context.
 long getLastUpdateTime()
          Returns the last update time of this context
 IWorkflow getMetaData()
          Returns the meta data.
 long getStartTime()
          Returns the start time of this context
 ITicket getUser()
          Returns the workflow main user.
 java.lang.String getVersion()
          Returns the context version (fur future use)
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

long id

creationTime

long creationTime

startTime

long startTime

lastUpdateTime

long lastUpdateTime

mainUser

ITicket mainUser

workflow

IWorkflow workflow

flowData

IFlowData flowData
Constructor Detail

WorkflowContext

public WorkflowContext(ITicket user)
Method Detail

getID

public long getID()
Returns the internal id number of this context.
Specified by:
getID in interface IWorkflowContext
Returns:
The id.

getUser

public ITicket getUser()
Returns the workflow main user.
Specified by:
getUser in interface IWorkflowContext
Returns:
The user

getMetaData

public IWorkflow getMetaData()
Returns the meta data.
Specified by:
getMetaData in interface IWorkflowContext
Returns:
The work flow meta data

getVersion

public java.lang.String getVersion()
Returns the context version (fur future use)
Specified by:
getVersion in interface IWorkflowContext

getCreationTime

public long getCreationTime()
Returns the creation time of this context
Specified by:
getCreationTime in interface IWorkflowContext
Returns:
the creation time

getStartTime

public long getStartTime()
Returns the start time of this context
Specified by:
getStartTime in interface IWorkflowContext
Returns:
the start time

getLastUpdateTime

public long getLastUpdateTime()
Returns the last update time of this context
Specified by:
getLastUpdateTime in interface IWorkflowContext
Returns:
the last update time

getData

public IFlowData getData()
Returns the current workflow data. It is the applications responsibility to handle this data.
Specified by:
getData in interface IWorkflowContext
Returns:
The application data

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