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

Quick Search    Search Deep

domain
Class VolatileActivity  view VolatileActivity download VolatileActivity.java

java.lang.Object
  extended byde.danet.an.workflow.domain.AbstractExecutionObject
      extended byde.danet.an.workflow.domain.AbstractActivity
          extended bydomain.VolatileActivity
All Implemented Interfaces:
de.danet.an.workflow.api.Activity, java.util.EventListener, de.danet.an.workflow.api.ExecutionObject, de.danet.an.workflow.apix.ExtActivity, de.danet.an.workflow.apix.ExtExecutionObject, de.danet.an.workflow.domain.TimedObject, de.danet.an.workflow.omgcore.WfActivity, de.danet.an.workflow.omgcore.WfAuditHandler, de.danet.an.workflow.omgcore.WfExecutionObject, de.danet.an.workflow.omgcore.WfObject, de.danet.an.workflow.omgcore.WfRequester
Direct Known Subclasses:
Proc.TestActivity, TransMgr.TestActivity

public class VolatileActivity
extends de.danet.an.workflow.domain.AbstractActivity

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

Version:
$Revision: 1.31 $

Nested Class Summary
 
Nested classes inherited from class de.danet.an.workflow.apix.ExtActivity
de.danet.an.workflow.apix.ExtActivity.NotStartedState
 
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
 
Nested classes inherited from class de.danet.an.workflow.api.Activity
de.danet.an.workflow.api.Activity.ClosedCompletedState, de.danet.an.workflow.api.Activity.Implementation, de.danet.an.workflow.api.Activity.Info, de.danet.an.workflow.api.Activity.JoinAndSplitMode, de.danet.an.workflow.api.Activity.StartFinishMode, de.danet.an.workflow.api.Activity.SubFlowImplementation, de.danet.an.workflow.api.Activity.ToolImplementation
 
Field Summary
private static int actKeyGen
           
private  de.danet.an.workflow.api.Process container
           
private  de.danet.an.workflow.api.Activity.Implementation[] paActImpl
          Persistent attribute tools.
private  java.lang.Long paBlockActivity
          Persistent attribute blockActivity.
private  java.util.List paDeadlines
          Persistent attribute deadlines.
private  java.lang.String paDescription
          Persistent attribute description.
private  java.lang.Integer paExecutor
          Persistent attribute executor.
private  de.danet.an.workflow.api.Activity.StartFinishMode paFinishMode
          Persistent attribute finishMode.
private  de.danet.an.workflow.api.Activity.JoinAndSplitMode paJoinMode
          Persistent attribute joinMode.
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  java.lang.String paPerformer
          Persistent attribute performer.
private  de.danet.an.workflow.apix.ExtExecutionObject.Priority paPriority
          Persistent attribute priority.
private  de.danet.an.workflow.api.Activity.JoinAndSplitMode paSplitMode
          Persistent attribute splitMode.
private  de.danet.an.workflow.api.Activity.StartFinishMode paStartMode
          Persistent attribute startMode.
private  java.util.Date paStartTime
          Persistent attribute startTime.
private  java.lang.String paSubflow
          Persistent attribute Subflow.
private  long paSuspendAccum
          Persistent attribute suspendAccum.
private  java.util.Date paSuspendStart
          Persistent attribute suspendStart.
private  de.danet.an.workflow.apix.ThreadInfo paThreadInfo
          Persistent attribute threadInfo.
private  de.danet.an.workflow.omgcore.WfExecutionObject.State paTypedState
          Persistent attribute typedState.
 
Fields inherited from class de.danet.an.workflow.domain.AbstractActivity
 
Fields inherited from class de.danet.an.workflow.domain.AbstractExecutionObject
 
Constructor Summary
VolatileActivity(de.danet.an.workflow.api.Process proc)
          Creates an instance of VolatileActivity with all attributes initialized to default values.
VolatileActivity(de.danet.an.workflow.api.Process proc, java.lang.String key)
          Creates an instance of VolatileActivity with all attributes initialized to default values.
 
Method Summary
 de.danet.an.workflow.spis.ras.ActivityFinder activityFinder()
          Returns an ActivityFinder that identifies this activity against a resource assignment service as defined by the ras package.
 de.danet.an.workflow.omgcore.WfAuditEvent auditEventBase()
          Returns a WfAuditEvent containing information about the activity and its container, only.
 de.danet.an.workflow.omgcore.WfProcess container()
          Describe container method here.
protected  de.danet.an.workflow.omgcore.WfAuditEvent containerAuditEventBase()
          Returns an WfAuditEvent containing container-related information.
protected  de.danet.an.workflow.api.Activity.Implementation[] getPaActImpl()
          The getter method implementation for the persistent attribute tools.
protected  org.jdom.Element getPaActivityElement()
          Describe getPaActivityElement method here.
protected  java.lang.Long getPaBlockActivity()
          The getter method implementation for the persistent attribute blockActivity.
protected  java.util.List getPaDeadlines()
          The getter method implementation for the persistent attribute deadlines.
protected  java.lang.String getPaDescription()
          The getter method implementation for the persistent attribute description.
protected  java.lang.Integer getPaExecStat()
          The getter method implementation for the persistent attribute executor.
protected  de.danet.an.workflow.api.Activity.StartFinishMode getPaFinishMode()
          The getter method implementation for the persistent attribute finishMode.
protected  de.danet.an.workflow.api.Activity.JoinAndSplitMode getPaJoinMode()
          The getter method implementation for the persistent attribute joinMode.
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  java.lang.String getPaPerformer()
          The getter method implementation for the persistent attribute performer.
protected  de.danet.an.workflow.apix.ExtExecutionObject.Priority getPaPriority()
          The getter method implementation for the persistent attribute priority.
protected  de.danet.an.workflow.api.Activity.JoinAndSplitMode getPaSplitMode()
          The getter method implementation for the persistent attribute splitMode.
protected  de.danet.an.workflow.api.Activity.StartFinishMode getPaStartMode()
          The getter method implementation for the persistent attribute startMode.
protected  java.util.Date getPaStartTime()
          The getter method implementation for the persistent attribute startTime.
protected  java.lang.String getPaSubflow()
          The getter method implementation for the persistent attribute Subflow.
protected  long getPaSuspendAccum()
          The getter method implementation for the persistent attribute suspendAccum.
protected  java.util.Date getPaSuspendStart()
          The getter method implementation for the persistent attribute suspendStart.
protected  de.danet.an.workflow.apix.ThreadInfo getPaThreadInfo()
          The getter method implementation for the persistent attribute threadInfo.
protected  de.danet.an.workflow.omgcore.WfExecutionObject.State getPaTypedState()
          The getter method implementation for the persistent attribute typedState.
 java.util.Collection history()
          Describe history method here.
protected  de.danet.an.workflow.apix.ExtProcess lookupProcess(java.lang.String key)
          Lookup a process by its key.
 java.util.List nextActivities()
          Describe nextActivities method here.
protected  de.danet.an.workflow.spis.ras.ResourceAssignmentService resourceAssignmentService()
          Get the resource assignment service.
protected  void setPaActImpl(de.danet.an.workflow.api.Activity.Implementation[] newTools)
          The setter method implementation for the persistent attribute tools.
protected  void setPaBlockActivity(java.lang.Long newBlockActivity)
          The setter method implementation for the persistent attribute blockActivity.
protected  void setPaDeadlines(java.util.List newDeadlines)
          The setter method implementation for the persistent attribute deadlines.
protected  void setPaDescription(java.lang.String newDescription)
          The setter method implementation for the persistent attribute description.
protected  void setPaExecStat(java.lang.Integer newExecutor)
          The setter method implementation for the persistent attribute executor.
protected  void setPaFinishMode(de.danet.an.workflow.api.Activity.StartFinishMode newFinishMode)
          The setter method implementation for the persistent attribute finishMode.
protected  void setPaJoinMode(de.danet.an.workflow.api.Activity.JoinAndSplitMode newJoinMode)
          The setter method implementation for the persistent attribute joinMode.
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 setPaPerformer(java.lang.String newPerformer)
          The setter method implementation for the persistent attribute performer.
protected  void setPaPriority(de.danet.an.workflow.apix.ExtExecutionObject.Priority newPriority)
          The setter method implementation for the persistent attribute priority.
protected  void setPaSplitMode(de.danet.an.workflow.api.Activity.JoinAndSplitMode newSplitMode)
          The setter method implementation for the persistent attribute splitMode.
protected  void setPaStartMode(de.danet.an.workflow.api.Activity.StartFinishMode newStartMode)
          The setter method implementation for the persistent attribute startMode.
protected  void setPaStartTime(java.util.Date newStartTime)
          The setter method implementation for the persistent attribute startTime.
protected  void setPaSubflow(java.lang.String newSubflow)
          The setter method implementation for the persistent attribute Subflow.
protected  void setPaSuspendAccum(long newSuspendAccum)
          The setter method implementation for the persistent attribute suspendAccum.
protected  void setPaSuspendStart(java.util.Date newSuspendStart)
          The setter method implementation for the persistent attribute suspendStart.
protected  void setPaThreadInfo(de.danet.an.workflow.apix.ThreadInfo newThreadInfo)
          The setter method implementation for the persistent attribute threadInfo.
protected  void setPaTypedState(de.danet.an.workflow.omgcore.WfExecutionObject.State newTypedState)
          The setter method implementation for the persistent attribute typedState.
 void setStartMode(de.danet.an.workflow.api.Activity.StartFinishMode mode)
          Describe setStartMode 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.
 void stopTimers()
          Stop all timers that this object has created.
protected  de.danet.an.workflow.api.Activity thisRemote()
          Describe thisRemote method here.
 void updateProcessName(java.lang.String newName)
          Updates the process name (which is cached by the activity EJB) if the process name changes.
 
Methods inherited from class de.danet.an.workflow.domain.AbstractActivity
abandon, abort, activityInfo, assignments, auditEventBase, autoAssignResources, blockActivity, changeState, complete, definedExceptions, dispose, executor, finishMode, getInternalJoinMode, getInternalSplitMode, getPaProcessKey, getPaProcessMgrName, getPaProcessMgrVersion, getPaProcessName, getStateTransitionMap, handleAbortedEvent, handleCompletedEvent, handleImplCompletedEvent, handleResumedEvent, handleStartedEvent, handleSuspendedEvent, handleTerminatedEvent, handleTimeout, handleToolInvocationFailedAuditEvent, implementation, init, invokeTool, isMemberOfAssignments, isMemberOfPerformers, joinMode, performer, performers, processContext, receiveEvent, refresh, releaseResources, reset, result, resume, setInternalJoinMode, setInternalSplitMode, setProcessContext, setResult, setStartable, splitMode, start, startMode, suspend, terminate, terminateImpl, terminateTool, threadInfo, toolInvocationHandler, toString, uniqueKey
 
Methods inherited from class de.danet.an.workflow.domain.AbstractExecutionObject
changeState, description, equals, extractDeadlines, fireAuditEvent, handleAuditEvent, handleStateAuditEvent, hashCode, howClosed, init, key, lastStateTime, name, priority, setDescription, setName, setPriority, state, 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.apix.ExtActivity
handleAuditEvent
 
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, setDescription, setName, setPriority, state, validStates, whileOpen, whyNotRunning, workflowState
 

Field Detail

container

private de.danet.an.workflow.api.Process container

paKey

private java.lang.String paKey
Persistent attribute key.


paName

private java.lang.String paName
Persistent attribute name.


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.


paStartMode

private de.danet.an.workflow.api.Activity.StartFinishMode paStartMode
Persistent attribute startMode.


paFinishMode

private de.danet.an.workflow.api.Activity.StartFinishMode paFinishMode
Persistent attribute finishMode.


paJoinMode

private de.danet.an.workflow.api.Activity.JoinAndSplitMode paJoinMode
Persistent attribute joinMode.


paSplitMode

private de.danet.an.workflow.api.Activity.JoinAndSplitMode paSplitMode
Persistent attribute splitMode.


paPerformer

private java.lang.String paPerformer
Persistent attribute performer.


paExecutor

private java.lang.Integer paExecutor
Persistent attribute executor.


paActImpl

private de.danet.an.workflow.api.Activity.Implementation[] paActImpl
Persistent attribute tools.


paThreadInfo

private de.danet.an.workflow.apix.ThreadInfo paThreadInfo
Persistent attribute threadInfo.


paSubflow

private java.lang.String paSubflow
Persistent attribute Subflow.


paDeadlines

private java.util.List paDeadlines
Persistent attribute deadlines.


paStartTime

private java.util.Date paStartTime
Persistent attribute startTime.


paSuspendStart

private java.util.Date paSuspendStart
Persistent attribute suspendStart.


paSuspendAccum

private long paSuspendAccum
Persistent attribute suspendAccum.


paBlockActivity

private java.lang.Long paBlockActivity
Persistent attribute blockActivity.


actKeyGen

private static int actKeyGen
Constructor Detail

VolatileActivity

public VolatileActivity(de.danet.an.workflow.api.Process proc,
                        java.lang.String key)
Creates an instance of VolatileActivity with all attributes initialized to default values.


VolatileActivity

public VolatileActivity(de.danet.an.workflow.api.Process proc)
Creates an instance of VolatileActivity with all attributes initialized to default values.

Method Detail

setStartMode

public void setStartMode(de.danet.an.workflow.api.Activity.StartFinishMode mode)
Describe setStartMode method here.


thisRemote

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


auditEventBase

public de.danet.an.workflow.omgcore.WfAuditEvent auditEventBase()
                                                         throws java.rmi.RemoteException
Returns a WfAuditEvent containing information about the activity and its container, only.


container

public de.danet.an.workflow.omgcore.WfProcess container()
Describe container method here.


lookupProcess

protected de.danet.an.workflow.apix.ExtProcess lookupProcess(java.lang.String key)
                                                      throws java.rmi.RemoteException,
                                                             de.danet.an.workflow.api.InvalidKeyException
Lookup a process by its key. Can only be implemented by the persistence layer.


updateProcessName

public void updateProcessName(java.lang.String newName)
                       throws java.rmi.RemoteException
Updates the process name (which is cached by the activity EJB) if the process name changes.


resourceAssignmentService

protected de.danet.an.workflow.spis.ras.ResourceAssignmentService resourceAssignmentService()
Get the resource assignment service.


activityFinder

public de.danet.an.workflow.spis.ras.ActivityFinder activityFinder()
Returns an ActivityFinder that identifies this activity against a resource assignment service as defined by the ras package.


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.


nextActivities

public java.util.List nextActivities()
Describe nextActivities method here.


containerAuditEventBase

protected de.danet.an.workflow.omgcore.WfAuditEvent containerAuditEventBase()
Returns an WfAuditEvent containing container-related information.


history

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


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.


getPaStartMode

protected de.danet.an.workflow.api.Activity.StartFinishMode getPaStartMode()
The getter method implementation for the persistent attribute startMode.


setPaStartMode

protected void setPaStartMode(de.danet.an.workflow.api.Activity.StartFinishMode newStartMode)
The setter method implementation for the persistent attribute startMode.


getPaFinishMode

protected de.danet.an.workflow.api.Activity.StartFinishMode getPaFinishMode()
The getter method implementation for the persistent attribute finishMode.


setPaFinishMode

protected void setPaFinishMode(de.danet.an.workflow.api.Activity.StartFinishMode newFinishMode)
The setter method implementation for the persistent attribute finishMode.


getPaJoinMode

protected de.danet.an.workflow.api.Activity.JoinAndSplitMode getPaJoinMode()
The getter method implementation for the persistent attribute joinMode.


setPaJoinMode

protected void setPaJoinMode(de.danet.an.workflow.api.Activity.JoinAndSplitMode newJoinMode)
The setter method implementation for the persistent attribute joinMode.


getPaSplitMode

protected de.danet.an.workflow.api.Activity.JoinAndSplitMode getPaSplitMode()
The getter method implementation for the persistent attribute splitMode.


setPaSplitMode

protected void setPaSplitMode(de.danet.an.workflow.api.Activity.JoinAndSplitMode newSplitMode)
The setter method implementation for the persistent attribute splitMode.


getPaExecStat

protected java.lang.Integer getPaExecStat()
The getter method implementation for the persistent attribute executor.


getPaPerformer

protected java.lang.String getPaPerformer()
The getter method implementation for the persistent attribute performer.


setPaPerformer

protected void setPaPerformer(java.lang.String newPerformer)
The setter method implementation for the persistent attribute performer.


setPaExecStat

protected void setPaExecStat(java.lang.Integer newExecutor)
The setter method implementation for the persistent attribute executor.


getPaActImpl

protected de.danet.an.workflow.api.Activity.Implementation[] getPaActImpl()
The getter method implementation for the persistent attribute tools.


setPaActImpl

protected void setPaActImpl(de.danet.an.workflow.api.Activity.Implementation[] newTools)
The setter method implementation for the persistent attribute tools.


getPaThreadInfo

protected de.danet.an.workflow.apix.ThreadInfo getPaThreadInfo()
The getter method implementation for the persistent attribute threadInfo.


setPaThreadInfo

protected void setPaThreadInfo(de.danet.an.workflow.apix.ThreadInfo newThreadInfo)
The setter method implementation for the persistent attribute threadInfo.


getPaActivityElement

protected org.jdom.Element getPaActivityElement()
Describe getPaActivityElement method here.


getPaSubflow

protected java.lang.String getPaSubflow()
The getter method implementation for the persistent attribute Subflow.


setPaSubflow

protected void setPaSubflow(java.lang.String newSubflow)
The setter method implementation for the persistent attribute Subflow.


getPaDeadlines

protected java.util.List getPaDeadlines()
The getter method implementation for the persistent attribute deadlines.


setPaDeadlines

protected void setPaDeadlines(java.util.List newDeadlines)
The setter method implementation for the persistent attribute deadlines.


getPaStartTime

protected java.util.Date getPaStartTime()
The getter method implementation for the persistent attribute startTime.


setPaStartTime

protected void setPaStartTime(java.util.Date newStartTime)
The setter method implementation for the persistent attribute startTime.


getPaSuspendStart

protected java.util.Date getPaSuspendStart()
The getter method implementation for the persistent attribute suspendStart.


setPaSuspendStart

protected void setPaSuspendStart(java.util.Date newSuspendStart)
The setter method implementation for the persistent attribute suspendStart.


getPaSuspendAccum

protected long getPaSuspendAccum()
The getter method implementation for the persistent attribute suspendAccum.


setPaSuspendAccum

protected void setPaSuspendAccum(long newSuspendAccum)
The setter method implementation for the persistent attribute suspendAccum.


getPaBlockActivity

protected java.lang.Long getPaBlockActivity()
The getter method implementation for the persistent attribute blockActivity.


setPaBlockActivity

protected void setPaBlockActivity(java.lang.Long newBlockActivity)
The setter method implementation for the persistent attribute blockActivity. May only be used in base class' init.