Java Doc for WfExecutionObject.java in  » Workflow-Engines » shark » org » enhydra » shark » api » client » wfmodel » 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 » shark » org.enhydra.shark.api.client.wfmodel 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.enhydra.shark.api.client.wfmodel.WfExecutionObject

WfExecutionObject
public interface WfExecutionObject extends BaseBusinessObject(Code)
OMG definition: WfExecutionObject is an abstract base interface that defines common attributes, states, and operations for WfProcess and WfActivity. It provides the capability to get and set and internal states. Operations are provided to get the current state and to make a transition from the current state into another state. Operations are also provided for specific state transitions. These operations are suspend, resume, terminate, and abort. States returned by these operations should not be confused with the state of the process which is calculated by the top level WfProcess. States returned by these operations pertain only to the object they are returned from. For example, regardless of what activity is currently enabled, a process as a whole can be paused and resumed. The propagation of state change of a WfProcess object down to WfActivity objects or subprocesses is implementation and process definition dependent.

The interface includes name, description, priority, and key attributes. It also provides an operation for monitoring WfExecutionObject executions by returning, based on filter specified, event audit records that represent the history of the execution. Other operations include methods for getting and setting context.

We extended OMG's interface by duplicating methods, and adding additional parameter that represents transaction. If you use methods without SharkTransaction parameter, the transaction will be implicitly created, and if you use it with SharkTransaction parameter you must obey to some rules explained in HowTo documentation.





Method Summary
 voidabort()
     Requests enactment of a suspended execution object to be aborted before its normal completion.
 voidchange_state(String new_state)
     Updates the current state of the execution object.
 Stringdescription()
     Returns description of the execution object.
 WfEventAuditIteratorget_iterator_history(String query, Map names_in_query)
     Zero or more WfEventAudit items can be associated with an execution object.
 WfEventAudit[]get_sequence_history(int max_number)
     Zero or more WfEventAudit items can be associated with an execution object.
 how_closedTypehow_closed()
     Returns the sub-state of execution object that is in closed state: completed, aborted or terminated.
 inthow_many_history()
     Zero or more WfEventAudit items can be associated with an execution object.
 booleanis_member_of_history(WfExecutionObject member)
     Zero or more WfEventAudit items can be associated with an execution object.
 Stringkey()
     Gets the identifier of the execution object.
 UtcTlast_state_time()
     Returns the time when WfExecutionObject changed its state to the current one.
 Stringname()
     Returns human readable, descriptive identifier of the execution object.
 shortpriority()
     Returns relative priority of the execution element in the set of all execution objects of a given type.
 Mapprocess_context()
     The process context is described by a set of named properties; the following operation support access to the context of an execution object.
 voidresume()
     Requests enactment of a suspended execution object to be resumed.
 voidset_description(String new_value)
     Sets description of the execution object.
 voidset_name(String new_value)
     Sets the human readable, descriptive identifier of the execution object.
 voidset_priority(short new_value)
     Sets the relative priority of the execution element in the set of all execution objects of a given type.
 voidset_process_context(Map new_value)
     Sets the process relevant data that define the context of the execution object.
 Stringstate()
     Gets the current state of the object.
 voidsuspend()
     Requests enactment of an execution object to be suspended.
 voidterminate()
     Requests enactment of an execution object to be terminated before its normal completion.
 String[]valid_states()
     The following operations support access to a potentially extended set of states; a state is represented by a dot-notation representing hierarchical states (e.g., open.running).
 while_openTypewhile_open()
     Returns the sub-state of execution object that is in open state: running or not running.
 why_not_runningTypewhy_not_running()
     Returns the sub-state of execution object that is in open.not_running state: not started or suspended.
 workflow_stateTypeworkflow_state()
     Returns the basic state of execution object: open or closed.



Method Detail
abort
void abort() throws Exception, CannotStop, NotRunning(Code)
Requests enactment of a suspended execution object to be aborted before its normal completion. The state is set to closed.aborted.
throws:
  CannotStop - raised when the execution object cannot be aborted.
throws:
  NotRunning - raised when the object is not running.
throws:
  Exception -



change_state
void change_state(String new_state) throws Exception, InvalidState, TransitionNotAllowed(Code)
Updates the current state of the execution object. As a result the state of execution objects associated with this execution object might be updated, too.
throws:
  InvalidState - raised when the new_state is not a valid state for theexecution object
throws:
  TransitionNotAllowed - raised when the transition from the current state tonew_state is not allowed.
throws:
  Exception -



description
String description() throws Exception(Code)
Returns description of the execution object.



get_iterator_history
WfEventAuditIterator get_iterator_history(String query, Map names_in_query) throws Exception, HistoryNotAvailable(Code)
Zero or more WfEventAudit items can be associated with an execution object. An event audit item is generated (and associated with the source object) for each workflow relevant status change (change of state, context or result and change of resource assignment) of a WfExecutionObject. Status changes can be explicitly triggered by operations that request a change of the objects status or implicitly by the workflow process logic. We will indicate which operations trigger generation of WfEventAudit items.

The following operation returns iterator for qurying associated event audits based on some criteria.




get_sequence_history
WfEventAudit[] get_sequence_history(int max_number) throws Exception, HistoryNotAvailable(Code)
Zero or more WfEventAudit items can be associated with an execution object. An event audit item is generated (and associated with the source object) for each workflow relevant status change (change of state, context or result and change of resource assignment) of a WfExecutionObject. Status changes can be explicitly triggered by operations that request a change of the objects status or implicitly by the workflow process logic. We will indicate which operations trigger generation of WfEventAudit items.

The following operation returns max_number of WfEventAudit objects associated with an WfExecutionObject. If max_number is less or eaqual to zero, or it is greater than the number of existing event audits, all associated WfEventAudit objects will be returned.




how_closed
how_closedType how_closed() throws Exception(Code)
Returns the sub-state of execution object that is in closed state: completed, aborted or terminated.



how_many_history
int how_many_history() throws Exception, HistoryNotAvailable(Code)
Zero or more WfEventAudit items can be associated with an execution object. An event audit item is generated (and associated with the source object) for each workflow relevant status change (change of state, context or result and change of resource assignment) of a WfExecutionObject. Status changes can be explicitly triggered by operations that request a change of the objects status or implicitly by the workflow process logic. We will indicate which operations trigger generation of WfEventAudit items.

The following operation provide the information about the number of WfEventAudit items currently associated with a WfExecutionObject.




is_member_of_history
boolean is_member_of_history(WfExecutionObject member) throws Exception(Code)
Zero or more WfEventAudit items can be associated with an execution object. An event audit item is generated (and associated with the source object) for each workflow relevant status change (change of state, context or result and change of resource assignment) of a WfExecutionObject. Status changes can be explicitly triggered by operations that request a change of the objects status or implicitly by the workflow process logic. We will indicate which operations trigger generation of WfEventAudit items.

The following operation returns true if given event audit is associated with WfExecutionObject.




key
String key() throws Exception(Code)
Gets the identifier of the execution object. The key of a WfProcess is unique among the set of all WfProcesses created by a particular WfProcessMgr; the key of a WfActivity is unique within the set of all WfActivities contained in a particular WfProcess. A key is assigned to the execution object by its WfProcessMgr when it is created.

The key of a workflow object should not be confused with an object identifier. It is used for reference to the process or activity independently of the lifetime of the execution object.




last_state_time
UtcT last_state_time() throws Exception(Code)
Returns the time when WfExecutionObject changed its state to the current one.



name
String name() throws Exception(Code)
Returns human readable, descriptive identifier of the execution object.



priority
short priority() throws Exception(Code)
Returns relative priority of the execution element in the set of all execution objects of a given type.

Valid values are numbers between one and five, with three being 'normal' and one as the 'highest' priority.




process_context
Map process_context() throws Exception(Code)
The process context is described by a set of named properties; the following operation support access to the context of an execution object. The Map structure identifies a set of property names and values matching the signature of the execution object. The signature of a WfProcess can be obtained using the get_context_signature operation provided by the WfProcessMgr of the process.



resume
void resume() throws Exception, CannotResume, NotSuspended(Code)
Requests enactment of a suspended execution object to be resumed. The state is set to open.running (or a substate) from open.not_running.suspended.
throws:
  CannotResume - raised when the execution object cannot be resumed. Forexample, resuming a WfActivity might not be allowed when the containingWfProcess is suspended.
throws:
  NotSuspended - raised when the object is not suspended.
throws:
  Exception -



set_description
void set_description(String new_value) throws Exception(Code)
Sets description of the execution object.



set_name
void set_name(String new_value) throws Exception(Code)
Sets the human readable, descriptive identifier of the execution object.



set_priority
void set_priority(short new_value) throws Exception(Code)
Sets the relative priority of the execution element in the set of all execution objects of a given type.

Valid values are numbers between one and five, with three being 'normal' and one as the 'highest' priority.

A request for update of the priority will raise an exception when the specified priority is out of range, or when the priority cannot be updated.




set_process_context
void set_process_context(Map new_value) throws Exception, InvalidData, UpdateNotAllowed(Code)
Sets the process relevant data that define the context of the execution object. The process context is described by a set of named properties. The Map structure identifies a set of property names and values matching the signature of the execution object. The signature of a WfProcess can be obtained using the get_context_signature operation provided by the WfProcessMgr of the process.

When this method has been called, only those name-value pairs in the parameter will be set. Several set_process_context() calls could be used to set the entire context.
Parameters:
  new_value - a Map
throws:
  Exception -
throws:
  InvalidData - raised when an update request does not match this signature.
throws:
  UpdateNotAllowed - raised when the implementation of the WfM Facility or thespecific workflow process does not allow an update of the context.




state
String state() throws Exception(Code)
Gets the current state of the object.



suspend
void suspend() throws Exception, CannotSuspend, NotRunning, AlreadySuspended(Code)
Requests enactment of an execution object to be suspended. The state is set to open.not_running.suspended (or one of its substates).
throws:
  CannotSuspend - exception is raised when the execution object cannot besuspended. For example, an implementation of the WfM Facility might notsupport suspension of a WfActivity.
throws:
  NotRunning - raised when the object is not running.
throws:
  AlreadySuspended - raised when the object is already suspended.
throws:
  Exception -



terminate
void terminate() throws Exception, CannotStop, NotRunning(Code)
Requests enactment of an execution object to be terminated before its normal completion. A terminate request is different from an abort request in its effect of execution object associated with the current execution object. The state is set to closed.terminated (or one of its substates) from open.running (or one of its substates).
throws:
  CannotStop - raised when the execution object cannot be terminated; forexample, termination of a WfActivity might not be allowed when itsimplementation is still active and cannot be terminated.
throws:
  NotRunning - raised when the object is not running.
throws:
  Exception -



valid_states
String[] valid_states() throws Exception(Code)
The following operations support access to a potentially extended set of states; a state is represented by a dot-notation representing hierarchical states (e.g., open.running).

Returns a list of all the valid states that can be reached from the current state. For example, open.running and closed.terminated would be in the list of valid states if the current state was open.not_running.not_started - open.not_running.suspended probably would not be in that list.




while_open
while_openType while_open() throws Exception(Code)
Returns the sub-state of execution object that is in open state: running or not running.



why_not_running
why_not_runningType why_not_running() throws Exception(Code)
Returns the sub-state of execution object that is in open.not_running state: not started or suspended.



workflow_state
workflow_stateType workflow_state() throws Exception(Code)
Returns the basic state of execution object: open or closed.



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