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.
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
long id
creationTime
long creationTime
startTime
long startTime
lastUpdateTime
long lastUpdateTime
mainUser
ITicket mainUser
workflow
IWorkflow workflow
flowData
IFlowData flowData
WorkflowContext
public WorkflowContext(ITicket user)
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