Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

domain
Class VolatileProcess  view VolatileProcess download VolatileProcess.java

java.lang.Object
  extended byde.danet.an.workflow.domain.AbstractExecutionObject
      extended byde.danet.an.workflow.domain.AbstractProcess
          extended bydomain.VolatileProcess
All Implemented Interfaces:
de.danet.an.workflow.api.ExecutionObject, de.danet.an.workflow.apix.ExtExecutionObject, de.danet.an.workflow.apix.ExtProcess, de.danet.an.workflow.api.Process, de.danet.an.workflow.domain.TimedObject, de.danet.an.workflow.omgcore.WfExecutionObject, de.danet.an.workflow.omgcore.WfObject, de.danet.an.workflow.omgcore.WfProcess
Direct Known Subclasses:
Proc.TestProcess, TransMgr.TestProcess

public class VolatileProcess
extends de.danet.an.workflow.domain.AbstractProcess

This class implements the persistance layer required by AbstractProcess by, well, providing no persistence ...

Version:
$Revision: 1.38 $

Nested Class Summary
 
Nested classes inherited from class de.danet.an.workflow.domain.AbstractProcess
de.danet.an.workflow.domain.AbstractProcess.DataAccessor
 
Nested classes inherited from class de.danet.an.workflow.apix.ExtExecutionObject
de.danet.an.workflow.apix.ExtExecutionObject.Priority, de.danet.an.workflow.apix.ExtExecutionObject.RunningState, de.danet.an.workflow.apix.ExtExecutionObject.SuspendedState
 
Nested classes inherited from class de.danet.an.workflow.omgcore.WfExecutionObject
de.danet.an.workflow.omgcore.WfExecutionObject.ClosedState, de.danet.an.workflow.omgcore.WfExecutionObject.NotRunningState, de.danet.an.workflow.omgcore.WfExecutionObject.OpenState, de.danet.an.workflow.omgcore.WfExecutionObject.State
 
Field Summary
private  java.util.Collection activities
           
private  java.util.Date paCreateTime
          Persistent attribute createTime.
private  java.lang.String paDescription
          Persistent attribute description.
private  java.lang.String paId
          Persistent attribute id.
private  java.lang.String paKey
          Persistent attribute key.
private  java.util.Date paLastStateTime
          Persistent attribute lastStateTime.
private  java.lang.String paName
          Persistent attribute name.
private  de.danet.an.workflow.apix.ExtExecutionObject.Priority paPriority
          Persistent attribute priority.
private  de.danet.an.workflow.omgcore.ProcessData paProcessData
          Persistent attribute processData.
private  de.danet.an.workflow.api.ProcessDefinition paProcessDef
          Persistent attribute processDef.
private  java.lang.String paProcessMgr
          Persistent attribute processMgr.
private  java.lang.String paProcessMgrName
          Persistent attribute processMgrName.
private  java.lang.String paProcessMgrVersion
          Persistent attribute processMgrVersion.
private  de.danet.an.workflow.omgcore.WfRequester paRequester
          Persistent attribute requester.
private  de.danet.an.workflow.omgcore.WfExecutionObject.State paTypedState
          Persistent attribute typedState.
private  de.danet.an.workflow.omgcore.WfProcessMgr pmgr
           
private static int procKeyGen
           
private  java.util.List transitions
           
 
Fields inherited from class de.danet.an.workflow.domain.AbstractProcess
 
Fields inherited from class de.danet.an.workflow.domain.AbstractExecutionObject
 
Constructor Summary
VolatileProcess()
          Creates an instance of TestProcess with all attributes initialized to default values.
VolatileProcess(java.lang.String key)
          Creates an instance of TestProcess with all attributes initialized to default values.
 
Method Summary
 de.danet.an.workflow.api.Activity activityByKey(java.lang.String key)
          Describe activityByKey method here.
protected  de.danet.an.workflow.omgcore.WfAuditEvent activityRequesterInfo(de.danet.an.workflow.omgcore.WfRequester req)
          Describe activityRequesterInfo method here.
 void addActivity(de.danet.an.workflow.api.Activity act)
          Describe addActivity method here.
 void addTransition(java.lang.String id, java.lang.String group, int order, de.danet.an.workflow.api.Activity from, de.danet.an.workflow.api.Activity to)
          Describe addTransition method here.
 void addTransition(java.lang.String id, java.lang.String group, int order, de.danet.an.workflow.api.Activity from, de.danet.an.workflow.api.Activity to, java.lang.String cond)
          Describe addTransition method here.
 de.danet.an.workflow.omgcore.WfAuditEvent auditEventBase()
          Returns an audit event object with process relevant information initialized.
 void complete(java.lang.Long activity, de.danet.an.workflow.omgcore.WfExecutionObject.State s)
          Describe complete method here.
protected  de.danet.an.workflow.omgcore.WfActivity createActivity(org.jdom.Element actElement, java.lang.Long blockId, de.danet.an.workflow.api.Activity.JoinAndSplitMode jm, de.danet.an.workflow.api.Activity.JoinAndSplitMode sm)
          Describe createActivity method here.
protected  java.lang.Long createActivityKey()
          Provide a new unique activity key.
 java.util.Date createTime()
          Describe createTime method here.
protected  de.danet.an.workflow.api.Transition createTransition(java.lang.String id, java.lang.String group, int order, de.danet.an.workflow.api.Activity fromAct, de.danet.an.workflow.api.Activity toAct)
          Create a new transition with given id, From Activity, To Activity.
protected  void createTransitionRef(long serialNum, de.danet.an.workflow.api.Activity fromActivity, de.danet.an.workflow.api.Activity toActivity)
          Describe createTransitionRef method here.
protected  de.danet.an.workflow.api.Transition doCreateTransition(java.lang.String id, java.lang.String group, int order, de.danet.an.workflow.api.Activity fromAct, de.danet.an.workflow.api.Activity toAct, int condType, java.lang.String cond)
          Create a new transition with given id, From Activity, To Activity.
protected  java.util.Map getPaBlockDeadlines()
          The getter method implementation for the persistent attribute blockDeadlines.
protected  java.util.Date getPaCreateTime()
          The getter method implementation for the persistent attribute createTime.
protected  java.lang.String getPaDescription()
          The getter method implementation for the persistent attribute description.
protected  java.lang.String getPaId()
          The getter method for the persistent attribute id.
protected  java.lang.String getPaKey()
          The getter method implementation for the persistent attribute key.
protected  java.util.Date getPaLastStateTime()
          The getter method implementation for the persistent attribute lastStateTime.
protected  java.lang.String getPaName()
          The getter method implementation for the persistent attribute name.
protected  de.danet.an.workflow.apix.ExtExecutionObject.Priority getPaPriority()
          The getter method implementation for the persistent attribute priority.
protected  de.danet.an.workflow.omgcore.ProcessData getPaProcessData()
          The getter method implementation for the persistent attribute processData.
protected  de.danet.an.workflow.api.ProcessDefinition getPaProcessDef()
          The getter method implementation for the persistent attribute processDef.
protected  java.lang.String getPaProcessMgr()
          The getter method implementation for the persistent attribute processMgr.
protected  java.lang.String getPaProcessMgrName()
          The getter method implementation for the persistent attribute processMgrName.
protected  java.lang.String getPaProcessMgrVersion()
          The getter method implementation for the persistent attribute processMgrVersion.
protected  de.danet.an.workflow.omgcore.WfRequester getPaRequester()
          The getter method implementation for the persistent attribute requester.
protected  de.danet.an.workflow.omgcore.WfExecutionObject.State getPaTypedState()
          The getter method implementation for the persistent attribute typedState.
 java.lang.String getXPDL()
          Describe getXPDL method here.
 java.util.Collection history()
          Describe history method here.
protected  de.danet.an.workflow.apix.ExtActivity lookupActivity(java.lang.String key)
          Return an arbitrary activity with the given key.
 de.danet.an.workflow.omgcore.WfProcessMgr manager()
          Returns the process manager which created this process.
 de.danet.an.workflow.omgcore.ProcessData processContext()
          Describe processContext method here.
 java.security.Principal processCreator()
          Return the creator of the process.
 de.danet.an.workflow.api.ProcessDefinition processDefinition()
          Describe processDefinition method here.
 de.danet.an.workflow.api.ProcessDefinitionDirectory processDefinitionDirectory()
          Return the process definition directory.
 boolean removeOnClose()
          Returns true if the process will be removed automatically on completion.
protected  void removeThis()
          Remove this process.
 de.danet.an.workflow.omgcore.WfRequester requester()
          Describe requester method here.
 void setActivities(java.util.Collection act)
          Describe setActivities method here.
protected  void setPaDescription(java.lang.String newDescription)
          The setter method implementation for the persistent attribute description.
protected  void setPaId(java.lang.String newId)
          The setter method for the persistent attribute Id.
protected  void setPaLastStateTime(java.util.Date newLastStateTime)
          The setter method implementation for the persistent attribute lastStateTime.
protected  void setPaName(java.lang.String newName)
          The setter method implementation for the persistent attribute name.
protected  void setPaPriority(de.danet.an.workflow.apix.ExtExecutionObject.Priority newPriority)
          The setter method implementation for the persistent attribute priority.
protected  void setPaProcessData(de.danet.an.workflow.omgcore.ProcessData newProcessData)
          The setter method implementation for the persistent attribute processData.
protected  void setPaProcessDef(de.danet.an.workflow.api.ProcessDefinition newProcessDef)
          The setter method implementation for the persistent attribute processDef.
protected  void setPaProcessMgr(java.lang.String newProcessMgr)
          The setter method implementation for the persistent attribute processMgr.
protected  void setPaProcessMgrName(java.lang.String newProcessMgrName)
          The setter method implementation for the persistent attribute processMgrName.
protected  void setPaProcessMgrVersion(java.lang.String newProcessMgrVersion)
          The setter method implementation for the persistent attribute processMgrVersion.
protected  void setPaRequester(de.danet.an.workflow.omgcore.WfRequester newRequester)
          The setter method implementation for the persistent attribute requester.
protected  void setPaTypedState(de.danet.an.workflow.omgcore.WfExecutionObject.State newTypedState)
          The setter method implementation for the persistent attribute typedState.
 void setRequester(de.danet.an.workflow.omgcore.WfRequester requester)
          Describe setRequester method here.
 void startTimer(java.util.Date due, java.io.Serializable info)
          Start a timer that will call handleTimeout at the given date with the given info.
 java.util.Collection steps()
          Describe steps method here.
 void stopTimers()
          Stop all timers that this object has created.
protected  de.danet.an.workflow.api.Process thisRemote()
          Describe thisRemote method here.
 java.util.List transitions()
          Gets a list of transitions for this process.
 
Methods inherited from class de.danet.an.workflow.domain.AbstractProcess
abort, activitiesInState, activitiesOfBlockActivity, auditEventBase, changeState, dispose, evalScript, evalScripts, getStateTransitionMap, handleAbortedEvent, handleAuditEvent, handleCompletedEvent, handleException, handleResumedEvent, handleStartedEvent, handleTerminatedEvent, handleTimeout, init, jsScope, refresh, result, setProcessContext, start, startActivity, terminate, toString, transitionManager
 
Methods inherited from class de.danet.an.workflow.domain.AbstractExecutionObject
changeState, description, equals, extractDeadlines, fireAuditEvent, handleImplCompletedEvent, handleStateAuditEvent, handleSuspendedEvent, handleToolInvocationFailedAuditEvent, hashCode, howClosed, init, key, lastStateTime, name, priority, resume, setDescription, setName, setPriority, state, suspend, typedState, updateInterim, updateState, validStates, validTypedStates, whileOpen, whyNotRunning, workflowState
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.danet.an.workflow.api.ExecutionObject
typedState
 
Methods inherited from interface de.danet.an.workflow.omgcore.WfExecutionObject
changeState, description, howClosed, key, lastStateTime, name, priority, resume, setDescription, setName, setPriority, state, suspend, validStates, whileOpen, whyNotRunning, workflowState
 

Field Detail

paId

private java.lang.String paId
Persistent attribute id.


paKey

private java.lang.String paKey
Persistent attribute key.


paName

private java.lang.String paName
Persistent attribute name.


paCreateTime

private java.util.Date paCreateTime
Persistent attribute createTime.


paDescription

private java.lang.String paDescription
Persistent attribute description.


paPriority

private de.danet.an.workflow.apix.ExtExecutionObject.Priority paPriority
Persistent attribute priority.


paTypedState

private de.danet.an.workflow.omgcore.WfExecutionObject.State paTypedState
Persistent attribute typedState.


paLastStateTime

private java.util.Date paLastStateTime
Persistent attribute lastStateTime.


paProcessMgr

private java.lang.String paProcessMgr
Persistent attribute processMgr.


paRequester

private de.danet.an.workflow.omgcore.WfRequester paRequester
Persistent attribute requester.


paProcessDef

private de.danet.an.workflow.api.ProcessDefinition paProcessDef
Persistent attribute processDef.


paProcessData

private de.danet.an.workflow.omgcore.ProcessData paProcessData
Persistent attribute processData.


paProcessMgrName

private java.lang.String paProcessMgrName
Persistent attribute processMgrName.


paProcessMgrVersion

private java.lang.String paProcessMgrVersion
Persistent attribute processMgrVersion.


activities

private java.util.Collection activities

pmgr

private de.danet.an.workflow.omgcore.WfProcessMgr pmgr

procKeyGen

private static int procKeyGen

transitions

private java.util.List transitions
Constructor Detail

VolatileProcess

public VolatileProcess(java.lang.String key)
Creates an instance of TestProcess with all attributes initialized to default values.


VolatileProcess

public VolatileProcess()
Creates an instance of TestProcess with all attributes initialized to default values.

Method Detail

thisRemote

protected de.danet.an.workflow.api.Process thisRemote()
Describe thisRemote method here.


removeThis

protected void removeThis()
Remove this process.


manager

public de.danet.an.workflow.omgcore.WfProcessMgr manager()
                                                  throws java.rmi.RemoteException
Returns the process manager which created this process.


createTime

public java.util.Date createTime()
Describe createTime method here.


processCreator

public java.security.Principal processCreator()
Return the creator of the process.


setActivities

public void setActivities(java.util.Collection act)
Describe setActivities method here.


addActivity

public void addActivity(de.danet.an.workflow.api.Activity act)
Describe addActivity method here.


addTransition

public void addTransition(java.lang.String id,
                          java.lang.String group,
                          int order,
                          de.danet.an.workflow.api.Activity from,
                          de.danet.an.workflow.api.Activity to)
Describe addTransition method here.


addTransition

public void addTransition(java.lang.String id,
                          java.lang.String group,
                          int order,
                          de.danet.an.workflow.api.Activity from,
                          de.danet.an.workflow.api.Activity to,
                          java.lang.String cond)
Describe addTransition method here.


transitions

public java.util.List transitions()
                           throws java.rmi.RemoteException
Gets a list of transitions for this process. The method is public, because the transition manager needs access to the transitions of a process.


createActivityKey

protected java.lang.Long createActivityKey()
Provide a new unique activity key.


createActivity

protected de.danet.an.workflow.omgcore.WfActivity createActivity(org.jdom.Element actElement,
                                                                 java.lang.Long blockId,
                                                                 de.danet.an.workflow.api.Activity.JoinAndSplitMode jm,
                                                                 de.danet.an.workflow.api.Activity.JoinAndSplitMode sm)
Describe createActivity method here.


requester

public de.danet.an.workflow.omgcore.WfRequester requester()
                                                   throws java.rmi.RemoteException
Describe requester method here.


processDefinitionDirectory

public de.danet.an.workflow.api.ProcessDefinitionDirectory processDefinitionDirectory()
Return the process definition directory. While there is no immediate relation between a process instance and the known process definitions, the definitions nevertheless make up part of the environment of a process. Specifically, this method is needed to start a sub-process in an activity.


getXPDL

public java.lang.String getXPDL()
Describe getXPDL method here.


steps

public java.util.Collection steps()
Describe steps method here.


processDefinition

public de.danet.an.workflow.api.ProcessDefinition processDefinition()
                                                             throws java.rmi.RemoteException
Describe processDefinition method here.


removeOnClose

public boolean removeOnClose()
                      throws java.rmi.RemoteException
Returns true if the process will be removed automatically on completion.


history

public java.util.Collection history()
                             throws java.rmi.RemoteException
Describe history method here.


setRequester

public void setRequester(de.danet.an.workflow.omgcore.WfRequester requester)
                  throws java.rmi.RemoteException,
                         de.danet.an.workflow.omgcore.CannotChangeRequesterException
Describe setRequester method here.


activityByKey

public de.danet.an.workflow.api.Activity activityByKey(java.lang.String key)
                                                throws java.rmi.RemoteException,
                                                       de.danet.an.workflow.api.InvalidKeyException
Describe activityByKey method here.


lookupActivity

protected de.danet.an.workflow.apix.ExtActivity lookupActivity(java.lang.String key)
                                                        throws de.danet.an.workflow.api.InvalidKeyException
Return an arbitrary activity with the given key. The activity need not belong to this process.


processContext

public de.danet.an.workflow.omgcore.ProcessData processContext()
                                                        throws java.rmi.RemoteException
Describe processContext method here.


complete

public void complete(java.lang.Long activity,
                     de.danet.an.workflow.omgcore.WfExecutionObject.State s)
Describe complete method here.


createTransitionRef

protected void createTransitionRef(long serialNum,
                                   de.danet.an.workflow.api.Activity fromActivity,
                                   de.danet.an.workflow.api.Activity toActivity)
Describe createTransitionRef method here.


createTransition

protected de.danet.an.workflow.api.Transition createTransition(java.lang.String id,
                                                               java.lang.String group,
                                                               int order,
                                                               de.danet.an.workflow.api.Activity fromAct,
                                                               de.danet.an.workflow.api.Activity toAct)
Create a new transition with given id, From Activity, To Activity.


doCreateTransition

protected de.danet.an.workflow.api.Transition doCreateTransition(java.lang.String id,
                                                                 java.lang.String group,
                                                                 int order,
                                                                 de.danet.an.workflow.api.Activity fromAct,
                                                                 de.danet.an.workflow.api.Activity toAct,
                                                                 int condType,
                                                                 java.lang.String cond)
Create a new transition with given id, From Activity, To Activity.


activityRequesterInfo

protected de.danet.an.workflow.omgcore.WfAuditEvent activityRequesterInfo(de.danet.an.workflow.omgcore.WfRequester req)
Describe activityRequesterInfo method here.


auditEventBase

public de.danet.an.workflow.omgcore.WfAuditEvent auditEventBase()
Returns an audit event object with process relevant information initialized.


startTimer

public void startTimer(java.util.Date due,
                       java.io.Serializable info)
Start a timer that will call handleTimeout at the given date with the given info.


stopTimers

public void stopTimers()
Stop all timers that this object has created.


getPaKey

protected java.lang.String getPaKey()
The getter method implementation for the persistent attribute key.


getPaName

protected java.lang.String getPaName()
The getter method implementation for the persistent attribute name.


setPaName

protected void setPaName(java.lang.String newName)
The setter method implementation for the persistent attribute name.


getPaDescription

protected java.lang.String getPaDescription()
The getter method implementation for the persistent attribute description.


setPaDescription

protected void setPaDescription(java.lang.String newDescription)
The setter method implementation for the persistent attribute description.


getPaPriority

protected de.danet.an.workflow.apix.ExtExecutionObject.Priority getPaPriority()
The getter method implementation for the persistent attribute priority.


setPaPriority

protected void setPaPriority(de.danet.an.workflow.apix.ExtExecutionObject.Priority newPriority)
The setter method implementation for the persistent attribute priority.


getPaTypedState

protected de.danet.an.workflow.omgcore.WfExecutionObject.State getPaTypedState()
The getter method implementation for the persistent attribute typedState.


getPaLastStateTime

protected java.util.Date getPaLastStateTime()
The getter method implementation for the persistent attribute lastStateTime.


setPaLastStateTime

protected void setPaLastStateTime(java.util.Date newLastStateTime)
The setter method implementation for the persistent attribute lastStateTime.


setPaTypedState

protected void setPaTypedState(de.danet.an.workflow.omgcore.WfExecutionObject.State newTypedState)
The setter method implementation for the persistent attribute typedState.


getPaProcessMgr

protected java.lang.String getPaProcessMgr()
The getter method implementation for the persistent attribute processMgr.


setPaProcessMgr

protected void setPaProcessMgr(java.lang.String newProcessMgr)
The setter method implementation for the persistent attribute processMgr.


getPaRequester

protected de.danet.an.workflow.omgcore.WfRequester getPaRequester()
The getter method implementation for the persistent attribute requester.


setPaRequester

protected void setPaRequester(de.danet.an.workflow.omgcore.WfRequester newRequester)
The setter method implementation for the persistent attribute requester.


getPaProcessDef

protected de.danet.an.workflow.api.ProcessDefinition getPaProcessDef()
The getter method implementation for the persistent attribute processDef.


setPaProcessDef

protected void setPaProcessDef(de.danet.an.workflow.api.ProcessDefinition newProcessDef)
The setter method implementation for the persistent attribute processDef.


getPaProcessData

protected de.danet.an.workflow.omgcore.ProcessData getPaProcessData()
The getter method implementation for the persistent attribute processData.


setPaProcessData

protected void setPaProcessData(de.danet.an.workflow.omgcore.ProcessData newProcessData)
The setter method implementation for the persistent attribute processData.


getPaProcessMgrName

protected java.lang.String getPaProcessMgrName()
The getter method implementation for the persistent attribute processMgrName.


setPaProcessMgrName

protected void setPaProcessMgrName(java.lang.String newProcessMgrName)
The setter method implementation for the persistent attribute processMgrName.


getPaProcessMgrVersion

protected java.lang.String getPaProcessMgrVersion()
The getter method implementation for the persistent attribute processMgrVersion.


setPaProcessMgrVersion

protected void setPaProcessMgrVersion(java.lang.String newProcessMgrVersion)
The setter method implementation for the persistent attribute processMgrVersion.


getPaId

protected java.lang.String getPaId()
The getter method for the persistent attribute id.


setPaId

protected void setPaId(java.lang.String newId)
The setter method for the persistent attribute Id.


getPaCreateTime

protected java.util.Date getPaCreateTime()
The getter method implementation for the persistent attribute createTime.


getPaBlockDeadlines

protected java.util.Map getPaBlockDeadlines()
The getter method implementation for the persistent attribute blockDeadlines.