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


org.enhydra.shark.api.client.wfservice.SharkConnection

All known Subclasses:   org.enhydra.shark.SharkConnectionImpl,  org.enhydra.shark.ejb.SharkConnectionSSBean,
SharkConnection
public interface SharkConnection (Code)
Interface used to perform some administrative operations that concern execution engine objects.

The first method to be called by client application is the first method of this interface - connect(), and only if user authentication is OK, other methods can be used (otherwise, every method throws NotConnected exception).
author:
   Sasa Bojanic
author:
   Vladimir Puskas





Method Summary
 voidattachToHandle(WMSessionHandle shandle)
    
 voidconnect(WMConnectInfo connectInfo)
     This is the first method to be called in order to communicate with the engine.
 voiddisconnect()
     Disconnects from shark engine.
 WfActivitygetActivity(String procId, String actId)
     Returns WfActivity object that has the given Id, or null if such doesn't exist.
Parameters:
  procId - activity's process Id.
Parameters:
  actId - activity instance Id.
 WfAssignmentgetAssignment(String procId, String actId, String username)
     Returns WfAssignment object for activity with given Id, and resource with the given username, or null if such doesn't exist.
 WfAssignmentgetAssignment(String procId, String assId)
     Returns WfAssignment object for given Id, or null if such doesn't exist.
 WfProcessgetProcess(String procId)
     Returns WfProcess object that has the given Id, or null if such does not exist.
Parameters:
  procId - process instance Id.
 WfProcessMgrgetProcessMgr(String name)
     Returns WfProcessMgr object that has the given name, or null if such does not exist.
Parameters:
  name - WfProcessMgr object name.
 WfResourcegetResource(String username)
     Returns WfResource object that has the given username, or null if such doesn't exist.
Parameters:
  username - username of WfResource instance.
 WfResourcegetResourceObject()
     Returns WfResource object belonging to the user that has been connected to shark through this interface.
 WMSessionHandlegetSessionHandle()
    
 WfActivityIteratorget_iterator_activity()
    
 WfAssignmentIteratorget_iterator_assignment()
    
 WfProcessIteratorget_iterator_process()
    
 WfProcessMgrIteratorget_iterator_processmgr()
     Returns an iterator that can be used to retrieve WfProcessMgr objects that represent appropriate XPDL process definitions, and are used to create new process instances.
 WfResourceIteratorget_iterator_resource()
     Returns an iterator that can be used to retrieve WfResource objects that represent appropriate shark users. WfResourceIterator for retrieving WfResource objects.
 WfProcessMgr[]get_sequence_processmgr(int max_number)
     Returns an array of WfProcessMgr objects.
Parameters:
  max_number - The maximum number of WfProcessMgr instances to be returned.
 WfResource[]get_sequence_resource(int max_number)
     Returns an array of WfResource objects.
Parameters:
  max_number - The maximum number of WfResource instances to be returned.



Method Detail
attachToHandle
void attachToHandle(WMSessionHandle shandle) throws Exception(Code)



connect
void connect(WMConnectInfo connectInfo) throws Exception(Code)
This is the first method to be called in order to communicate with the engine. If the login parameters are correct, user can use other methods of this interface to communicate with the shark engine, and if not, he can't do anything.
Parameters:
  connectInfo - structure holding connection request data
throws:
  Exception - If something unexpected happens.



disconnect
void disconnect() throws Exception(Code)
Disconnects from shark engine.
throws:
  Exception - If something unexpected happens.



getActivity
WfActivity getActivity(String procId, String actId) throws Exception(Code)
Returns WfActivity object that has the given Id, or null if such doesn't exist.
Parameters:
  procId - activity's process Id.
Parameters:
  actId - activity instance Id. WfActivity with the given Id, or null if does not exist.
throws:
  Exception - If something unexpected happens.



getAssignment
WfAssignment getAssignment(String procId, String actId, String username) throws Exception(Code)
Returns WfAssignment object for activity with given Id, and resource with the given username, or null if such doesn't exist.
Parameters:
  procId - the assignment's activity's process instance Id.
Parameters:
  actId - the assignment's activity instance Id.
Parameters:
  username - the assignement's username Specified WfAssignment , or null if does not exist.
throws:
  Exception - If something unexpected happens.



getAssignment
WfAssignment getAssignment(String procId, String assId) throws Exception(Code)
Returns WfAssignment object for given Id, or null if such doesn't exist. NOTE: this method is here only because of standardization (having one method with transaction, and other without), and is not supposed to be used in normal situations - tool agents can call the same method but with additional transaction parameter, and user applications should call the same method but with actId and username parameters instead of assId parameter.
Parameters:
  procId - the assignment's activity's process instance Id.
Parameters:
  assId - the assignment Id. Specified WfAssignment , or null if does not exist.
throws:
  Exception - If something unexpected happens.



getProcess
WfProcess getProcess(String procId) throws Exception(Code)
Returns WfProcess object that has the given Id, or null if such does not exist.
Parameters:
  procId - process instance Id. WfProcess with the given name, or null if does not exist.
throws:
  Exception - If something unexpected happens.



getProcessMgr
WfProcessMgr getProcessMgr(String name) throws Exception(Code)
Returns WfProcessMgr object that has the given name, or null if such does not exist.
Parameters:
  name - WfProcessMgr object name. WfProcessMgr with the given name, or null if does not exist.
throws:
  Exception - If something unexpected happens.



getResource
WfResource getResource(String username) throws Exception(Code)
Returns WfResource object that has the given username, or null if such doesn't exist.
Parameters:
  username - username of WfResource instance. WfResource with the given name, or null if does not exist.
throws:
  Exception - If something unexpected happens.



getResourceObject
WfResource getResourceObject() throws Exception(Code)
Returns WfResource object belonging to the user that has been connected to shark through this interface. This will be the WfResource object that has the same username attribute as the one used in connect() method. After getting this object, client application can present user a list of its assignments that can be retrieved throug this WfResource object. WfResource object belonging to the user.
throws:
  Exception - If something unexpected happens.



getSessionHandle
WMSessionHandle getSessionHandle() throws Exception(Code)



get_iterator_activity
WfActivityIterator get_iterator_activity() throws Exception(Code)
unbound activity iterator
throws:
  Exception -



get_iterator_assignment
WfAssignmentIterator get_iterator_assignment() throws Exception(Code)
unbound assignment iterator
throws:
  Exception -



get_iterator_process
WfProcessIterator get_iterator_process() throws Exception(Code)
unbound process iterator
throws:
  Exception -



get_iterator_processmgr
WfProcessMgrIterator get_iterator_processmgr() throws Exception(Code)
Returns an iterator that can be used to retrieve WfProcessMgr objects that represent appropriate XPDL process definitions, and are used to create new process instances. WfProcessMgrIterator for retrieving WfProcessMgr objects.
throws:
  Exception - If something unexpected happens.



get_iterator_resource
WfResourceIterator get_iterator_resource() throws Exception(Code)
Returns an iterator that can be used to retrieve WfResource objects that represent appropriate shark users. WfResourceIterator for retrieving WfResource objects. that representappropriate shark users.
throws:
  Exception - If something unexpected happens.



get_sequence_processmgr
WfProcessMgr[] get_sequence_processmgr(int max_number) throws Exception(Code)
Returns an array of WfProcessMgr objects.
Parameters:
  max_number - The maximum number of WfProcessMgr instances to be returned. Ifset to 0, all existing instances will be returned (this will be equal tothe number of XPDL process definitions in all packages that are loadedinto engine). Array of specified WfProcessMgr objects.
throws:
  Exception - If something unexpected happens.



get_sequence_resource
WfResource[] get_sequence_resource(int max_number) throws Exception(Code)
Returns an array of WfResource objects.
Parameters:
  max_number - The maximum number of WfResource instances to be returned. If setto 0, all existing instances will be returned. Specified array of WfResource objects.
throws:
  Exception - If something unexpected happens.



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