Java Doc for AbstractActivity.java in  » Workflow-Engines » wfmopen-2.1.1 » de » danet » an » workflow » domain » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Workflow Engines » wfmopen 2.1.1 » de.danet.an.workflow.domain 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   de.danet.an.workflow.domain.AbstractExecutionObject
      de.danet.an.workflow.domain.AbstractActivity

All known Subclasses:   de.danet.an.workflow.ejbs.core.WfActivityEJB,  domain.VolatileActivity,
AbstractActivity
abstract public class AbstractActivity extends AbstractExecutionObject implements TimedObject,Serializable(Code)
AbstractActivity represents a simple implementation of the interface ActivityLocal ActivityLocal . It has the following features:
  • It has no transition restrictions (INLINE, SPLIT, JOIN)
  • The activity is an implementation activity of the type NO. No SubFlows (SubProcess) or Loops can be expressed with this activity.
  • The activity supports the StartMode and the FinishMode properties.
  • The activity cannot act as a requester, i.e. can not start a sub process.



Constructor Summary
public  AbstractActivity()
     Creates a new AbstractActivity.

Method Summary
public  voidabandon(String exception)
    
public  voidabandon(ExceptionResult result)
    
public  voidabort()
    
public  voidabortRequester()
    
abstract public  ActivityFinderactivityFinder()
     Returns an de.danet.an.workflow.spis.ras.ActivityFinderActivityFinder that identifies this activity against a resource assignment service as defined by de.danet.an.workflow.spis.ras the ras package .
public  InfoactivityInfo()
     This method returns all available information about the activity in a single operation.
public  Collectionassignments()
     Return the list of assignments.
protected  WfAuditEventauditEventBase(String eventType)
     Returns a WfAuditEvent containing information about the activity and its container, only.
protected  voidautoAssignResources()
     Called when the activity enters the running state.
public  StringblockActivity()
     Returns the key of the "parent" block activity.
public  voidchangeAssignment(WfResource oldResource, WfResource newResource)
     Change an assignment for enacting the activity.
public  voidchangeState(State newState)
     Adds the possibility to change the state to ClosedState.COMPLETED (i.e.
public  booleanchoose()
     Makes this activity the chosen one in a set of activities started by an AND split with the "deferred choice" option set.
public  voidcomplete()
     Close this activity regularly.
abstract protected  WfAuditEventcontainerAuditEventBase()
     Returns an WfAuditEvent containing container-related information.
abstract public  WfProcessLocalcontainerLocal()
     Returns the WfProcessLocal that this activity is a part of.
public  DeadlineInfo[]deadlines()
     Returns the deadlines defined for this activity.
public  booleandeferChoiceOnSplit()
     Returns if the activity's split is to be executed as deferred choice.
protected  voiddispose()
     Releases all allocated resources.
public  voiddoCloseActivity(State closedState)
    
public  booleanequals(Object obj)
     Indicates if some other object is equal to this one.
public  Implementationexecutor()
     Returns the current executor.
protected  StartFinishModefinishMode()
     Returns the finish mode.
abstract protected  Implementation[]getPaActImpl()
     The getter method for the persistent attribute actImpl.
abstract protected  LonggetPaBlockActivity()
     The getter method for the persistent attribute blockActivity.
abstract protected  ListgetPaDeadlines()
     The getter method for the persistent attribute deadlines.
abstract protected  booleangetPaDeferChoiceOnSplit()
     The getter method for the persistent attribute deferChoiceOnSplit.
abstract protected  IntegergetPaExecStat()
     The getter method for the persistent attribute executor.
abstract protected  StartFinishModegetPaFinishMode()
     The getter method for the persistent attribute finishMode.
abstract protected  JoinAndSplitModegetPaJoinMode()
     The getter method for the persistent attribute joinMode.
abstract protected  booleangetPaNoAssignments()
     The getter method for the persistent attribute noAssignments.
abstract protected  StringgetPaPendingException()
     The getter method for the persistent attribute pendingException.
abstract protected  booleangetPaPendingExceptionIsFromBlock()
     The getter method for the persistent flag pendingExceptionIsFromBlock.
abstract protected  StringgetPaPerformer()
     The getter method for the persistent attribute performer.
abstract protected  booleangetPaPreliminarilyChosen()
     The getter method for the persistent attribute electedInChoice.
protected  StringgetPaProcessKey()
     The getter method implementation for the persistent read-only attribute processKey.
protected  StringgetPaProcessMgrName()
     The getter method implementation for the persistent read-only attribute processMgrName.
protected  StringgetPaProcessMgrVersion()
     The getter method implementation for the persistent read-only attribute processMgrVersion.
protected  StringgetPaProcessName()
     The getter method implementation for the persistent read-only attribute processName.
abstract protected  JoinAndSplitModegetPaSplitMode()
     The getter method for the persistent attribute splitMode.
abstract protected  StartFinishModegetPaStartMode()
     The getter method for the persistent attribute startMode.
abstract protected  DategetPaStartTime()
     The getter method for the persistent attribute startTime.
abstract protected  intgetPaSubStateBackup()
     The getter method for the persistent attribute subStateBackup.
abstract protected  StringgetPaSubflow()
     The getter method for the persistent attribute Subflow.
abstract protected  longgetPaSuspendAccum()
     The getter method for the persistent attribute suspendAccum.
abstract protected  DategetPaSuspendStart()
     The getter method for the persistent attribute suspendStart.
abstract protected  ThreadInfogetPaThreadInfo()
     The getter method for the persistent attribute threadInfo.
abstract protected  StringgetPaWaitOnChan()
     The getter method for the persistent attribute waitOnChan.
abstract protected  LonggetPaWaitOnProc()
     The getter method for the persistent attribute waitOnProc.
public  WfResourcegetResource(WfAssignment asnmnt)
     Get the resource associated with an Assignment.
protected  MapgetStateTransitionMap()
     Returns the java.util.Map Map that maps the activity states to a java.util.MapList of reachable process states.
protected  voidhandleAbortedEvent(WfStateAuditEvent event)
     Handles a aborting audit event.
protected  voidhandleCompletedEvent(WfStateAuditEvent event)
     Handles a completed audit event.
protected  voidhandleImplCompletedEvent(ImplCompleteAuditEvent event)
     Handles a tool completed audit event.
protected  voidhandleResumedEvent(WfStateAuditEvent event)
     Handles a resumed audit event.
protected  voidhandleSuspendedEvent(WfStateAuditEvent event)
     Handles a suspended audit event.
protected  voidhandleTerminatedEvent(WfStateAuditEvent event)
     Handles a terminated audit event.
public  voidhandleTimeout(Serializable info)
     Handle the timeout of a timer.
protected  voidhandleToolInvocationFailedAuditEvent(ToolInvocationFailedAuditEvent event)
     Handles a tool invocation audit event.
public  String[]handledExceptions()
    
public  Implementation[]implementation()
     Returns the implementation of the activity as de.danet.an.workflow.localapi.ActivityLocal.ImplementationImplementation s.
protected  voidinit(Long blockActId, Priority priority, String name, String description, StartFinishMode startMode, StartFinishMode finishMode, JoinAndSplitMode joinMode, JoinAndSplitMode splitMode, Implementation[] implementation, String performer, List deadlines, boolean deferChoiceOnSplit, int auditEventSelection, boolean storeAuditEvents)
     Initializes the class, i.e.
public  booleaninitiateAbandoning(boolean blockException, String exceptionName)
    
public  voidinvokeTool(ExtApplication appl, Map params)
     Invoke a tool for this activity.
public static  booleanisHandled(WfAuditEvent event)
     Check if this class handles a specific event.
public  booleanisMemberOfAssignments(WfAssignment member)
     Check if the given assignment is among the assignments of this activity.
Parameters:
  member - the assignment in question.
public  JoinAndSplitModejoinMode()
     Returns the join mode.
abstract protected  ExtProcessLocallookupProcessLocal(String key)
     Lookup a process by its key.
public  Stringperformer()
     Returns the performer as string.
public  Collectionperformers()
     Return all performers associated with this requester.
public  CollectionperformersLocal()
     Return all performers associated with this requester.
public  booleanpreliminarilyChosen()
     Returns if the activity has been preliminarily chosen in a deferred choice.
public  ProcessDataprocessContext()
     Return the context of this WfExecutionObject.
protected  RASInvocationHandlerrasInvocationHandler()
     Return a RASInvocationHandler.
public  voidreceiveEvent(WfAuditEvent e)
     Called by the workflow engine if the activity is a requester.
protected  voidrefresh()
     Called after change of persistent attributes.
protected  voidreleaseResources()
     Called when the activity is closed.
public  voidremoveAssignment(WfResource resource)
     Removes an assignment for enacting the activity.
public  voidreset(boolean preserveThreadInfo, boolean publishChange)
     Reset an activity to NotStartedState.UNKNOWN, i.e.
public  ProcessDataresult()
     The default implementation of result throws a ResultNotAvailableException as this implementation does not provide access to the results of an activity.
public  voidresume()
    
public  voidsetJoinMode(JoinAndSplitMode joinMode)
     Set the join mode of the activity.
abstract protected  voidsetPaActImpl(Implementation[] newActImpl)
     The setter method for the persistent attribute actImpl.
abstract protected  voidsetPaBlockActivity(Long newBlockActivity)
     The setter method for the persistent attribute blockActivity.
abstract protected  voidsetPaDeadlines(List newDeadlines)
     The setter method for the persistent attribute deadlines.
abstract protected  voidsetPaDeferChoiceOnSplit(boolean newDeferChoiceOnSplit)
     The setter method for the persistent attribute deferChoiceOnSplit.
abstract protected  voidsetPaExecStat(Integer newExecutor)
     The setter method for the persistent attribute executor.
abstract protected  voidsetPaFinishMode(StartFinishMode newFinishMode)
     The setter method for the persistent attribute finishMode.
abstract protected  voidsetPaJoinMode(JoinAndSplitMode newJoinMode)
     The setter method for the persistent attribute joinMode.
abstract protected  voidsetPaNoAssignments(boolean newNoAssignments)
     The setter method for the persistent attribute noAssignments.
abstract protected  voidsetPaPendingException(String newPendingException)
     The setter method for the persistent attribute pendingException.
abstract protected  voidsetPaPendingExceptionIsFromBlock(boolean newValue)
     The setter method for the persistent flags pendingExceptionIsFromBlock.
abstract protected  voidsetPaPerformer(String newPerformer)
     The setter method for the persistent attribute performer.
abstract protected  voidsetPaPreliminarilyChosen(boolean newElectedInChoice)
     The setter method for the persistent attribute electedInChoice.
abstract protected  voidsetPaSplitMode(JoinAndSplitMode newSplitMode)
     The setter method for the persistent attribute splitMode.
abstract protected  voidsetPaStartMode(StartFinishMode newStartMode)
     The setter method for the persistent attribute startMode.
abstract protected  voidsetPaStartTime(Date newStartTime)
     The setter method for the persistent attribute startTime.
abstract protected  voidsetPaSubStateBackup(int newSubStateBackup)
     The setter method for the persistent attribute subStateBackup.
abstract protected  voidsetPaSubflow(String newSubflow)
     The setter method for the persistent attribute Subflow.
abstract protected  voidsetPaSuspendAccum(long newSuspendAccum)
     The setter method for the persistent attribute suspendAccum.
abstract protected  voidsetPaSuspendStart(Date newSuspendStart)
     The setter method for the persistent attribute suspendStart.
abstract protected  voidsetPaThreadInfo(ThreadInfo newThreadInfo)
     The setter method for the persistent attribute threadInfo.
abstract protected  voidsetPaWaitOnChan(String newWaitOnChan)
     The setter method for the persistent attribute waitOnChan.
abstract protected  voidsetPaWaitOnProc(Long newWaitOnProc)
     The setter method for the persistent attribute waitOnProc.
public  voidsetProcessContext(ProcessData newValue)
     Set new process context.
public  voidsetResult(ProcessData result)
     The default implementation of setResult maps the formal parameter names to actual process data item names and merges the result data in the process context.
public  voidsetSplitMode(JoinAndSplitMode splitMode)
     Set the join mode of the activity.
public  voidsetStartable(Collection triggers, boolean preliminarilyChosen)
     Update the sub-state of an activity in state NotRunningState.NOT_STARTED to NotStartedState.STARTABLE.
public  JoinAndSplitModesplitMode()
     Returns the split mode.
public  voidstart()
     Starts an activity.
protected  StartFinishModestartMode()
     Returns the start mode.
public  DatestartTime()
     Return the start time of the activity.
public  voidsuspend()
    
public  voidterminate()
    
protected  voidterminateImpl()
     Terminate any implementation currently running for this activity.
protected  voidterminateTool()
     Terminate a tool currently running for this activity.
public  ThreadInfothreadInfo()
     Return the activity's thread info.
abstract public  ActivitytoActivity()
     Return the remote version of this object.
abstract protected  ExtActivityLocaltoActivityLocal()
     Return the version of this object to be passed to as local reference.
public  StringtoString()
     Return string representation for debugging purposes.
protected  ToolInvocationHandlertoolInvocationHandler()
     Return a ToolInvocationHandler.
public  ActivityUniqueKeyuniqueKey()
     Return a unique key for the activity.
public  voidwaitOnChannel(String procKey, String channel)
    
public  voidwithdrawPreliminaryChoice(boolean reset)
     Terminates and resets an activity that was started preliminarily as part of a deferred choice.


Constructor Detail
AbstractActivity
public AbstractActivity()(Code)
Creates a new AbstractActivity.




Method Detail
abandon
public void abandon(String exception) throws TransitionNotAllowedException(Code)



abandon
public void abandon(ExceptionResult result) throws TransitionNotAllowedException(Code)



abort
public void abort() throws CannotStopException, NotRunningException(Code)



abortRequester
public void abortRequester()(Code)



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



activityInfo
public Info activityInfo()(Code)
This method returns all available information about the activity in a single operation. the resulting Activity.Info value



assignments
public Collection assignments()(Code)
Return the list of assignments. list of assignments



auditEventBase
protected WfAuditEvent auditEventBase(String eventType)(Code)
Returns a WfAuditEvent containing information about the activity and its container, only.
Parameters:
  eventType - event type the event containing the required information.



autoAssignResources
protected void autoAssignResources()(Code)
Called when the activity enters the running state. Calls the resource assignment service to trigger the assignment.



blockActivity
public String blockActivity()(Code)
Returns the key of the "parent" block activity. All activities implicitly created by a block activity share the same block activity key.

Note that there need not be an activity with the returned key, as an activity set is actually a template describing how to implement block activities. The information obtained can mainly be used to group all activities that have been instantiated as part of an activity set.

an identification of the block activity that causedthis activity to be instantiated or null if thisactivity was not instantiated as part of an activity set




changeAssignment
public void changeAssignment(WfResource oldResource, WfResource newResource) throws InvalidResourceException, AlreadyAssignedException, NotAssignedException(Code)
Change an assignment for enacting the activity. This method calls the corresponding method of the resource assignment service and creates the appropriate audit event.

This method is intended to be used by resource assignment systems for implementing de.danet.an.workflow.localcoreapi.WfAssignment.setAssigneeWfAssignment.setAssignee . Resource assignment systems are responsible for implementing WfAssignment and could therefore perform the reassignment directly; this would, however, leave the generation of notifications unexecuted.

Clients should not use this method but rather call de.danet.an.workflow.localcoreapi.WfAssignment.setAssigneeWfAssignment.setAssignee .
Parameters:
  oldResource - the resource that has its assignment removed
Parameters:
  newResource - the resource to be assigned
throws:
  InvalidResourceException - if the resource is invalid.As the environment is a concurrent multi user environment, WfResource objects may become invalid.
throws:
  AlreadyAssignedException - if the assignment alreadyexists
throws:
  NotAssignedException - if there is no assignment to theold resource




changeState
public void changeState(State newState) throws InvalidStateException, TransitionNotAllowedException(Code)
Adds the possibility to change the state to ClosedState.COMPLETED (i.e. "complete()") to the changeState method of the superclass.

Adds handling of change from open.not_running.suspended.abandoning to open.not_running.suspended.clearing_exception.
Parameters:
  newState - the new state.
throws:
  InvalidStateException - If newState is an invalidstate for the execution object.
throws:
  TransitionNotAllowedException - If the transition from the currentstate to newState is not allowed.




choose
public boolean choose() throws TransitionNotAllowedException(Code)
Makes this activity the chosen one in a set of activities started by an AND split with the "deferred choice" option set. All other activities in the set are reset to their initial state.

If the activity does not participate in a deferred choice, this method does nothing and returns true. true if the activity could be made theeffectively chosen one
throws:
  TransitionNotAllowedException - if the activity isneither running nor suspended




complete
public void complete() throws CannotCompleteException(Code)
Close this activity regularly.
throws:
  CannotCompleteException - if the state can not be changed.



containerAuditEventBase
abstract protected WfAuditEvent containerAuditEventBase()(Code)
Returns an WfAuditEvent containing container-related information. the audit event



containerLocal
abstract public WfProcessLocal containerLocal()(Code)
Returns the WfProcessLocal that this activity is a part of. the process.



deadlines
public DeadlineInfo[] deadlines()(Code)
Returns the deadlines defined for this activity. the deadlines



deferChoiceOnSplit
public boolean deferChoiceOnSplit()(Code)
Returns if the activity's split is to be executed as deferred choice. true if the activity has been elected



dispose
protected void dispose()(Code)
Releases all allocated resources. The object will be in an unusable state until resources are reallocated by calling AbstractActivity.init init and AbstractActivity.refresh refresh .



doCloseActivity
public void doCloseActivity(State closedState)(Code)



equals
public boolean equals(Object obj)(Code)
Indicates if some other object is equal to this one.

Note that obj may be a stub representing the object. Stubs do not in general implement equals correctly, so while this.equals(obj) does indicate the equality as defined for this class, obj.equals(this) generally does not.
Parameters:
  obj - the object to compare with. true if the other object is equal.




executor
public Implementation executor()(Code)
Returns the current executor. current executor or null if no executorrunning.



finishMode
protected StartFinishMode finishMode()(Code)
Returns the finish mode. finish mode



getPaActImpl
abstract protected Implementation[] getPaActImpl()(Code)
The getter method for the persistent attribute actImpl. the value of actImpl.
See Also:   AbstractActivity.setPaActImpl



getPaBlockActivity
abstract protected Long getPaBlockActivity()(Code)
The getter method for the persistent attribute blockActivity. the value of blockActivity.
See Also:   AbstractActivity.setPaBlockActivity



getPaDeadlines
abstract protected List getPaDeadlines()(Code)
The getter method for the persistent attribute deadlines. the value of deadlines.
See Also:   AbstractActivity.setPaDeadlines



getPaDeferChoiceOnSplit
abstract protected boolean getPaDeferChoiceOnSplit()(Code)
The getter method for the persistent attribute deferChoiceOnSplit. the value of deferChoiceOnSplit.
See Also:   AbstractActivity.setPaDeferChoiceOnSplit



getPaExecStat
abstract protected Integer getPaExecStat()(Code)
The getter method for the persistent attribute executor. the value of executor.
See Also:   AbstractActivity.setPaExecStat



getPaFinishMode
abstract protected StartFinishMode getPaFinishMode()(Code)
The getter method for the persistent attribute finishMode. the value of finishMode.
See Also:   AbstractActivity.setPaFinishMode



getPaJoinMode
abstract protected JoinAndSplitMode getPaJoinMode()(Code)
The getter method for the persistent attribute joinMode. the value of joinMode.
See Also:   AbstractActivity.setPaJoinMode



getPaNoAssignments
abstract protected boolean getPaNoAssignments()(Code)
The getter method for the persistent attribute noAssignments. the value of noAssignments.
See Also:   AbstractActivity.setPaNoAssignments



getPaPendingException
abstract protected String getPaPendingException()(Code)
The getter method for the persistent attribute pendingException. the value of pendingException.
See Also:   AbstractActivity.setPaPendingException



getPaPendingExceptionIsFromBlock
abstract protected boolean getPaPendingExceptionIsFromBlock()(Code)
The getter method for the persistent flag pendingExceptionIsFromBlock. the value of the flag.
See Also:   AbstractActivity.setPaPendingExceptionIsFromBlock



getPaPerformer
abstract protected String getPaPerformer()(Code)
The getter method for the persistent attribute performer. the value of performer.
See Also:   AbstractActivity.setPaPerformer



getPaPreliminarilyChosen
abstract protected boolean getPaPreliminarilyChosen()(Code)
The getter method for the persistent attribute electedInChoice. the value of electedInChoice.
See Also:   AbstractActivity.setPaPreliminarilyChosen



getPaProcessKey
protected String getPaProcessKey()(Code)
The getter method implementation for the persistent read-only attribute processKey. May be overridden by the derived class to speed up access in distsributed systems. the value of processKey.



getPaProcessMgrName
protected String getPaProcessMgrName()(Code)
The getter method implementation for the persistent read-only attribute processMgrName. May be overridden by the derived class to speed up access in distsributed systems. the value of processMgrName.



getPaProcessMgrVersion
protected String getPaProcessMgrVersion()(Code)
The getter method implementation for the persistent read-only attribute processMgrVersion. May be overridden by the derived class to speed up access in distsributed systems. the value of processMgrVersion.



getPaProcessName
protected String getPaProcessName()(Code)
The getter method implementation for the persistent read-only attribute processName. May be overridden by the derived class to speed up access in distsributed systems. the value of processName.



getPaSplitMode
abstract protected JoinAndSplitMode getPaSplitMode()(Code)
The getter method for the persistent attribute splitMode. the value of splitMode.
See Also:   AbstractActivity.setPaSplitMode



getPaStartMode
abstract protected StartFinishMode getPaStartMode()(Code)
The getter method for the persistent attribute startMode. the value of startMode.
See Also:   AbstractActivity.setPaStartMode



getPaStartTime
abstract protected Date getPaStartTime()(Code)
The getter method for the persistent attribute startTime. the value of startTime.
See Also:   AbstractActivity.setPaStartTime



getPaSubStateBackup
abstract protected int getPaSubStateBackup()(Code)
The getter method for the persistent attribute subStateBackup. the value of subStateBackup.
See Also:   AbstractActivity.setPaSubStateBackup



getPaSubflow
abstract protected String getPaSubflow()(Code)
The getter method for the persistent attribute Subflow. the value of Subflow.
See Also:   AbstractActivity.setPaSubflow



getPaSuspendAccum
abstract protected long getPaSuspendAccum()(Code)
The getter method for the persistent attribute suspendAccum. the value of suspendAccum.
See Also:   AbstractActivity.setPaSuspendAccum



getPaSuspendStart
abstract protected Date getPaSuspendStart()(Code)
The getter method for the persistent attribute suspendStart. the value of suspendStart.
See Also:   AbstractActivity.setPaSuspendStart



getPaThreadInfo
abstract protected ThreadInfo getPaThreadInfo()(Code)
The getter method for the persistent attribute threadInfo. the value of threadInfo.
See Also:   AbstractActivity.setPaThreadInfo



getPaWaitOnChan
abstract protected String getPaWaitOnChan()(Code)
The getter method for the persistent attribute waitOnChan. the value of waitOnChan.
See Also:   AbstractActivity.setPaWaitOnChan



getPaWaitOnProc
abstract protected Long getPaWaitOnProc()(Code)
The getter method for the persistent attribute waitOnProc. the value of waitOnProc.
See Also:   AbstractActivity.setPaWaitOnProc



getResource
public WfResource getResource(WfAssignment asnmnt)(Code)
Get the resource associated with an Assignment. The method calls the corresponding method of the resource assignment service. This method is intended to be used by resource assignment systems for implementing de.danet.an.workflow.localcoreapi.WfAssignment.assigneeWfAssignment.assignee .

Clients should not use this method but rather call de.danet.an.workflow.localcoreapi.WfAssignment.setAssigneeWfAssignment.setAssignee .
Parameters:
  asnmnt - the assignment the resource




getStateTransitionMap
protected Map getStateTransitionMap()(Code)
Returns the java.util.Map Map that maps the activity states to a java.util.MapList of reachable process states.

The map returns the state transitions allowed as parameters of de.danet.an.workflow.localcoreapi.WfExecutionObjectLocal.changeStatechangeState only. I.e. the map does not reflect all possible transitions, there may be more, but those are only accessible to the workflow engine itself. the resulting map.




handleAbortedEvent
protected void handleAbortedEvent(WfStateAuditEvent event)(Code)
Handles a aborting audit event.
Parameters:
  event - the event.



handleCompletedEvent
protected void handleCompletedEvent(WfStateAuditEvent event)(Code)
Handles a completed audit event. This is thrown after the last implementation has terminated.
Parameters:
  event - the event.



handleImplCompletedEvent
protected void handleImplCompletedEvent(ImplCompleteAuditEvent event)(Code)
Handles a tool completed audit event.
Parameters:
  event - the event.



handleResumedEvent
protected void handleResumedEvent(WfStateAuditEvent event)(Code)
Handles a resumed audit event.
Parameters:
  event - the event.



handleSuspendedEvent
protected void handleSuspendedEvent(WfStateAuditEvent event)(Code)
Handles a suspended audit event.
Parameters:
  event - the event.



handleTerminatedEvent
protected void handleTerminatedEvent(WfStateAuditEvent event)(Code)
Handles a terminated audit event.
Parameters:
  event - the event.



handleTimeout
public void handleTimeout(Serializable info)(Code)
Handle the timeout of a timer.
Parameters:
  info - the context.



handleToolInvocationFailedAuditEvent
protected void handleToolInvocationFailedAuditEvent(ToolInvocationFailedAuditEvent event)(Code)
Handles a tool invocation audit event.
Parameters:
  event - the event.



handledExceptions
public String[] handledExceptions()(Code)



implementation
public Implementation[] implementation()(Code)
Returns the implementation of the activity as de.danet.an.workflow.localapi.ActivityLocal.ImplementationImplementation s. an array of Implementation}s ornull if no implementation is defined.



init
protected void init(Long blockActId, Priority priority, String name, String description, StartFinishMode startMode, StartFinishMode finishMode, JoinAndSplitMode joinMode, JoinAndSplitMode splitMode, Implementation[] implementation, String performer, List deadlines, boolean deferChoiceOnSplit, int auditEventSelection, boolean storeAuditEvents)(Code)
Initializes the class, i.e. sets all attributes to the given values. Note that AbstractActivity.refresh refresh will be called subsequently.
Parameters:
  blockActId - if the activity is part of a block activity,else null
Parameters:
  priority - a Priority value
Parameters:
  name - the activity's name
Parameters:
  description - activity description
Parameters:
  startMode - the start mode
Parameters:
  finishMode - the finish mode
Parameters:
  joinMode - the join mode
Parameters:
  splitMode - the split mode
Parameters:
  implementation - the implementation description
Parameters:
  performer - the performer
Parameters:
  deadlines - the deadlines
Parameters:
  deferChoiceOnSplit - if the split is to be made asdeferred choice
Parameters:
  auditEventSelection - the audit event selection
Parameters:
  storeAuditEvents - if true, audit events are stored in thedatabase
See Also:   AbstractActivity.dispose



initiateAbandoning
public boolean initiateAbandoning(boolean blockException, String exceptionName)(Code)



invokeTool
public void invokeTool(ExtApplication appl, Map params)(Code)
Invoke a tool for this activity.
Parameters:
  appl - the application description of the tool.
Parameters:
  params - the invocation parameters.



isHandled
public static boolean isHandled(WfAuditEvent event)(Code)
Check if this class handles a specific event.
Parameters:
  event - the event to check true if event is handled



isMemberOfAssignments
public boolean isMemberOfAssignments(WfAssignment member)(Code)
Check if the given assignment is among the assignments of this activity.
Parameters:
  member - the assignment in question. true if the assignment is among the assignments of this activity.



joinMode
public JoinAndSplitMode joinMode()(Code)
Returns the join mode. join mode



lookupProcessLocal
abstract protected ExtProcessLocal lookupProcessLocal(String key) throws InvalidKeyException(Code)
Lookup a process by its key. Can only be implemented by the persistence layer.
Parameters:
  key - the primary key the process
throws:
  InvalidKeyException - if no process with the given keyexists



performer
public String performer()(Code)
Returns the performer as string. performer as string



performers
public Collection performers()(Code)
Return all performers associated with this requester. A java.util.Collection collection ofassociated performers.



performersLocal
public Collection performersLocal()(Code)
Return all performers associated with this requester. A java.util.Collection collection ofassociated performers.



preliminarilyChosen
public boolean preliminarilyChosen()(Code)
Returns if the activity has been preliminarily chosen in a deferred choice. true if the activity has been elected



processContext
public ProcessData processContext()(Code)
Return the context of this WfExecutionObject. The process data object returned is a copy of the name value association, the values are not copied, however. the process relevant data that define the context of the process.



rasInvocationHandler
protected RASInvocationHandler rasInvocationHandler()(Code)
Return a RASInvocationHandler. The default implementation returns null, i.e. there is no resource assignment service available. a handler.



receiveEvent
public void receiveEvent(WfAuditEvent e) throws InvalidPerformerException(Code)
Called by the workflow engine if the activity is a requester.
Parameters:
  e - the event.
throws:
  InvalidPerformerException - thrown by the derivedde.danet.an.workflow.localcoreapi.WfRequesterLocal WfRequesterLocal if it receives an event from a process that is not among its performers.



refresh
protected void refresh()(Code)
Called after change of persistent attributes. May be used to synchronise state derived from persistent attributes with the new values.
See Also:   AbstractActivity.init



releaseResources
protected void releaseResources()(Code)
Called when the activity is closed.



removeAssignment
public void removeAssignment(WfResource resource) throws InvalidResourceException, NotAssignedException(Code)
Removes an assignment for enacting the activity. This method calls the corresponding method of the resource assignment service and creates the appropriate audit event.

This method is redundant, as the OMG specification already enables a client to remove an assignment by calling WfResource.releaseWfResource.release . WfResource objects are, however, provided by the resource management facility. This facility cannot create audit events, thus we have to provide a method that can be used by the resource management facility to implement release.
Parameters:
  resource - the resource whose assignment is to be canceled
throws:
  InvalidResourceException - if the resource is invalid.As the environment is a concurrent multi user environment, WfResource objects may become invalid.
throws:
  NotAssignedException - if there is no such assignment




reset
public void reset(boolean preserveThreadInfo, boolean publishChange)(Code)
Reset an activity to NotStartedState.UNKNOWN, i.e. have it assume exactly the same state as it has when newly created. An exception is the thread info which can (optionally) be preserved in certain cases.
Parameters:
  preserveThreadInfo - preserve the thread info, i.e. the information about the activity's predecessors.
Parameters:
  publishChange - publish the state change, i.e. create acorresponding audit event



result
public ProcessData result() throws ResultNotAvailableException(Code)
The default implementation of result throws a ResultNotAvailableException as this implementation does not provide access to the results of an activity. a ProcessData value
exception:
  ResultNotAvailableException - if no result is available.



resume
public void resume() throws CannotResumeException, NotRunningException, NotSuspendedException(Code)



setJoinMode
public void setJoinMode(JoinAndSplitMode joinMode)(Code)
Set the join mode of the activity.
Parameters:
  joinMode - the new join mode



setPaActImpl
abstract protected void setPaActImpl(Implementation[] newActImpl)(Code)
The setter method for the persistent attribute actImpl.
Parameters:
  newActImpl - the new value of actImpl.
See Also:   AbstractActivity.getPaActImpl



setPaBlockActivity
abstract protected void setPaBlockActivity(Long newBlockActivity)(Code)
The setter method for the persistent attribute blockActivity.
Parameters:
  newBlockActivity - the new value of blockActivity.
See Also:   AbstractActivity.getPaBlockActivity



setPaDeadlines
abstract protected void setPaDeadlines(List newDeadlines)(Code)
The setter method for the persistent attribute deadlines.
Parameters:
  newDeadlines - the new value of deadlines.
See Also:   AbstractActivity.getPaDeadlines



setPaDeferChoiceOnSplit
abstract protected void setPaDeferChoiceOnSplit(boolean newDeferChoiceOnSplit)(Code)
The setter method for the persistent attribute deferChoiceOnSplit.
Parameters:
  newDeferChoiceOnSplit - the new value of deferChoiceOnSplit.
See Also:   AbstractActivity.getPaDeferChoiceOnSplit



setPaExecStat
abstract protected void setPaExecStat(Integer newExecutor)(Code)
The setter method for the persistent attribute executor.
Parameters:
  newExecutor - the new value of executor.
See Also:   AbstractActivity.getPaExecStat



setPaFinishMode
abstract protected void setPaFinishMode(StartFinishMode newFinishMode)(Code)
The setter method for the persistent attribute finishMode.
Parameters:
  newFinishMode - the new value of finishMode.
See Also:   AbstractActivity.getPaFinishMode



setPaJoinMode
abstract protected void setPaJoinMode(JoinAndSplitMode newJoinMode)(Code)
The setter method for the persistent attribute joinMode.
Parameters:
  newJoinMode - the new value of joinMode.
See Also:   AbstractActivity.getPaJoinMode



setPaNoAssignments
abstract protected void setPaNoAssignments(boolean newNoAssignments)(Code)
The setter method for the persistent attribute noAssignments.
Parameters:
  newNoAssignments - the new value of noAssignments.
See Also:   AbstractActivity.getPaNoAssignments



setPaPendingException
abstract protected void setPaPendingException(String newPendingException)(Code)
The setter method for the persistent attribute pendingException.
Parameters:
  newPendingException - the new value of pendingException.
See Also:   AbstractActivity.getPaPendingException



setPaPendingExceptionIsFromBlock
abstract protected void setPaPendingExceptionIsFromBlock(boolean newValue)(Code)
The setter method for the persistent flags pendingExceptionIsFromBlock.
Parameters:
  newValue - the new value of the flag.
See Also:   AbstractActivity.getPaPendingExceptionIsFromBlock



setPaPerformer
abstract protected void setPaPerformer(String newPerformer)(Code)
The setter method for the persistent attribute performer.
Parameters:
  newPerformer - the new value of performer.
See Also:   AbstractActivity.getPaPerformer



setPaPreliminarilyChosen
abstract protected void setPaPreliminarilyChosen(boolean newElectedInChoice)(Code)
The setter method for the persistent attribute electedInChoice.
Parameters:
  newElectedInChoice - the new value of electedInChoice.
See Also:   AbstractActivity.getPaPreliminarilyChosen



setPaSplitMode
abstract protected void setPaSplitMode(JoinAndSplitMode newSplitMode)(Code)
The setter method for the persistent attribute splitMode.
Parameters:
  newSplitMode - the new value of splitMode.
See Also:   AbstractActivity.getPaSplitMode



setPaStartMode
abstract protected void setPaStartMode(StartFinishMode newStartMode)(Code)
The setter method for the persistent attribute startMode.
Parameters:
  newStartMode - the new value of startMode.
See Also:   AbstractActivity.getPaStartMode



setPaStartTime
abstract protected void setPaStartTime(Date newStartTime)(Code)
The setter method for the persistent attribute startTime.
Parameters:
  newStartTime - the new value of startTime.
See Also:   AbstractActivity.getPaStartTime



setPaSubStateBackup
abstract protected void setPaSubStateBackup(int newSubStateBackup)(Code)
The setter method for the persistent attribute subStateBackup.
Parameters:
  newSubStateBackup - the new value of subStateBackup.
See Also:   AbstractActivity.getPaSubStateBackup



setPaSubflow
abstract protected void setPaSubflow(String newSubflow)(Code)
The setter method for the persistent attribute Subflow.
Parameters:
  newSubflow - the new value of Subflow.
See Also:   AbstractActivity.getPaSubflow



setPaSuspendAccum
abstract protected void setPaSuspendAccum(long newSuspendAccum)(Code)
The setter method for the persistent attribute suspendAccum.
Parameters:
  newSuspendAccum - the new value of suspendAccum.
See Also:   AbstractActivity.getPaSuspendAccum



setPaSuspendStart
abstract protected void setPaSuspendStart(Date newSuspendStart)(Code)
The setter method for the persistent attribute suspendStart.
Parameters:
  newSuspendStart - the new value of suspendStart.
See Also:   AbstractActivity.getPaSuspendStart



setPaThreadInfo
abstract protected void setPaThreadInfo(ThreadInfo newThreadInfo)(Code)
The setter method for the persistent attribute threadInfo.
Parameters:
  newThreadInfo - the new value of threadInfo.
See Also:   AbstractActivity.getPaThreadInfo



setPaWaitOnChan
abstract protected void setPaWaitOnChan(String newWaitOnChan)(Code)
The setter method for the persistent attribute waitOnChan.
Parameters:
  newWaitOnChan - the new value of waitOnChan.
See Also:   AbstractActivity.getPaWaitOnChan



setPaWaitOnProc
abstract protected void setPaWaitOnProc(Long newWaitOnProc)(Code)
The setter method for the persistent attribute waitOnProc.
Parameters:
  newWaitOnProc - the new value of waitOnProc.
See Also:   AbstractActivity.getPaWaitOnProc



setProcessContext
public void setProcessContext(ProcessData newValue) throws InvalidDataException, UpdateNotAllowedException(Code)
Set new process context.
Parameters:
  newValue - new value for proces context.
throws:
  InvalidDataException - if data is invalid
throws:
  UpdateNotAllowedException - if update is not allowed



setResult
public void setResult(ProcessData result) throws InvalidDataException(Code)
The default implementation of setResult maps the formal parameter names to actual process data item names and merges the result data in the process context.
Parameters:
  result - the result data.
exception:
  InvalidDataException - if the data does not match theparameter list.



setSplitMode
public void setSplitMode(JoinAndSplitMode splitMode)(Code)
Set the join mode of the activity.
Parameters:
  splitMode - the new split mode



setStartable
public void setStartable(Collection triggers, boolean preliminarilyChosen)(Code)
Update the sub-state of an activity in state NotRunningState.NOT_STARTED to NotStartedState.STARTABLE. This update reflects internal evaluation progression only and does neither update last state change time nor fire an event.
Parameters:
  triggers - the activities that caused the activity to bestartable (one or more activities depending on the join mode).
Parameters:
  preliminarilyChosen - if the activity is triggered due to adeferred choice
See Also:   AbstractActivity.updateState



splitMode
public JoinAndSplitMode splitMode()(Code)
Returns the split mode. split mode



start
public void start() throws AlreadyRunningException(Code)
Starts an activity. This is not an OMG method, but needed in the communication between process and activity.
throws:
  AlreadyRunningException - when the process has already been started.



startMode
protected StartFinishMode startMode()(Code)
Returns the start mode. start mode



startTime
public Date startTime() throws NotRunningException(Code)
Return the start time of the activity. result
throws:
  NotRunningException - if the activity has not been started yet



suspend
public void suspend() throws CannotSuspendException, NotRunningException, AlreadySuspendedException(Code)



terminate
public void terminate() throws CannotStopException, NotRunningException(Code)



terminateImpl
protected void terminateImpl() throws ApplicationNotStoppedException(Code)
Terminate any implementation currently running for this activity.
throws:
  ApplicationNotStoppedException - if implementationtermination was not possible



terminateTool
protected void terminateTool() throws ApplicationNotStoppedException(Code)
Terminate a tool currently running for this activity.
throws:
  ApplicationNotStoppedException - if tool termination wasnot possible.



threadInfo
public ThreadInfo threadInfo()(Code)
Return the activity's thread info. the thread info.



toActivity
abstract public Activity toActivity()(Code)
Return the remote version of this object. the client side object.



toActivityLocal
abstract protected ExtActivityLocal toActivityLocal()(Code)
Return the version of this object to be passed to as local reference. the client side object.



toString
public String toString()(Code)
Return string representation for debugging purposes. a string representation.



toolInvocationHandler
protected ToolInvocationHandler toolInvocationHandler()(Code)
Return a ToolInvocationHandler. Simple implementation that will have to be refined by the persistence/remoting layer. a handler.



uniqueKey
public ActivityUniqueKey uniqueKey()(Code)
Return a unique key for the activity. (Note that the OMG interface defines the key returned by the de.danet.an.workflow.localcoreapi.WfExecutionObjectLocal.keykey() method as unique within the scope of the containing process only.) value of uniqueKey.



waitOnChannel
public void waitOnChannel(String procKey, String channel)(Code)



withdrawPreliminaryChoice
public void withdrawPreliminaryChoice(boolean reset) throws TransitionNotAllowedException(Code)
Terminates and resets an activity that was started preliminarily as part of a deferred choice.
Parameters:
  reset - if the activity's state is to be reset
throws:
  TransitionNotAllowedException - if the activity has notbeen preliminarily chosen



Methods inherited from de.danet.an.workflow.domain.AbstractExecutionObject
public void abort() throws CannotStopException, NotRunningException(Code)(Java Doc)
abstract protected WfAuditEvent auditEventBase(String eventType)(Code)(Java Doc)
public void changeState(String newState) throws InvalidStateException, TransitionNotAllowedException(Code)(Java Doc)
public void changeState(State newState) throws InvalidStateException, TransitionNotAllowedException(Code)(Java Doc)
public boolean debugEnabled()(Code)(Java Doc)
public String description()(Code)(Java Doc)
protected void dispose()(Code)(Java Doc)
protected void fireAuditEvent(WfAuditEvent event)(Code)(Java Doc)
abstract protected int getPaAuditEventSelection()(Code)(Java Doc)
abstract protected boolean getPaDebug()(Code)(Java Doc)
abstract protected String getPaDescription()(Code)(Java Doc)
abstract protected String getPaKey()(Code)(Java Doc)
abstract protected Date getPaLastStateTime()(Code)(Java Doc)
abstract protected String getPaName()(Code)(Java Doc)
abstract protected Priority getPaPriority()(Code)(Java Doc)
abstract protected boolean getPaStoreAuditEvents()(Code)(Java Doc)
abstract protected State getPaTypedState()(Code)(Java Doc)
abstract protected Map getStateTransitionMap()(Code)(Java Doc)
protected void handleAbortedEvent(WfStateAuditEvent event)(Code)(Java Doc)
public void handleAuditEvent(WfAuditEvent event)(Code)(Java Doc)
protected void handleCompletedEvent(WfStateAuditEvent event)(Code)(Java Doc)
protected void handleImplCompletedEvent(ImplCompleteAuditEvent event)(Code)(Java Doc)
protected void handleResumedEvent(WfStateAuditEvent event)(Code)(Java Doc)
protected void handleStartedEvent(WfStateAuditEvent event)(Code)(Java Doc)
protected void handleStateAuditEvent(WfAuditEvent event)(Code)(Java Doc)
protected void handleSuspendedEvent(WfStateAuditEvent event)(Code)(Java Doc)
protected void handleTerminatedEvent(WfStateAuditEvent event)(Code)(Java Doc)
protected void handleToolInvocationFailedAuditEvent(ToolInvocationFailedAuditEvent event)(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
abstract public Collection history() throws HistoryNotAvailableException(Code)(Java Doc)
public State howClosed()(Code)(Java Doc)
protected void init()(Code)(Java Doc)
public String key()(Code)(Java Doc)
public Date lastStateTime()(Code)(Java Doc)
public String name()(Code)(Java Doc)
public int priority()(Code)(Java Doc)
protected void refresh()(Code)(Java Doc)
public void resume() throws CannotResumeException, NotRunningException, NotSuspendedException(Code)(Java Doc)
public void setDebugEnabled(boolean debug) throws InvalidStateException(Code)(Java Doc)
public void setDescription(String newValue)(Code)(Java Doc)
public void setName(String newValue)(Code)(Java Doc)
abstract protected void setPaAuditEventSelection(int newAuditEventSelection)(Code)(Java Doc)
abstract protected void setPaDebug(boolean newDebug)(Code)(Java Doc)
abstract protected void setPaDescription(String newDescription)(Code)(Java Doc)
abstract protected void setPaLastStateTime(Date newLastStateTime)(Code)(Java Doc)
abstract protected void setPaName(String newName)(Code)(Java Doc)
abstract protected void setPaPriority(Priority newPriority)(Code)(Java Doc)
abstract protected void setPaStoreAuditEvents(boolean newStoreAuditEvents)(Code)(Java Doc)
abstract protected void setPaTypedState(State newTypedState)(Code)(Java Doc)
public void setPriority(int newValue) throws InvalidPriorityException, UpdateNotAllowedException(Code)(Java Doc)
public void setProcessContext(ProcessData newValues) throws InvalidDataException, UpdateNotAllowedException(Code)(Java Doc)
public String state()(Code)(Java Doc)
public void suspend() throws CannotSuspendException, NotRunningException, AlreadySuspendedException(Code)(Java Doc)
public void terminate() throws CannotStopException, NotRunningException(Code)(Java Doc)
public State typedState()(Code)(Java Doc)
protected void updateImmediate(State newState)(Code)(Java Doc)
protected void updateInterim(State newState)(Code)(Java Doc)
protected void updateState(State newState)(Code)(Java Doc)
public Collection validStates()(Code)(Java Doc)
protected Collection validTypedStates()(Code)(Java Doc)
public State whileOpen()(Code)(Java Doc)
public State whyNotRunning()(Code)(Java Doc)
public State workflowState()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.