Java Doc for Activity.java in  » Workflow-Engines » wfmopen-2.1.1 » de » danet » an » workflow » api » 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.api 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


de.danet.an.workflow.api.Activity

Activity
public interface Activity extends ExecutionObject,de.danet.an.workflow.omgcore.WfActivity(Code)
Interface Activity adds some functions to the de.danet.an.workflow.omgcore.WfActivity OMG activity .

Inner Class :public static class ClosedCompletedState extends ClosedState implements Serializable
Inner Class :public static class StartFinishMode implements Serializable
Inner Class :public static class JoinAndSplitMode implements Serializable
Inner Class :public interface Implementation extends Serializable
Inner Class :public interface ToolImplementation extends Implementation
Inner Class :public interface SubFlowImplementation extends Implementation
Inner Class :public class DeadlineInfo implements Serializable
Inner Class :public class Info implements Serializable



Method Summary
 voidabandon(String exceptionName)
     Force the completion of this activity, leaving it in state "closed.completed.abandoned".
 Activity.InfoactivityInfo()
     This method returns all available information about the activity in a single operation.
 StringblockActivity()
     Returns the key of the "parent" block activity.
 voidchangeAssignment(WfResource oldResource, WfResource newResource)
     Change an assignment for enacting the activity.
 booleanchoose()
     Makes this activity the chosen one in a set of activities started by an AND split with the "deferred choice" option set.
 DeadlineInfo[]deadlines()
     Returns the deadlines defined for this activity.
 Implementationexecutor()
     Returns the current executor.
 WfResourcegetResource(WfAssignment asnmnt)
     Get the resource associated with an Assignment.
 String[]handledExceptions()
     Returns the names of the exceptions handled by this activity.
 Implementation[]implementation()
     Returns the implementation of the activity as de.danet.an.workflow.api.Activity.ImplementationImplementation s.
 JoinAndSplitModejoinMode()
     Returns the join mode.
 ListnextActivities()
     Returns the list of activities that may follow this activity, i.e.
 Stringperformer()
     Returns the performer as string.
 voidremoveAssignment(WfResource resource)
     Removes an assignment for enacting the activity.
 JoinAndSplitModesplitMode()
     Returns the split mode.
 ActivityUniqueKeyuniqueKey()
     Return a unique key for the activity.



Method Detail
abandon
void abandon(String exceptionName) throws RemoteException, TransitionNotAllowedException(Code)
Force the completion of this activity, leaving it in state "closed.completed.abandoned". Does nothing if the activity is in state "closed" already or has not been started ("open.not_running.not_started").

An abandoned activity is considered to be completed under exceptional circumstances. Therefore only transitions with conditions of type EXCEPTION or DEFAULTEXCEPTION are considered when evaluating the set of subsequent activities. The argument is the name of the exception which may be used to distinguish different exceptions in transition evaluation (see XPDL).

This method should be used with care. In general, exceptions have a different level of abstraction in a workflow process description than in Java programming. The author of a workflow process should not have to know about e.g. a "SAXException". But he may know what to do in case of a "ResultInvalid" exception (though this kind of problem should only arise during development anyway).

This method may only be called during tool execution. Note that calling this method does not terminate tool execution, i.e. the method will return. A tool agent should, however, not try to do anything with the activity any more after calling this method.
Parameters:
  exceptionName - the name of the exception
throws:
  RemoteException - if a system-level error occurs
throws:
  TransitionNotAllowedException - if the activity is notexecuting a tool




activityInfo
Activity.Info activityInfo() throws RemoteException(Code)
This method returns all available information about the activity in a single operation. the resulting Activity.Info value
throws:
  RemoteException - if a system-level error occurs



blockActivity
String blockActivity() throws RemoteException(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
throws:
  RemoteException - if a system-level error occurs




changeAssignment
void changeAssignment(WfResource oldResource, WfResource newResource) throws RemoteException, 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.omgcore.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.omgcore.WfAssignment.setAssigneeWfAssignment.setAssignee .
Parameters:
  oldResource - the resource that has its assignment removed
Parameters:
  newResource - the resource to be assigned
throws:
  RemoteException - if a system-level error occurs
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




choose
boolean choose() throws RemoteException, 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:
  RemoteException - if a system-level error occurs
throws:
  TransitionNotAllowedException - if the activity isneither running nor suspended




deadlines
DeadlineInfo[] deadlines() throws RemoteException(Code)
Returns the deadlines defined for this activity. the deadlines
throws:
  RemoteException - if a system-level error occurs



executor
Implementation executor() throws RemoteException(Code)
Returns the current executor. current executor or null if no executorrunning
throws:
  RemoteException - if a system-level error occurs



getResource
WfResource getResource(WfAssignment asnmnt) throws RemoteException(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.omgcore.WfAssignment.assigneeWfAssignment.assignee .

Clients should not use this method but rather call de.danet.an.workflow.omgcore.WfAssignment.assigneeWfAssignment.assignee .
Parameters:
  asnmnt - the assignment the resource
throws:
  RemoteException - if a system-level error occurs.
since:
   1.3.4




handledExceptions
String[] handledExceptions() throws RemoteException(Code)
Returns the names of the exceptions handled by this activity. handled exceptions
throws:
  RemoteException - if a system-level error occurs



implementation
Implementation[] implementation() throws RemoteException(Code)
Returns the implementation of the activity as de.danet.an.workflow.api.Activity.ImplementationImplementation s. an array of Implementation}s ornull if no implementation is defined
throws:
  RemoteException - if a system-level error occurs



joinMode
JoinAndSplitMode joinMode() throws RemoteException(Code)
Returns the join mode. join mode
throws:
  RemoteException - if a system-level error occurs



nextActivities
List nextActivities() throws RemoteException(Code)
Returns the list of activities that may follow this activity, i.e. to which transitions exist. the list of Activity Activity objects.
throws:
  RemoteException - if a system-level error occurs



performer
String performer() throws RemoteException(Code)
Returns the performer as string. performer as string
throws:
  RemoteException - if a system-level error occurs



removeAssignment
void removeAssignment(WfResource resource) throws RemoteException, 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 intended to be used by resource management systems for implementing WfResource.releaseWfResource.release .

Clients should not use this method but rather call WfResource.releaseWfResource.release .
Parameters:
  resource - the resource whose assignment is to be canceled
throws:
  RemoteException - if a system-level error occurs
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




splitMode
JoinAndSplitMode splitMode() throws RemoteException(Code)
Returns the split mode. split mode
throws:
  RemoteException - if a system-level error occurs



uniqueKey
ActivityUniqueKey uniqueKey() throws RemoteException(Code)
Return a unique key for the activity. (Note that the OMG interface defines the key returned by the de.danet.an.workflow.omgcore.WfExecutionObject.keykey() method as unique within the scope of the containing process only.) value of uniqueKey
throws:
  RemoteException - if a system-level error occurs



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