Source Code Cross Referenced for WfRequester.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 Referenced  Class Diagram Java Document (Java Doc) 


01:        package org.enhydra.shark.api.client.wfmodel;
02:
03:        import java.io.Serializable;
04:
05:        import org.enhydra.shark.api.client.wfbase.BaseBusinessObject;
06:
07:        /**
08:         * OMG definition: WfRequester is the interface that has a direct concern with the
09:         * execution and results of a workflow process - it represents the request for some work
10:         * to be done. Its performer, a WfProcess, is expected to handle its request and
11:         * communicate significant status changes; in particular to inform the requester when it
12:         * has completed performing the requested work. A single requester can have many processes
13:         * associated with it.
14:         * <p>
15:         * Often WfRequester will also be the interface to the object that starts the process. As
16:         * a process starter some of the control actions on the process include setting up the
17:         * context, starting the process, and getting results and status. There are two usage
18:         * scenarios for the association of a WfProcess with a WfRequester:
19:         * <p>
20:         * 1. Nesting of workflow processes - a WfActivity can be refined into a WfRequester and
21:         * may therefore request that a WfProcess be its performer (i.e., implementation). In this
22:         * case, the WfActivity would be registered as the requester with the implementing
23:         * sub-process when the WfProcess is created and would receive notifications of status
24:         * changes of that sub-process; upon completion of the subprocess, the WfActivity would
25:         * enter completed state.
26:         * <p>
27:         * 2. Linking a workflow process to another (initiating or controlling) application. When
28:         * used as a linked process the requester should be a WfRequester, which is not the
29:         * linking WfActivity. Requesters that are not activities are roles or adapters for
30:         * external clients.
31:         * <p>
32:         * We extended OMG's interface by duplicating methods, and adding additional parameter
33:         * that represents transaction. If you use methods without SharkTransaction parameter, the
34:         * transaction will be implicitly created, and if you use it with SharkTransaction
35:         * parameter you must obey to some rules explained in HowTo documentation.
36:         * <p>
37:         * Also, we require that WfRequester implement Serializable interface.
38:         */
39:        public interface WfRequester extends BaseBusinessObject, Serializable {
40:
41:            /**
42:             * Zero or more WfProcesses can be associated with a WfRequester. A requester is
43:             * associated with a WfProcess when the process is created.
44:             * <p>
45:             * The following operation provide the information about the number of WfProcess items
46:             * currently associated with a WfRequester.
47:             */
48:            int how_many_performer() throws Exception;
49:
50:            /**
51:             * Zero or more WfProcesses can be associated with a WfRequester. A requester is
52:             * associated with a WfProcess when the process is created.
53:             * <p>
54:             * The following operation returns iterator for qurying associated processes based on
55:             * some criteria.
56:             */
57:            WfProcessIterator get_iterator_performer() throws Exception;
58:
59:            /**
60:             * Zero or more WfProcesses can be associated with a WfRequester. A requester is
61:             * associated with a WfProcess when the process is created.
62:             * <p>
63:             * The following operation returns max_number of WfProcess objects associated with an
64:             * WfRequester. If max_number is less or eaqual to zero, or it is greater than the
65:             * number of existing processes, all associated WfProcess objects will be returned.
66:             */
67:            WfProcess[] get_sequence_performer(int max_number) throws Exception;
68:
69:            /**
70:             * Zero or more WfProcesses can be associated with a WfRequester. A requester is
71:             * associated with a WfProcess when the process is created.
72:             * <p>
73:             * The following operation returns true if given process is associated with
74:             * WfRequester.
75:             */
76:            boolean is_member_of_performer(WfProcess member) throws Exception;
77:
78:            /**
79:             * The following operation is used by WfProcess to notify its requester of workflow
80:             * events. In particular the WfProcess must notify the requester of complete,
81:             * terminate, or abort events or the transition to a closed state.
82:             * <p>
83:             * The workflow event contains the source of the event; an InvalidPerformer exception
84:             * is raised if the source of the event is not a performer associated with the
85:             * WfRequester.
86:             */
87:            void receive_event(WfEventAudit event) throws Exception,
88:                    InvalidPerformer;
89:
90:        } // interface WfRequester
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.