Java Doc for UserSessionBean.java in  » Workflow-Engines » bonita-v3.1 » hero » session » 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 » bonita v3.1 » hero.session 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   hero.session.UserSessionBean

UserSessionBean
public class UserSessionBean implements SessionBean,EventConstants(Code)
The User Session Bean, is an stateless session bean that provides the user API to get information on Todo list and started activities and to produce events on activities (start, terminate, cancel).
This Session Bean is based on Engine Session Bean: a recursive implementation that manage the previous execution operations and propagates the activity state changes to the activities that are connected to this one.

The User Session Bean API provides information about user projects and activites (project list, todo list and activity list) and also useful information about project instances or user preferences. With this API users can performs his task/activities by using start, terminate and cancel methods and also terminates workflow processes.

The following lines shows a sample code to use this API in your application:


First of all you have to import the User Session files:

import hero.interfaces.UserSessionLocalHome;
import hero.interfaces.UserSessionLocal;
import hero.interfaces.UserSessionHome;
import hero.interfaces.UserSession;
import hero.interfaces.UserSessionUtil;

Now, it is time to create the User Session instance:

Like this if you want to use local interfaces:

UserSessionLocalHome userh = (UserSessionLocalHome)hero.interfaces.UserSessionUtil.getLocalHome();
UserSessionLocal usersession = userh.create();

or like this if you use remote interfaces:

UserSessionHome userh = (UserSessionHome)hero.interfaces.UserSessionUtil.getHome();
UserSession usersession = userh.create();


Now you can call all User Sessions methods...
author:
   Miguel Valdes




Method Summary
public  voidcancelActivity(String projectName, String nodeName)
    
public  voiddeleteUserProperty(String key)
    
public  voidejbActivate()
     Internal Enterprise Java Beans method.
public  voidejbCreate()
     Creates the User Session Bean.
public  voidejbPassivate()
     Internal Enterprise Java Beans method.
public  voidejbRemove()
     Internal Enterprise Java Beans method.
public  CollectiongetActivityList(String projectName)
    
public  CollectiongetActivityListAllInstances()
    
public  CollectiongetActivityListAllInstancesAsPK()
    
public  CollectiongetActivityListAllInstancesByPK(Collection list, int offset, int numrows)
    
public  CollectiongetActivityListAsPK(String projectName)
    
public  CollectiongetActivityListByPK(String projectName, Collection list, int offset, int numrows)
    
public  CollectiongetActivityListByProperty(String key, String value)
    
public  CollectiongetActivityListByPropertyAsPK(String key, String value)
    
public  CollectiongetActivityListByPropertyByPK(String key, String value, Collection list, int offset, int numrows)
    
public  CollectiongetCooperativeList()
     Get user cooperative projects list.
public  CollectiongetCooperativeList(int offset, int numrows)
     Get user cooperative projects list.
public  CollectiongetInstanceNodes(String instanceName, String userName)
    
public  CollectiongetInstancesActivityTerminated(String projectName, String nodeName)
    
public  CollectiongetInstancesActivityTerminatedAsPK(String projectName, String nodeName)
    
public  CollectiongetInstancesActivityTerminatedByPK(String projectName, String nodeName, Collection list, int offset, int numrows)
    
public  CollectiongetInstancesActivityTodoList(String projectName, String nodeName)
    
public  CollectiongetInstancesActivityTodoListAsPK(String projectName, String nodeName)
    
public  CollectiongetInstancesActivityTodoListByPK(String projectName, String nodeName, Collection list, int offset, int numrows)
    
public  CollectiongetInstancesByProperty(String key, String value)
    
public  CollectiongetInstancesByPropertyAsPK(String key, String value)
    
public  CollectiongetInstancesByPropertyByPK(String key, String value, Collection list, int offset, int numrows)
    
public  CollectiongetInstancesByPropertyNames(String key, String value)
    
public  CollectiongetInstancesByPropertyNamesAsPK(String key, String value)
    
public  CollectiongetInstancesByPropertyNamesByPK(String key, String value, Collection list, int offset, int numrows)
    
public  CollectiongetInstancesList()
     Get user instances list.
public  CollectiongetInstancesList(int offset, int numrows)
     Get user instances list.
public  CollectiongetInstancesListNames()
     Get instances list names for this user.
public  CollectiongetInstancesListNames(int offset, int numrows)
     Get instances list names for this user.
public  CollectiongetModelInstancesTerminated(String projectName)
    
public  CollectiongetModelInstancesTerminated(String projectName, int offset, int numrows)
    
public  CollectiongetModelInstancesTodoList(String projectName)
    
public  CollectiongetModelInstancesTodoList(String projectName, int offset, int numrows)
    
public  CollectiongetModelList()
     Get user model list.
public  CollectiongetModelList(int offset, int numrows)
    
public  CollectiongetModels()
     Get available workflow models.
public  CollectiongetModelsAsPK()
     Get available workflow models.
public  CollectiongetModelsByPK(Collection list, int offset, int numrows)
     Get available workflow models.
public  CollectiongetModelsLight()
     Get available workflow models.
public  CollectiongetModelsLightAll()
     Get available workflow models.
public  CollectiongetModelsLightAsPK()
     Get available workflow models.
public  CollectiongetModelsLightByPK(Collection list, int offset, int numrows)
     Get available workflow models.
public  BnNodeValuegetNode(String projectName, String nodeName)
    
public  CollectiongetProjectInstances(String projectName, String version)
    
public  CollectiongetProjectInstances(String projectName)
    
public  CollectiongetProjectInstancesAsPK(String projectName, String version)
    
public  CollectiongetProjectInstancesAsPK(String projectName)
    
public  CollectiongetProjectInstancesByPK(String projectName, Collection list, int offset, int numrows)
    
public  CollectiongetProjectInstancesNames(String projectName, String version)
    
public  CollectiongetProjectInstancesNames(String projectName)
    
public  CollectiongetProjectInstancesNamesAsPK(String projectName, String version)
    
public  CollectiongetProjectInstancesNamesAsPK(String projectName)
    
public  CollectiongetProjectInstancesNamesByPK(String projectName, Collection list, int offset, int numrows)
    
public  CollectiongetProjectList()
     Get user project list.
public  CollectiongetProjectListNames()
    
public  CollectiongetProjectsByProperty(String key, String value)
    
public  CollectiongetProjectsByPropertyAsPK(String key, String value)
    
public  CollectiongetProjectsByPropertyByPK(String key, String value, Collection list, int offset, int numrows)
    
public  CollectiongetProjectsByPropertyNames(String key, String value)
    
public  CollectiongetProjectsByPropertyNamesAsPK(String key, String value)
    
public  CollectiongetProjectsByPropertyNamesByPK(String key, String value, Collection list, int offset, int numrows)
    
public  CollectiongetTerminatedListAllInstances()
     Obtain terminated user activities for all instances/cooperative projects.
public  CollectiongetTerminatedListAllInstancesAsPK()
     Obtain a subset of the terminated user activities for all instances/cooperative projects.
public  CollectiongetTerminatedListAllInstancesByPK(Collection list, int offset, int numrows)
     Obtain a subset of the terminated user activities for all instances/cooperative projects.
public  CollectiongetToDoList(String projectName)
    
public  CollectiongetToDoListAllInstances()
    
public  CollectiongetToDoListAllInstancesAsPK()
    
public  CollectiongetToDoListAllInstancesByPK(Collection list, int offset, int numrows)
    
public  CollectiongetToDoListAsPK(String projectName)
    
public  CollectiongetToDoListByActivityProperty(String key, String value)
    
public  CollectiongetToDoListByActivityPropertyAsPK(String key, String value)
    
public  CollectiongetToDoListByActivityPropertyByPK(String key, String value, Collection list, int offset, int numrows)
    
public  CollectiongetToDoListByPK(String projectName, Collection list, int offset, int numrows)
    
public  CollectiongetToDoListByProperties(int operation, Hashtable properties)
     Obtain todo user activities matching with project properties (ready and anticipable state activities) a BnNodeValue Collection - the list of todo activities matching to property value.
public  CollectiongetToDoListByPropertiesAsPK(int operation, Hashtable properties)
     Obtain todo user activities matching with project properties (ready and anticipable state activities) a BnNodeValue Collection - the list of todo activities matching to property value.
public  CollectiongetToDoListByPropertiesByPK(int operation, Hashtable properties, Collection list, int offset, int numrows)
     Obtain todo user activities matching with project properties (ready and anticipable state activities) a BnNodeValue Collection - the list of todo activities matching to property value.
public  CollectiongetToDoListByProperty(String key, String value)
    
public  CollectiongetToDoListByPropertyAsPK(String key, String value)
    
public  CollectiongetToDoListByPropertyByPK(String key, String value, Collection list, int offset, int numrows)
    
public  StringgetUser()
    
public  CollectiongetUserInstancesProject()
    
public  CollectiongetUserInstancesProject(int offset, int numrows)
    
public  CollectiongetUserInstancesProjectNodes(String projectName)
    
public  CollectiongetUserInstancesProjectNodesAsPK(String projectName)
    
public  CollectiongetUserInstancesProjectNodesByPK(String projectName, Collection list, int offset, int numrows)
    
public  StringgetUserJabber()
    
public  BnUserLightValuegetUserLightValue()
    
public  StringgetUserMail()
     Get the mail of this user from Bonita database.
public  StringgetUserModelVersion(String proj)
    
public  StringgetUserPassword()
    
public  CollectiongetUserProperties()
    
public  CollectiongetUserRealInstancesProject()
    
public  voidremoveInstance(String instName)
    
public  voidremoveProject(String projectName)
    
public  voidremoveProject(String projectName, String version)
    
public  voidsetSessionContext(javax.ejb.SessionContext context)
     Internal Enterprise Java Beans method.
public  voidsetUserMail(String userName, String mail)
     Set the mail of this user into Bonita database.
public  voidsetUserProperty(String key, String value)
    
public  voidstartActivity(String projectName, String nodeName)
    
public  voidterminate(String projectName)
    
public  voidterminateActivity(String projectName, String nodeName)
    



Method Detail
cancelActivity
public void cancelActivity(String projectName, String nodeName) throws HeroException(Code)
Tries to cancel an activity (when activity is executing or anticipating)
Parameters:
  projectName - the name of the project
Parameters:
  nodeName - the name of the node



deleteUserProperty
public void deleteUserProperty(String key) throws HeroException(Code)
Delete a property of a user
Parameters:
  key - the key of the property



ejbActivate
public void ejbActivate()(Code)
Internal Enterprise Java Beans method.



ejbCreate
public void ejbCreate() throws CreateException(Code)
Creates the User Session Bean. This method is the first one to invoke in order to use UserSession API. If the user is not authorized this method throws an exception.
throws:
  CreateException -



ejbPassivate
public void ejbPassivate()(Code)
Internal Enterprise Java Beans method.



ejbRemove
public void ejbRemove()(Code)
Internal Enterprise Java Beans method.



getActivityList
public Collection getActivityList(String projectName) throws HeroException(Code)
Obtain all user activities from specific project (executing and anticipating state)
Parameters:
  projectName - the name of the project a String Collectio - the list of active activities of the user for a project
throws:
  HeroException -



getActivityListAllInstances
public Collection getActivityListAllInstances() throws HeroException(Code)
Obtain executing user activities for all instances/cooperative projects (executing and anticipating state) a BnNodeValue Collection - the list of executing activities ot the user for all instances
throws:
  HeroException -



getActivityListAllInstancesAsPK
public Collection getActivityListAllInstancesAsPK() throws HeroException(Code)
Obtain executing user activities for all instances/cooperative projects (executing and anticipating state) a BnNodeValue Collection - the list of executing activities ot the user for all instances
throws:
  HeroException -



getActivityListAllInstancesByPK
public Collection getActivityListAllInstancesByPK(Collection list, int offset, int numrows) throws HeroException(Code)
Obtain executing user activities for all instances/cooperative projects (executing and anticipating state) a BnNodeValue Collection - the list of executing activities ot the user for all instances
throws:
  HeroException -



getActivityListAsPK
public Collection getActivityListAsPK(String projectName) throws HeroException(Code)
Obtain all user activities from specific project (executing and anticipating state)
Parameters:
  projectName - the name of the project a String Collectio - the list of active activities of the user for a project
throws:
  HeroException -



getActivityListByPK
public Collection getActivityListByPK(String projectName, Collection list, int offset, int numrows) throws HeroException(Code)
Obtain all user activities from specific project (executing and anticipating state)
Parameters:
  projectName - the name of the project a String Collectio - the list of active activities of the user for a project
throws:
  HeroException -



getActivityListByProperty
public Collection getActivityListByProperty(String key, String value) throws HeroException(Code)
Obtain executing user activities matching with property value (executing and anticipating state activities) a BnNodeValue Collection - the list of executing activities matching to property value
Parameters:
  key - the key of the property
Parameters:
  value - the value of the property
throws:
  HeroException -



getActivityListByPropertyAsPK
public Collection getActivityListByPropertyAsPK(String key, String value) throws HeroException(Code)
Obtain executing user activities matching with property value (executing and anticipating state activities) a BnNodeValue Collection - the list of executing activities matching to property value
Parameters:
  key - the key of the property
Parameters:
  value - the value of the property
throws:
  HeroException -



getActivityListByPropertyByPK
public Collection getActivityListByPropertyByPK(String key, String value, Collection list, int offset, int numrows) throws HeroException(Code)
Obtain executing user activities matching with property value (executing and anticipating state activities) a BnNodeValue Collection - the list of executing activities matching to property value
Parameters:
  key - the key of the property
Parameters:
  value - the value of the property
throws:
  HeroException -



getCooperativeList
public Collection getCooperativeList() throws HeroException(Code)
Get user cooperative projects list. This method is equivalent to getProjectList but it only returns the current cooperative projects of the user. a Collection of BnProjectLightValue objects - the cooperative projects list of the user
throws:
  HeroException -



getCooperativeList
public Collection getCooperativeList(int offset, int numrows) throws HeroException(Code)
Get user cooperative projects list. This method is equivalent to getProjectList but it only returns the current cooperative projects of the user. a Collection of BnProjectLightValue objects - the cooperative projects list of the user
throws:
  HeroException -



getInstanceNodes
public Collection getInstanceNodes(String instanceName, String userName) throws HeroException(Code)
Get ready and executing activities for a user instance
Parameters:
  instanceName - the project name
Parameters:
  userName - the caller's name a String Collection - the names of activities
throws:
  HeroException -



getInstancesActivityTerminated
public Collection getInstancesActivityTerminated(String projectName, String nodeName) throws HeroException(Code)
Get activities model instances terminated by this user
Parameters:
  projectName - the name of the project
Parameters:
  nodeName - the name of the node a BnNodeLightValue Collection - the values
throws:
  HeroException -



getInstancesActivityTerminatedAsPK
public Collection getInstancesActivityTerminatedAsPK(String projectName, String nodeName) throws HeroException(Code)
Get subset of activities model instances terminated by this user
Parameters:
  projectName - the name of the project
Parameters:
  nodeName - the name of the node a BnNodeLightValue Collection - the values
throws:
  HeroException -



getInstancesActivityTerminatedByPK
public Collection getInstancesActivityTerminatedByPK(String projectName, String nodeName, Collection list, int offset, int numrows) throws HeroException(Code)
Get subset of activities model instances terminated by this user
Parameters:
  projectName - the name of the project
Parameters:
  nodeName - the name of the node a BnNodeLightValue Collection - the values
throws:
  HeroException -



getInstancesActivityTodoList
public Collection getInstancesActivityTodoList(String projectName, String nodeName) throws HeroException(Code)
Get activities model instances assigned to this user
Parameters:
  projectName - the name of the project
Parameters:
  nodeName - the name of the node a BnNodeLightValue Collection - the values
throws:
  HeroException -



getInstancesActivityTodoListAsPK
public Collection getInstancesActivityTodoListAsPK(String projectName, String nodeName) throws HeroException(Code)
Get subset of activities model instances assigned to this user
Parameters:
  projectName - the name of the project
Parameters:
  nodeName - the name of the node a BnNodeLightValue Collection - the values
throws:
  HeroException -



getInstancesActivityTodoListByPK
public Collection getInstancesActivityTodoListByPK(String projectName, String nodeName, Collection list, int offset, int numrows) throws HeroException(Code)
Get subset of activities model instances assigned to this user
Parameters:
  projectName - the name of the project
Parameters:
  nodeName - the name of the node a BnNodeLightValue Collection - the values
throws:
  HeroException -



getInstancesByProperty
public Collection getInstancesByProperty(String key, String value) throws HeroException(Code)
Get Workflow instances from a property a BnProjectValue Collection - list of project instances
Parameters:
  projectName - the name of the project



getInstancesByPropertyAsPK
public Collection getInstancesByPropertyAsPK(String key, String value) throws HeroException(Code)
Get Workflow instances from a property a BnProjectValue Collection - list of project instances
Parameters:
  projectName - the name of the project



getInstancesByPropertyByPK
public Collection getInstancesByPropertyByPK(String key, String value, Collection list, int offset, int numrows) throws HeroException(Code)
Get Workflow instances from a property a BnProjectValue Collection - list of project instances
Parameters:
  projectName - the name of the project



getInstancesByPropertyNames
public Collection getInstancesByPropertyNames(String key, String value) throws HeroException(Code)
Get Workflow instances from a property a String Collection - list of project instances
Parameters:
  projectName - the name of the project



getInstancesByPropertyNamesAsPK
public Collection getInstancesByPropertyNamesAsPK(String key, String value) throws HeroException(Code)
Get Workflow instances from a property a String Collection - list of project instances
Parameters:
  projectName - the name of the project



getInstancesByPropertyNamesByPK
public Collection getInstancesByPropertyNamesByPK(String key, String value, Collection list, int offset, int numrows) throws HeroException(Code)
Get Workflow instances from a property a String Collection - list of project instances
Parameters:
  projectName - the name of the project



getInstancesList
public Collection getInstancesList() throws HeroException(Code)
Get user instances list. This method is equivalent to getProjectList but it only returns the current instances of the user. a Collection of BnProjectLightValue objects - the projects list of the user
throws:
  HeroException -



getInstancesList
public Collection getInstancesList(int offset, int numrows) throws HeroException(Code)
Get user instances list. This method is equivalent to getProjectList but it only returns the current instances of the user. a Collection of BnProjectLightValue objects - the projects list of the user
throws:
  HeroException -



getInstancesListNames
public Collection getInstancesListNames() throws HeroException(Code)
Get instances list names for this user. This method is equivalent to getProjectListNames but it only returns the current instances of the user. a String Collection - the projects list names of the user
throws:
  HeroException -



getInstancesListNames
public Collection getInstancesListNames(int offset, int numrows) throws HeroException(Code)
Get instances list names for this user. This method is equivalent to getProjectListNames but it only returns the current instances of the user. a String Collection - the projects list names of the user
throws:
  HeroException -



getModelInstancesTerminated
public Collection getModelInstancesTerminated(String projectName) throws HeroException(Code)
Get activities names of the model instances terminated by this user
Parameters:
  projectName - the name of the project a String Collection - the names of activities
throws:
  HeroException -



getModelInstancesTerminated
public Collection getModelInstancesTerminated(String projectName, int offset, int numrows) throws HeroException(Code)
Get activities names of the model instances terminated by this user
Parameters:
  projectName - the name of the project a String Collection - the names of activities
throws:
  HeroException -



getModelInstancesTodoList
public Collection getModelInstancesTodoList(String projectName) throws HeroException(Code)
Get activities names of the model instances assigned to this user
Parameters:
  projectName - the name of the project a String Collection - the names of activities
throws:
  HeroException -



getModelInstancesTodoList
public Collection getModelInstancesTodoList(String projectName, int offset, int numrows) throws HeroException(Code)
Get activities names of the model instances assigned to this user
Parameters:
  projectName - the name of the project a String Collection - the names of activities
throws:
  HeroException -



getModelList
public Collection getModelList() throws HeroException(Code)
Get user model list. This method is equivalent to getProjectList but it only returns the current models of the user. a Collection of BnProjectLightValue objects - the model list of the user
throws:
  HeroException -



getModelList
public Collection getModelList(int offset, int numrows) throws HeroException(Code)



getModels
public Collection getModels() throws HeroException(Code)
Get available workflow models. This method will be improved with users restrictions a Collection of BnProjectLightValue objects - the model list to be instantiated
throws:
  HeroException -



getModelsAsPK
public Collection getModelsAsPK() throws HeroException(Code)
Get available workflow models. This method will be improved with users restrictions a Collection of BnProjectLightValue objects - the model list to be instantiated
throws:
  HeroException -



getModelsByPK
public Collection getModelsByPK(Collection list, int offset, int numrows) throws HeroException(Code)
Get available workflow models. This method will be improved with users restrictions a Collection of BnProjectLightValue objects - the model list to be instantiated
throws:
  HeroException -



getModelsLight
public Collection getModelsLight() throws HeroException(Code)
Get available workflow models. This method is like getModels() except that no initiatorMapper check is performed. a Collection of BnProjectLightValue objects - the model list
throws:
  HeroException -



getModelsLightAll
public Collection getModelsLightAll() throws HeroException(Code)
Get available workflow models. This method is like getModels() except that no initiatorMapper check is performed. a Collection of BnProjectLightValue objects - the model list
throws:
  HeroException -



getModelsLightAsPK
public Collection getModelsLightAsPK() throws HeroException(Code)
Get available workflow models. This method is like getModels() except that no initiatorMapper check is performed. a Collection of BnProjectLightValue objects - the model list
throws:
  HeroException -



getModelsLightByPK
public Collection getModelsLightByPK(Collection list, int offset, int numrows) throws HeroException(Code)
Get available workflow models. This method is like getModels() except that no initiatorMapper check is performed. a Collection of BnProjectLightValue objects - the model list
throws:
  HeroException -



getNode
public BnNodeValue getNode(String projectName, String nodeName) throws HeroException(Code)
Get Node Value from a specific project a NodeValue object - get node information
Parameters:
  projectName - the name of the project
Parameters:
  nodeName - the name of the node



getProjectInstances
public Collection getProjectInstances(String projectName, String version) throws HeroException(Code)
Get Workflow instances of this project a BnProjectValue Collection - list of project instances
Parameters:
  projectName - the name of the project
Parameters:
  version - the name of the version



getProjectInstances
public Collection getProjectInstances(String projectName) throws HeroException(Code)
Get Workflow instances of this project a BnProjectValue Collection - list of project instances
Parameters:
  projectName - the name of the project



getProjectInstancesAsPK
public Collection getProjectInstancesAsPK(String projectName, String version) throws HeroException(Code)
Get Workflow instances of this project a BnProjectValue Collection - list of project instances
Parameters:
  projectName - the name of the project
Parameters:
  version - the name of the version



getProjectInstancesAsPK
public Collection getProjectInstancesAsPK(String projectName) throws HeroException(Code)
Get Workflow instances of this project a BnProjectValue Collection - list of project instances
Parameters:
  projectName - the name of the project



getProjectInstancesByPK
public Collection getProjectInstancesByPK(String projectName, Collection list, int offset, int numrows) throws HeroException(Code)
Get Workflow instances of this project a BnProjectValue Collection - list of project instances
Parameters:
  projectName - the name of the project



getProjectInstancesNames
public Collection getProjectInstancesNames(String projectName, String version) throws HeroException(Code)
Get workflow instances names of this project
Parameters:
  projectName - the name of the project
Parameters:
  version - the name of the version a String Collection - the names of project instances
throws:
  HeroException -



getProjectInstancesNames
public Collection getProjectInstancesNames(String projectName) throws HeroException(Code)
Get workflow instances names of this project
Parameters:
  projectName - the name of the project a String Collection - the names of project instances
throws:
  HeroException -



getProjectInstancesNamesAsPK
public Collection getProjectInstancesNamesAsPK(String projectName, String version) throws HeroException(Code)
Get workflow instances names of this project
Parameters:
  projectName - the name of the project
Parameters:
  version - the name of the version a String Collection - the names of project instances
throws:
  HeroException -



getProjectInstancesNamesAsPK
public Collection getProjectInstancesNamesAsPK(String projectName) throws HeroException(Code)
Get workflow instances names of this project
Parameters:
  projectName - the name of the project a String Collection - the names of project instances
throws:
  HeroException -



getProjectInstancesNamesByPK
public Collection getProjectInstancesNamesByPK(String projectName, Collection list, int offset, int numrows) throws HeroException(Code)
Get workflow instances names of this project
Parameters:
  projectName - the name of the project a String Collection - the names of project instances
throws:
  HeroException -



getProjectList
public Collection getProjectList() throws HeroException(Code)
Get user project list. Workflow processes associated to this user (models/cooperative/instances) a Collection of BnProjectLightValue objects - the projects list of the user
throws:
  HeroException -



getProjectListNames
public Collection getProjectListNames() throws HeroException(Code)
Get project list names for this user (models/cooperative/instances) a String Collection - the projects list names of the user
throws:
  HeroException -



getProjectsByProperty
public Collection getProjectsByProperty(String key, String value) throws HeroException(Code)
Get Workflow projects from a property a BnProjectValue Collection - list of projects
Parameters:
  projectName - the name of the project



getProjectsByPropertyAsPK
public Collection getProjectsByPropertyAsPK(String key, String value) throws HeroException(Code)
Get Workflow projects from a property a BnProjectValue Collection - list of projects
Parameters:
  projectName - the name of the project



getProjectsByPropertyByPK
public Collection getProjectsByPropertyByPK(String key, String value, Collection list, int offset, int numrows) throws HeroException(Code)
Get Workflow projects from a property a BnProjectValue Collection - list of projects
Parameters:
  projectName - the name of the project



getProjectsByPropertyNames
public Collection getProjectsByPropertyNames(String key, String value) throws HeroException(Code)
Get Workflow projects from a property a String Collection - list of project names
Parameters:
  projectName - the name of the project



getProjectsByPropertyNamesAsPK
public Collection getProjectsByPropertyNamesAsPK(String key, String value) throws HeroException(Code)
Get Workflow projects from a property a String Collection - list of project names
Parameters:
  projectName - the name of the project



getProjectsByPropertyNamesByPK
public Collection getProjectsByPropertyNamesByPK(String key, String value, Collection list, int offset, int numrows) throws HeroException(Code)
Get Workflow projects from a property a String Collection - list of project names
Parameters:
  projectName - the name of the project



getTerminatedListAllInstances
public Collection getTerminatedListAllInstances() throws HeroException(Code)
Obtain terminated user activities for all instances/cooperative projects. a BnNodeValue Collection - the list of terminated activities ot the user for all instances
throws:
  HeroException -



getTerminatedListAllInstancesAsPK
public Collection getTerminatedListAllInstancesAsPK() throws HeroException(Code)
Obtain a subset of the terminated user activities for all instances/cooperative projects. a BnNodeValue Collection - the list of terminated activities ot the user for all instances
throws:
  HeroException -



getTerminatedListAllInstancesByPK
public Collection getTerminatedListAllInstancesByPK(Collection list, int offset, int numrows) throws HeroException(Code)
Obtain a subset of the terminated user activities for all instances/cooperative projects. a BnNodeValue Collection - the list of terminated activities ot the user for all instances
throws:
  HeroException -



getToDoList
public Collection getToDoList(String projectName) throws HeroException(Code)
Obtain all user activities from specific project (ready and anticipable state)
Parameters:
  projectName - the name of the project a String Collection - the list of todo activities of the user for a project
throws:
  HeroException -



getToDoListAllInstances
public Collection getToDoListAllInstances() throws HeroException(Code)
Obtain todo user activities for all instances/cooperative projects (ready and anticipable state) a BnNodeValue Collection - the list of todo activities of the user for all instances
throws:
  HeroException -



getToDoListAllInstancesAsPK
public Collection getToDoListAllInstancesAsPK() throws HeroException(Code)
Obtain todo user activities for all instances/cooperative projects (ready and anticipable state) a BnNodeValue Collection - the list of todo activities of the user for all instances
throws:
  HeroException -



getToDoListAllInstancesByPK
public Collection getToDoListAllInstancesByPK(Collection list, int offset, int numrows) throws HeroException(Code)
Obtain todo user activities for all instances/cooperative projects (ready and anticipable state) a BnNodeValue Collection - the list of todo activities of the user for all instances
throws:
  HeroException -



getToDoListAsPK
public Collection getToDoListAsPK(String projectName) throws HeroException(Code)
Obtain all user activities from specific project (ready and anticipable state)
Parameters:
  projectName - the name of the project a String Collection - the list of todo activities of the user for a project
throws:
  HeroException -



getToDoListByActivityProperty
public Collection getToDoListByActivityProperty(String key, String value) throws HeroException(Code)
Obtain todo user activities matching with activity property value (ready and anticipable state activities) a BnNodeValue Collection - the list of todo activities matching to activity property value
Parameters:
  key - the key of the property
Parameters:
  value - the value of the property
throws:
  HeroException -



getToDoListByActivityPropertyAsPK
public Collection getToDoListByActivityPropertyAsPK(String key, String value) throws HeroException(Code)
Obtain todo user activities matching with activity property value (ready and anticipable state activities) a BnNodeValue Collection - the list of todo activities matching to activity property value
Parameters:
  key - the key of the property
Parameters:
  value - the value of the property
throws:
  HeroException -



getToDoListByActivityPropertyByPK
public Collection getToDoListByActivityPropertyByPK(String key, String value, Collection list, int offset, int numrows) throws HeroException(Code)
Obtain todo user activities matching with activity property value (ready and anticipable state activities) a BnNodeValue Collection - the list of todo activities matching to activity property value
Parameters:
  key - the key of the property
Parameters:
  value - the value of the property
throws:
  HeroException -



getToDoListByPK
public Collection getToDoListByPK(String projectName, Collection list, int offset, int numrows) throws HeroException(Code)
Obtain all user activities from specific project (ready and anticipable state)
Parameters:
  projectName - the name of the project a String Collection - the list of todo activities of the user for a project
throws:
  HeroException -



getToDoListByProperties
public Collection getToDoListByProperties(int operation, Hashtable properties) throws HeroException(Code)
Obtain todo user activities matching with project properties (ready and anticipable state activities) a BnNodeValue Collection - the list of todo activities matching to property value. This methodis oriented to administrative workflow (workflow instances) and supports one, two or three properties (key/value pairs).Operation constants values: hero.interfaces.Constants.AND, hero.interfaces.Constants.OR
Parameters:
  operation - AND/OR operations are allowed.
Parameters:
  properties - Hashtable containing the key/value elements
throws:
  HeroException -



getToDoListByPropertiesAsPK
public Collection getToDoListByPropertiesAsPK(int operation, Hashtable properties) throws HeroException(Code)
Obtain todo user activities matching with project properties (ready and anticipable state activities) a BnNodeValue Collection - the list of todo activities matching to property value. This methodis oriented to administrative workflow (workflow instances) and supports one, two or three properties (key/value pairs).Operation constants values: hero.interfaces.Constants.AND, hero.interfaces.Constants.OR
Parameters:
  operation - AND/OR operations are allowed.
Parameters:
  properties - Hashtable containing the key/value elements
throws:
  HeroException -



getToDoListByPropertiesByPK
public Collection getToDoListByPropertiesByPK(int operation, Hashtable properties, Collection list, int offset, int numrows) throws HeroException(Code)
Obtain todo user activities matching with project properties (ready and anticipable state activities) a BnNodeValue Collection - the list of todo activities matching to property value. This methodis oriented to administrative workflow (workflow instances) and supports one, two or three properties (key/value pairs).Operation constants values: hero.interfaces.Constants.AND, hero.interfaces.Constants.OR
Parameters:
  operation - AND/OR operations are allowed.
Parameters:
  properties - Hashtable containing the key/value elements
throws:
  HeroException -



getToDoListByProperty
public Collection getToDoListByProperty(String key, String value) throws HeroException(Code)
Obtain todo user activities matching with project property value (ready and anticipable state activities) a BnNodeValue Collection - the list of todo activities matching to project property value
Parameters:
  key - the key of the property
Parameters:
  value - the value of the property
throws:
  HeroException -



getToDoListByPropertyAsPK
public Collection getToDoListByPropertyAsPK(String key, String value) throws HeroException(Code)
Obtain todo user activities matching with project property value (ready and anticipable state activities) a BnNodeValue Collection - the list of todo activities matching to project property value
Parameters:
  key - the key of the property
Parameters:
  value - the value of the property
throws:
  HeroException -



getToDoListByPropertyByPK
public Collection getToDoListByPropertyByPK(String key, String value, Collection list, int offset, int numrows) throws HeroException(Code)
Obtain todo user activities matching with project property value (ready and anticipable state activities) a BnNodeValue Collection - the list of todo activities matching to project property value
Parameters:
  key - the key of the property
Parameters:
  value - the value of the property
throws:
  HeroException -



getUser
public String getUser()(Code)
Get the user name a String - get user name



getUserInstancesProject
public Collection getUserInstancesProject() throws HeroException(Code)
Get models names which have ongoing instances for this user a String Collection - the names of workflow models
throws:
  HeroException -



getUserInstancesProject
public Collection getUserInstancesProject(int offset, int numrows) throws HeroException(Code)
Get models names which have ongoing instances for this user a String Collection - the names of workflow models
throws:
  HeroException -



getUserInstancesProjectNodes
public Collection getUserInstancesProjectNodes(String projectName) throws HeroException(Code)
Get ready, anticipable and executing activities for current user instances
Parameters:
  projectName - the project name a String Collection - the names of activities
throws:
  HeroException -



getUserInstancesProjectNodesAsPK
public Collection getUserInstancesProjectNodesAsPK(String projectName) throws HeroException(Code)
Get a subset of the ready, anticipable and executing activities for current user instances
Parameters:
  projectName - the project name a String Collection - the names of activities
throws:
  HeroException -



getUserInstancesProjectNodesByPK
public Collection getUserInstancesProjectNodesByPK(String projectName, Collection list, int offset, int numrows) throws HeroException(Code)
Get a subset of the ready, anticipable and executing activities for current user instances
Parameters:
  projectName - the project name a String Collection - the names of activities
throws:
  HeroException -



getUserJabber
public String getUserJabber() throws HeroException(Code)
Get the user jabber address a String - get user jabber address



getUserLightValue
public BnUserLightValue getUserLightValue() throws HeroException(Code)
Get the user light value a BnUserLightValue object - get user information



getUserMail
public String getUserMail() throws HeroException(Code)
Get the mail of this user from Bonita database.
throws:
  HeroException -



getUserModelVersion
public String getUserModelVersion(String proj) throws HeroException(Code)
Get model version for this user and project a String - the version of workflow model
throws:
  HeroException -



getUserPassword
public String getUserPassword() throws HeroException(Code)
Get the user password a String - get user password



getUserProperties
public Collection getUserProperties() throws HeroException(Code)
Get User properties a BnUserPropertyValue Collection - list of user properties



getUserRealInstancesProject
public Collection getUserRealInstancesProject() throws HeroException(Code)
Get instance names for this user a String Collection - the names of workflow instances
throws:
  HeroException -



removeInstance
public void removeInstance(String instName) throws HeroException(Code)
Delete a Workflow project
Parameters:
  instName - the name of the instance
throws:
  HeroException -



removeProject
public void removeProject(String projectName) throws HeroException(Code)
Delete a Workflow project
Parameters:
  projectName - the name of the project
throws:
  HeroException -



removeProject
public void removeProject(String projectName, String version) throws HeroException(Code)
Delete a Workflow project
Parameters:
  projectName - the name of the project
throws:
  HeroException -



setSessionContext
public void setSessionContext(javax.ejb.SessionContext context)(Code)
Internal Enterprise Java Beans method.



setUserMail
public void setUserMail(String userName, String mail) throws HeroException(Code)
Set the mail of this user into Bonita database.
Parameters:
  userName - the name of the user
Parameters:
  userName - the mail of the user
throws:
  HeroException -



setUserProperty
public void setUserProperty(String key, String value) throws HeroException(Code)
Set a property of a user
Parameters:
  key - the key of the property
Parameters:
  value - the name of the property



startActivity
public void startActivity(String projectName, String nodeName) throws HeroException(Code)
Tries to start an activity (when activity state is ready or anticipable)
Parameters:
  projectName - the name of the project
Parameters:
  nodeName - the name of the node



terminate
public void terminate(String projectName) throws HeroException(Code)
Tries to terminate a project (only when all project activities are terminated)
Parameters:
  projectName - the name of the project
Parameters:
  version - the name of the instance
throws:
  HeroException -



terminateActivity
public void terminateActivity(String projectName, String nodeName) throws HeroException(Code)
Tries to terminate an activity (when activity state is executing or anticipating)
Parameters:
  projectName - the name of the project
Parameters:
  nodeName - the name of the node



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.