|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthero.session.ProjectSessionBean
Project Session Bean is an stateful session bean that provides the interface for workflow process
definition. By means of this API we can create workflow processes, project activities, transitions between activities ,
users and roles, properties, hooks, external agents...
A Bonita Workflow process is composed by the activities (nodes) and the connections between these
activities (edges). For each project, the administrator/s set the list of responsibles to execute these
activites (users and roles). In the same way, the Project Session Bean API offers a great number of
functionalities for working with activities behaviors (hooks) and workflow relevant data (properties).
This API can be used on different contexts depending on the needs of your application, so you can instantiate
an existing project in order to perform set, get, update and remove operations, you can create a new workflow
project (by instantiating a project that does not exists), you can clone an existing project or creates a
new workflow instante of a project.
The following lines shows a sample code to use this API in your application:
First of all you have to import the Project Session files:
import hero.interfaces.ProjectSessionLocalHome;
import hero.interfaces.ProjectSessionLocal;
import hero.interfaces.ProjectSessionHome;
import hero.interfaces.ProjectSession;
import hero.interfaces.ProjectSessionUtil;
Now, it is time to create the Project Session instance:
Like this if you want to use local interfaces:
ProjectSessionLocalHome projecth = (ProjectSessionLocalHome)hero.interfaces.ProjectSessionUtil.getLocalHome();
ProjectSessionLocal projectsession = projecth.create();
or like this if you use remote interfaces:
ProjectSessionHome userh = (ProjectSessionHome)hero.interfaces.ProjectSessionUtil.getHome();
ProjectSession projectsession = projecth.create();
- If you want to use Project Session API for a specific project, you have to init this project.
Depending of the workflow process type you want, use:
projectsession.initProject("yourProject"); // for cooperative projects
or
projectsession.initModel("yourProject"); // for workflow models
- In order to clone an existing project, you have to call the initProject method:
projectsession.initProject("Project","CloneProject");
- If you want to instantiate a project, you have to do the following:
projectsession.instantiateProject("Project");
Now you can use Project Session methods...
Field Summary |
Fields inherited from interface hero.util.EventConstants |
ADDEDGE, ADDITERATION, ADDNODE, ADDROLE, ADDUSERPROJECT, ANTICIPATING, CANCELED, CHANGEROLE, DELETEEDGE, DELETENODE, DELETEPROJECT, EDGE, EDGENAME, EVENT, FROM, ITERATION, LOG, NODE, NODEDEADLINE, NODEDEADLINES, NODEIN, NODENAME, NODEOUT, NODESTATE, NODETYPE, PROJECT, PROJECTNAME, READYINITIAL, ROLE, ROLENAME, SETEDGESTATE, SETNODEDEADLINE, SETNODEDEADLINES, SETNODEEXECUTOR, SETNODESTATE, SETUSERROLE, START, TERMINATED, TO, UNSETUSERROLE, USER, USERNAME, USERROLE |
Constructor Summary | |
ProjectSessionBean()
|
Method Summary | |
void |
activeProcess()
Active a workflow process (model/cooperative) |
void |
addAgent(java.lang.String name)
Add an Agent to the Project |
java.lang.String |
addAgentEdge(java.lang.String in,
java.lang.String out)
Add an AgentEdge to the Project [in] ---- [out] |
java.lang.String |
addEdge(java.lang.String in,
java.lang.String out)
Add an edge between two nodes of the project [in] ---- [out]. |
void |
addEdge(java.lang.String name,
java.lang.String in,
java.lang.String out)
Add an edge to the project. |
void |
addHook(java.lang.String hookName,
java.lang.String eventName,
int hookType)
Add hook to project. |
void |
addInitiatorMapper(java.lang.String mapperName,
int mapperType)
Add/Update a mapper for the INITIATOR role. |
void |
addInterHook(java.lang.String hookName,
java.lang.String eventName,
int hookType,
java.lang.String value)
Add interhook to the project. |
void |
addIteration(java.lang.String from,
java.lang.String to,
java.lang.String condition)
Add a new iteration between two nodes. |
void |
addNode(java.lang.String name,
int nodeType)
Add a node to the project. |
void |
addNodeHook(java.lang.String nodeName,
java.lang.String hookName,
java.lang.String eventName,
int hookType)
Add hook to a node. |
void |
addNodeInterHook(java.lang.String nodeName,
java.lang.String hookName,
java.lang.String eventName,
int hookType,
java.lang.String value)
Add interhook to a node. |
void |
addNodePerformerAssign(java.lang.String nodeName,
java.lang.String performerAssignName,
int performerAssignType,
java.lang.String propertyName)
Add/Update an existing performerAssign to the node. |
void |
addNodeSubProcess(java.lang.String name,
java.lang.String projectName)
Add a subProcess node to the project. |
void |
addRole(java.lang.String roleName,
java.lang.String description)
Add a role to the project. |
void |
addRoleMapper(java.lang.String roleName,
java.lang.String mapperName,
int mapperType)
Add/Update an existing mapper to the role. |
void |
addUser(java.lang.String userName)
Add a user to this project (This user must exist at bonita database) |
void |
checkModelDefinition()
Checks if the project model is correctly defined. |
boolean |
containsUser(java.lang.String userName)
Test if the project contains this user |
void |
copyEdge(java.lang.String nodeName,
BnNodeLocal inNode,
hero.util.values.BonitaEdgeValue edge)
Copy node edge. |
void |
copyIteration(java.lang.String from,
java.lang.String to,
java.lang.String condition)
Internal method used in processes instantiation. |
void |
copyNode(java.lang.String nodeName,
hero.util.values.BonitaNodeValue node)
Copy node. |
void |
deleteEdge(java.lang.String name)
Delete an edge to the project. |
void |
deleteHook(java.lang.String hookName)
Detete a hook. |
void |
deleteInterHook(java.lang.String interHookName)
Detete a interHook of this project. |
void |
deleteIteration(java.lang.String from,
java.lang.String to)
Delete an iteration between two nodes. |
void |
deleteNode(java.lang.String name)
Delete a node from the project. |
void |
deleteNodeHook(java.lang.String nodeName,
java.lang.String hookName)
Delete a node hook. |
void |
deleteNodeInterHook(java.lang.String nodeName,
java.lang.String interHookName)
Delete a node interHook. |
void |
deleteNodeProperty(java.lang.String nodeName,
java.lang.String key)
Delete a property of a node. |
void |
deleteProperty(java.lang.String key)
Delete a property of the project. |
void |
deleteRole(java.lang.String roleName)
Delete a role (and the Role mapper if it exists). |
void |
deleteRoleMapper(java.lang.String roleName)
Delete a role mapper. |
void |
edgeDeletion(BnEdgeLocal ed)
Actually deletes an edge and restore the state of the outgoing node Not a business method |
void |
ejbActivate()
Internal Enterprise Java Beans method. |
void |
ejbCreate()
Creates the Project Session Bean. |
void |
ejbPassivate()
Internal Enterprise Java Beans method. |
void |
ejbPostCreate(java.lang.String oldProject,
java.lang.String newProject)
Internal Enterprise Java Beans method. |
void |
ejbRemove()
Internal Enterprise Java Beans method. |
void |
executeOnReadyHook()
Executes the OnReady hook associated to the first activities of the process (those ones for which there is no ingoing transitions). |
void |
executeProcessHook()
Executes the OnInstatiate hook associated to this process. |
boolean |
existingProject(java.lang.String projectName)
Test if the project with projectName name exists. |
BnAgentEdgeValue |
getAgentEdgeValue(java.lang.String name)
Get the AgentEdge Value |
BnAgentValue |
getAgentValue(java.lang.String name)
Get the Agent Value. |
java.util.Collection |
getAllUsers()
Return all registered users. |
java.lang.String |
getCaller()
Local method |
java.util.ArrayList |
getChoices(java.lang.String value,
java.util.Collection possibleValues)
Get the list of choices into the value of the enumerated property . |
java.lang.String |
getCreator()
Get creator of the project. |
BnProjectValue |
getDetails()
Get the ProjectValue (historique). |
java.lang.String |
getEdgeCondition(java.lang.String edge)
Get the edge Condition. |
java.lang.String |
getEdgeInNode(java.lang.String edgeName)
Get edge in node. |
java.lang.String |
getEdgeOutNode(java.lang.String edgeName)
Get edge out node. |
java.util.Collection |
getEdgesNames()
Get all edges names of the project |
BnEdgeValue |
getEdgeValue(java.lang.String name)
Get the edge value. |
java.util.Collection |
getHooks()
Get hooks of the project. |
java.util.Collection |
getInterHooks()
Get Interactive hooks of the project. |
java.lang.String |
getInterHookValue(java.lang.String hook)
Get the inter hook value script. |
java.util.Collection |
getIterationConditions(java.lang.String from)
Get iterations conditions We can have more than 1 iteration starting in the same node. |
boolean |
getIterationExist(java.lang.String from)
Verifies if this node starts one iteration or more iterations |
java.lang.Object[] |
getIterations()
Get ALL project iterations. |
java.util.Collection |
getIterations(java.lang.String from)
Get nodes destinations of this iteration. |
java.lang.String |
getName()
Get ProjectName |
boolean |
getNodeAnticipable(java.lang.String name)
Returns if the node is set to be executed in anticipated mode. |
java.lang.String |
getNodeDeadline(java.lang.String nodeName)
Deprecated. replaced by getNodeDeadlines(String name, Collection co) |
java.util.Collection |
getNodeDeadlines(java.lang.String nodeName)
Get collection of deadlines for the node. |
java.lang.String |
getNodeDescription(java.lang.String name)
Get the node description. |
java.lang.String |
getNodeExecutor(java.lang.String name)
Get the node executor. |
java.util.Collection |
getNodeHooks(java.lang.String nodeName)
Get Node hooks of the project. |
java.util.Collection |
getNodeInEdges(java.lang.String name)
Get all in edges of the node |
BnNodeInterHookValue |
getNodeInterHook(java.lang.String nodeName,
java.lang.String interHook)
Get Node inter hook of the project |
java.util.Collection |
getNodeInterHooks(java.lang.String nodeName)
Get Interactive Node hooks of the project |
java.lang.String |
getNodeInterHookValue(java.lang.String node,
java.lang.String hook)
Get the node hook value. |
BnNodeLightValue |
getNodeLightValue(java.lang.String name)
Get the node Light Value. |
java.util.Collection |
getNodeOutEdges(java.lang.String name)
Get all out edges of the node |
BnNodePerformerAssignValue |
getNodePerformerAssign(java.lang.String nodeName)
Get performer assign of this node. |
java.util.Collection |
getNodeProperties(java.lang.String nodeName)
Get Node properties. |
BnNodePropertyValue |
getNodeProperty(java.lang.String nodeName,
java.lang.String key)
Get Node property value. |
BnRoleLocal |
getNodeRole(java.lang.String nodeName)
Get node role. |
java.lang.String |
getNodeRoleName(java.lang.String nodeName)
Get node role name. |
java.lang.Object[] |
getNodes()
Get the project nodes. |
java.util.Collection |
getNodesNames()
Get all node names of the project |
int |
getNodeState(java.lang.String name)
Get the state of the node. |
int |
getNodeType(java.lang.String name)
Get the type of the node. |
BnNodeValue |
getNodeValue(java.lang.String name)
Get the node Value. |
java.lang.String |
getParent()
Get the parent project of this project |
java.lang.String |
getProjectNameOfInstance(java.lang.String instanceName)
Get the project name of this instance |
java.util.Collection |
getProperties()
Get properties of the project. |
java.util.Collection |
getPropertiesKey()
Get properties key of the project. |
BnProjectPropertyValue |
getProperty(java.lang.String key)
Get property value of the project. |
java.util.Collection |
getRoleMappers()
Get role mappers of the project. |
java.util.Collection |
getRoles()
Get all roles of the project |
java.util.Collection |
getRolesNames()
Get all roles names of the project |
java.util.Collection |
getRolesValue()
Get all roles values of the project |
BnRoleValue |
getRoleValue(java.lang.String roleName)
Get the value of this role in the project |
java.lang.String |
getStatus()
Get status of the project. |
java.util.Collection |
getStrutsEdges()
Get the StrutsEdges. |
hero.util.StrutsNodeValue |
getStrutsNode(java.lang.String nodeName)
Get the StrutsNode. |
java.util.Collection |
getStrutsNodeEdges(java.lang.String nodeName)
Get the Edges of the Node. |
java.util.Collection |
getStrutsNodes()
Get the StrutsNodes. |
java.lang.String |
getType()
Get type of the project. |
java.util.Collection |
getUserRoles(java.lang.String userName)
Get all user roles. |
java.util.Collection |
getUserRolesInProject(java.lang.String userName)
Get user roles in the current project. |
java.util.Collection |
getUserRolesInProjectNames(java.lang.String userName)
Get user roles in project names. |
java.util.Collection |
getUsers()
Get all users of the project. |
java.util.Collection |
getUsersRole(java.lang.String roleName)
Get users matching with given role in the current project. |
void |
hideProcess()
Hide a workflow process (model/cooperative). |
void |
hookEvent(java.lang.String nodeName,
java.lang.String event)
Execute a node hook. |
java.lang.String |
importInstance(hero.util.values.BonitaProjectValue pv,
java.lang.String instance,
java.util.Hashtable initProperties)
Import Project instance. |
void |
importProject(java.lang.String projectName)
Import all the nodes, hooks and edges of a project to the current project |
void |
importProject(java.lang.String projectName,
java.lang.String prefix)
Import all the nodes, hooks, properties and edges of a project to the current project |
void |
initModel(java.lang.String modelName)
Creates a workflow process model or Init the Project Session Bean for this model. |
void |
initProject(java.lang.String projectName)
Creates a cooperative workflow or init the Project Session Bean for this cooperative workflow/instance. |
void |
initProject(java.lang.String oldProject,
java.lang.String newProject)
init the Project Session Bean (clone project).You have to call this method after "create" call. |
java.lang.String |
instantiateProject(java.lang.String project)
Project instance. |
java.lang.String |
instantiateProject(java.lang.String project,
java.util.Hashtable initProperties)
Project instance. |
boolean |
isAdminOfProject()
Verifies whether the user is admin of this project/instance |
boolean |
isTerminated()
Test if projects nodes are terminated |
boolean |
isUserInNodeRole(java.lang.String nodeName)
Returns whether the user belongs to the activity role |
void |
propagateNodeProperties(java.lang.String nodeName)
Propagate node properties. |
void |
propagatesParentProperties(java.lang.String node)
Propagate subProcess activity properties to subProcess |
void |
propagatesSubProcessProperties(java.lang.String node)
Propagate subProcess properties to subProcess activity. |
void |
setAgentEdgeState(BnAgentEdgeLocal agentEdge,
int state)
Set the agentEdge state |
void |
setAgentState(BnAgentLocal agent,
int state)
Set the agent state |
void |
setCaller(java.lang.String user)
Local method |
void |
setEdgeCondition(java.lang.String edge,
java.lang.String condition)
Set the edge condition. |
void |
setEdgeState(BnEdgeLocal edge,
int state)
Set the edge state |
void |
setEditNode(java.lang.String node,
java.lang.String role,
java.lang.String description,
long deadline)
Set edit node changes. |
void |
setInterHookValue(java.lang.String hook,
java.lang.String value)
Set the hook value. |
void |
setLogLevel(java.lang.String level)
Set a log level of the actual project. |
void |
setNodeAnticipable(java.lang.String name)
Set the node in anticipable mode. |
void |
setNodeAutomatic(java.lang.String name)
Set the node in automatic mode. |
void |
setNodeDeadline(java.lang.String name,
long date)
Deprecated. replaced by setDeadlines(String name, Collection co) |
void |
setNodeDeadlines(java.lang.String name,
java.util.Collection co)
Set a collection of deadlines for the node. |
void |
setNodeDescription(java.lang.String name,
java.lang.String description)
Set the node description. |
void |
setNodeExecutor(java.lang.String name)
Set the name of the node executor. |
void |
setNodeInterHookValue(java.lang.String node,
java.lang.String hook,
java.lang.String value)
Set the node hook value. |
void |
setNodeProperty(java.lang.String nodeName,
java.lang.String key,
java.lang.String value)
Set a property of a node. |
void |
setNodeProperty(java.lang.String nodeName,
java.lang.String key,
java.lang.String value,
boolean propagate)
Set a property of a node. |
void |
setNodePropertyPossibleValues(java.lang.String nodeName,
java.lang.String key,
java.util.Collection values)
Set property possible values for a specific node. |
void |
setNodeRelativeDeadline(java.lang.String name,
long date)
Deprecated. replaced by setRelativeDeadlines(String name, Collection co) |
void |
setNodeRelativeDeadlines(java.lang.String name,
java.util.Collection co)
Set a collection of relativeDeadlines for the node. |
void |
setNodeRole(java.lang.String name,
java.lang.String role)
Sets the role of an activity. |
void |
setNodesReady()
Set all initial roles to ready if node does not has in edges. |
void |
setNodeState(BnNodeLocal node,
int state)
Set the node state. |
void |
setNodeTraditional(java.lang.String name)
Set the node in traditional mode. |
void |
setNodeType(java.lang.String name,
int type)
Set the node type. |
void |
setProperty(java.lang.String key,
java.lang.String value)
Set a property of the project. |
void |
setPropertyPossibleValues(java.lang.String key,
java.util.Collection values)
Set property possible values. |
void |
setSessionContext(javax.ejb.SessionContext context)
Internal Enterprise Java Beans method. |
void |
setTraceLevel(java.lang.String level)
Set a trace level of the actual project. |
void |
setUserRole(java.lang.String userName,
java.lang.String roleName)
Set a role to this user. |
void |
unsetUser(java.lang.String userName)
Unset a user for this project |
void |
unsetUserRole(java.lang.String userName,
java.lang.String roleName)
Unset a user role in this project. |
void |
updateNodePropertyPossibleValues(java.lang.String nodeName,
java.lang.String key,
java.util.Collection values,
java.util.Collection defaultValues)
This method allows users to change dynamically the possible values defined for this property. |
void |
updatePropertyPossibleValues(java.lang.String key,
java.util.Collection values,
java.util.Collection defaultValues)
This method allows users to change dynamically the possible values defined for this property. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ProjectSessionBean()
Method Detail |
public void addUser(java.lang.String userName) throws hero.util.HeroException
userName
- The name of the user to associate to the project
hero.util.HeroException
public void addNode(java.lang.String name, int nodeType) throws hero.util.HeroException
name
- The name of the node to add to the projectnodeType
- The type of the node to add to the project
hero.util.HeroException
public void addNodeSubProcess(java.lang.String name, java.lang.String projectName) throws hero.util.HeroException
name
- The name of the node to add to the projectprojectName
- the name of the subProcess
hero.util.HeroException
public void addAgent(java.lang.String name) throws hero.util.HeroException
name
- The name of the Agent to add to the project
hero.util.HeroException
public void addEdge(java.lang.String name, java.lang.String in, java.lang.String out) throws hero.util.HeroException
name
- the name ot the edge
hero.util.HeroException
public java.lang.String addEdge(java.lang.String in, java.lang.String out) throws hero.util.HeroException
in
- the name of the in Nodeout
- the name of the out Node
hero.util.HeroException
public java.lang.String addAgentEdge(java.lang.String in, java.lang.String out) throws hero.util.HeroException
in
- the name of the in Agentout
- the name of the out Node
hero.util.HeroException
public void addRole(java.lang.String roleName, java.lang.String description) throws hero.util.HeroException
description
- the description of the role
hero.util.HeroException
public void addIteration(java.lang.String from, java.lang.String to, java.lang.String condition) throws hero.util.HeroException
from
- the name of the first nodeto
- the name of the last node
hero.util.HeroException
public void copyIteration(java.lang.String from, java.lang.String to, java.lang.String condition) throws hero.util.HeroException
from
- to
- condition
-
hero.util.HeroException
public void deleteIteration(java.lang.String from, java.lang.String to) throws hero.util.HeroException
from
- the name of the first nodeto
- the name of the last node
hero.util.HeroException
public void addHook(java.lang.String hookName, java.lang.String eventName, int hookType) throws hero.util.HeroException
hookName
- the name of the hookeventName
- the eventhookType
- the type
hero.util.HeroException
public void addNodeHook(java.lang.String nodeName, java.lang.String hookName, java.lang.String eventName, int hookType) throws hero.util.HeroException
nodeName
- the name of the nodehookName
- the name of the hookeventName
- the name of the eventhookType
- the type of the hook
hero.util.HeroException
public void addInitiatorMapper(java.lang.String mapperName, int mapperType) throws hero.util.HeroException
mapperName
- the name of the mappermapperType
- the type of the mapper
hero.util.HeroException
public void addRoleMapper(java.lang.String roleName, java.lang.String mapperName, int mapperType) throws hero.util.HeroException
roleName
- the name of the rolemapperName
- the name of the mappermapperType
- the type of the mapper
hero.util.HeroException
public void addNodePerformerAssign(java.lang.String nodeName, java.lang.String performerAssignName, int performerAssignType, java.lang.String propertyName) throws hero.util.HeroException
nodeName
- the name of the nodeperformerAssignName
- the name of the performerAssignperformerAssignType
- the type of the performerAssign
hero.util.HeroException
public void addNodeInterHook(java.lang.String nodeName, java.lang.String hookName, java.lang.String eventName, int hookType, java.lang.String value) throws hero.util.HeroException
nodeName
- the name of the nodehookName
- the name of the hookeventName
- the name of the eventhookType
- the type of the hook
hero.util.HeroException
public void addInterHook(java.lang.String hookName, java.lang.String eventName, int hookType, java.lang.String value) throws hero.util.HeroException
addNodeInterHook
method in order
to identify arguments values.
hookName
- the name of the hookeventName
- the name of the eventhookType
- the type of the hook
hero.util.HeroException
public void activeProcess() throws hero.util.HeroException
hero.util.HeroException
public void hideProcess() throws hero.util.HeroException
hero.util.HeroException
public void deleteNode(java.lang.String name) throws hero.util.HeroException
name
- the name of the edge
hero.util.HeroException
public void deleteEdge(java.lang.String name) throws hero.util.HeroException
name
- the name ot the edge
hero.util.HeroException
public void edgeDeletion(BnEdgeLocal ed) throws hero.util.HeroException
hero.util.HeroException
public void deleteHook(java.lang.String hookName) throws hero.util.HeroException
hookName
- the name of the hook
hero.util.HeroException
public void deleteNodeHook(java.lang.String nodeName, java.lang.String hookName) throws hero.util.HeroException
nodeName
- the name of the nodehookName
- the name
hero.util.HeroException
public void deleteNodeInterHook(java.lang.String nodeName, java.lang.String interHookName) throws hero.util.HeroException
nodeName
- the name of the node
hero.util.HeroException
public void deleteInterHook(java.lang.String interHookName) throws hero.util.HeroException
hero.util.HeroException
public void deleteRoleMapper(java.lang.String roleName) throws hero.util.HeroException
roleName
- the name of the node
hero.util.HeroException
public void deleteRole(java.lang.String roleName) throws hero.util.HeroException
roleName
- the name of the node
hero.util.HeroException
public void deleteProperty(java.lang.String key) throws hero.util.HeroException
key
- the key of the property
hero.util.HeroException
public void deleteNodeProperty(java.lang.String nodeName, java.lang.String key) throws hero.util.HeroException
nodeName
- the name of the nodekey
- the key of the property
hero.util.HeroException
public void setTraceLevel(java.lang.String level) throws hero.util.HeroException
level
- the trace level
hero.util.HeroException
public void setLogLevel(java.lang.String level) throws hero.util.HeroException
level
- the log level
hero.util.HeroException
public void setUserRole(java.lang.String userName, java.lang.String roleName) throws hero.util.HeroException
userName
- the name of the userroleName
- the name of the role
hero.util.HeroException
public void setNodeRole(java.lang.String name, java.lang.String role) throws hero.util.HeroException
name
- the name of the activityrole
- the name of the role
hero.util.HeroException
public void setEditNode(java.lang.String node, java.lang.String role, java.lang.String description, long deadline) throws hero.util.HeroException
role
- of the nodedescription
- of the nodedeadline
- of the node
hero.util.HeroException
public void setEdgeCondition(java.lang.String edge, java.lang.String condition) throws hero.util.HeroException
edge
- edge namecondition
- condition of the edge
hero.util.HeroException
public void setNodeDeadline(java.lang.String name, long date) throws hero.util.HeroException
name
- the name of the nodedate
- date of the deadline
hero.util.HeroException
public void setNodeDeadlines(java.lang.String name, java.util.Collection co) throws hero.util.HeroException
name
- the name of the nodeco
- collection of dates of the deadline
hero.util.HeroException
public void setNodeRelativeDeadlines(java.lang.String name, java.util.Collection co) throws hero.util.HeroException
name
- the name of the nodeco
- collection of dates of the deadline
hero.util.HeroException
public void setNodeRelativeDeadline(java.lang.String name, long date) throws hero.util.HeroException
name
- the name of the nodedate
- date of the deadline
hero.util.HeroException
public void setNodeDescription(java.lang.String name, java.lang.String description) throws hero.util.HeroException
name
- the name of the node
hero.util.HeroException
public void setNodeInterHookValue(java.lang.String node, java.lang.String hook, java.lang.String value) throws hero.util.HeroException
hook
- hookName of the nodevalue
- new script value of this hook
hero.util.HeroException
public void setInterHookValue(java.lang.String hook, java.lang.String value) throws hero.util.HeroException
hook
- hookName of the nodevalue
- new script value of this hook
hero.util.HeroException
public void unsetUserRole(java.lang.String userName, java.lang.String roleName) throws hero.util.HeroException
userName
- name of the userroleName
- name of the role
hero.util.HeroException
public void unsetUser(java.lang.String userName) throws hero.util.HeroException
userName
- The name of the user
hero.util.HeroException
public void setNodeTraditional(java.lang.String name) throws hero.util.HeroException
name
- name of the node
hero.util.HeroException
public void setNodeAnticipable(java.lang.String name) throws hero.util.HeroException
name
- the name of the node
hero.util.HeroException
public void setNodeAutomatic(java.lang.String name) throws hero.util.HeroException
name
- the name of the node
hero.util.HeroException
public void setNodeType(java.lang.String name, int type) throws hero.util.HeroException
name
- the name of the node
hero.util.HeroException
public void setNodeProperty(java.lang.String nodeName, java.lang.String key, java.lang.String value, boolean propagate) throws hero.util.HeroException
nodeName
- the name of the nodekey
- the key of the propertyvalue
- the name of the propertypropagate
- if it is a propagation property
hero.util.HeroException
public void setNodeProperty(java.lang.String nodeName, java.lang.String key, java.lang.String value) throws hero.util.HeroException
nodeName
- the name of the nodekey
- the key of the propertyvalue
- the name of the property
hero.util.HeroException
public void setProperty(java.lang.String key, java.lang.String value) throws hero.util.HeroException
key
- the key of the propertyvalue
- the name of the property
hero.util.HeroException
public void setNodePropertyPossibleValues(java.lang.String nodeName, java.lang.String key, java.util.Collection values) throws hero.util.HeroException
nodeName
- the name of the nodekey
- property keyvalues
- possible values
hero.util.HeroException
public void updateNodePropertyPossibleValues(java.lang.String nodeName, java.lang.String key, java.util.Collection values, java.util.Collection defaultValues) throws hero.util.HeroException
nodeName
- the name of the nodekey
- property keyvalues
- possible valuesdefaultValues
- Collection of default values
hero.util.HeroException
public void setPropertyPossibleValues(java.lang.String key, java.util.Collection values) throws hero.util.HeroException
key
- property keyvalues
- possible values
hero.util.HeroException
public void updatePropertyPossibleValues(java.lang.String key, java.util.Collection values, java.util.Collection defaultValues) throws hero.util.HeroException
key
- property keyvalues
- possible valuesdefaultValues
- Collection of default values
hero.util.HeroException
public void hookEvent(java.lang.String nodeName, java.lang.String event) throws hero.util.HeroException
nodeName
- the name of the nodeevent
- the event
hero.util.HeroException
public void propagateNodeProperties(java.lang.String nodeName) throws hero.util.HeroException
nodeName
- the name of the Node
hero.util.HeroException
public void setNodeState(BnNodeLocal node, int state) throws hero.util.HeroException
state
- new state of the node
hero.util.HeroException
public void setNodesReady() throws hero.util.HeroException
hero.util.HeroException
public void propagatesParentProperties(java.lang.String node) throws hero.util.HeroException
node
- the name of the node
hero.util.HeroException
public void propagatesSubProcessProperties(java.lang.String node) throws hero.util.HeroException
node
- the name of the node
hero.util.HeroException
public void setEdgeState(BnEdgeLocal edge, int state) throws hero.util.HeroException
hero.util.HeroException
public void setAgentState(BnAgentLocal agent, int state) throws hero.util.HeroException
agent
- bean of the Agent
hero.util.HeroException
public void setAgentEdgeState(BnAgentEdgeLocal agentEdge, int state) throws hero.util.HeroException
agentEdge
- bean of the BnAgentEdge
hero.util.HeroException
public void setNodeExecutor(java.lang.String name) throws hero.util.HeroException
name
- the name of the node
hero.util.HeroException
public java.util.ArrayList getChoices(java.lang.String value, java.util.Collection possibleValues) throws hero.util.HeroException
value
- the value of the enumerated property
hero.util.HeroException
public java.lang.String getNodeDescription(java.lang.String name) throws hero.util.HeroException
name
- of the node
hero.util.HeroException
public java.lang.String getNodeInterHookValue(java.lang.String node, java.lang.String hook) throws hero.util.HeroException
hook
- hookName of the node
hero.util.HeroException
public java.lang.String getInterHookValue(java.lang.String hook) throws hero.util.HeroException
hook
- hook name
hero.util.HeroException
public BnProjectValue getDetails() throws hero.util.HeroException
hero.util.HeroException
public java.lang.String getName() throws hero.util.HeroException
hero.util.HeroException
public java.lang.String getCreator() throws hero.util.HeroException
hero.util.HeroException
public java.lang.String getStatus() throws hero.util.HeroException
hero.util.HeroException
public java.lang.String getType() throws hero.util.HeroException
hero.util.HeroException
public java.util.Collection getRoles() throws hero.util.HeroException
hero.util.HeroException
public java.util.Collection getRolesValue() throws hero.util.HeroException
hero.util.HeroException
public BnRoleValue getRoleValue(java.lang.String roleName) throws hero.util.HeroException
hero.util.HeroException
public BnNodePerformerAssignValue getNodePerformerAssign(java.lang.String nodeName) throws hero.util.HeroException
nodeName
- the name of the node
hero.util.HeroException
public java.util.Collection getRolesNames() throws hero.util.HeroException
hero.util.HeroException
public java.util.Collection getUserRoles(java.lang.String userName) throws hero.util.HeroException
userName
- The name of the user
hero.util.HeroException
public java.util.Collection getUserRolesInProject(java.lang.String userName) throws hero.util.HeroException
userName
- The name of the user
hero.util.HeroException
public java.util.Collection getUsersRole(java.lang.String roleName) throws hero.util.HeroException
roleName
- The name of the role
hero.util.HeroException
public java.util.Collection getUserRolesInProjectNames(java.lang.String userName) throws hero.util.HeroException
userName
- The name of the user
hero.util.HeroException
public BnRoleLocal getNodeRole(java.lang.String nodeName) throws hero.util.HeroException
nodeName
- The name of the node
hero.util.HeroException
public java.lang.String getEdgeCondition(java.lang.String edge) throws hero.util.HeroException
edge
- the edge/transition name
hero.util.HeroException
public boolean getNodeAnticipable(java.lang.String name) throws hero.util.HeroException
name
- name of the node
hero.util.HeroException
public java.lang.String getNodeRoleName(java.lang.String nodeName) throws hero.util.HeroException
nodeName
- The name of the node
hero.util.HeroException
public java.lang.String getNodeDeadline(java.lang.String nodeName) throws hero.util.HeroException
nodeName
- The name of the node
hero.util.HeroException
public java.util.Collection getNodeDeadlines(java.lang.String nodeName) throws hero.util.HeroException
nodeName
- The name of the node
hero.util.HeroException
public BnNodeValue getNodeValue(java.lang.String name) throws hero.util.HeroException
name
- the name of the Node
hero.util.HeroException
public BnAgentValue getAgentValue(java.lang.String name) throws hero.util.HeroException
name
- the name of the Agent
hero.util.HeroException
public BnAgentEdgeValue getAgentEdgeValue(java.lang.String name) throws hero.util.HeroException
name
- the name of the BnAgentEdge
hero.util.HeroException
public BnNodeLightValue getNodeLightValue(java.lang.String name) throws hero.util.HeroException
name
- the name of the Node
hero.util.HeroException
public BnEdgeValue getEdgeValue(java.lang.String name) throws hero.util.HeroException
name
- the name of the edge
hero.util.HeroException
public java.lang.String getNodeExecutor(java.lang.String name) throws hero.util.HeroException
name
- the name of the node
hero.util.HeroException
public int getNodeState(java.lang.String name) throws hero.util.HeroException
name
- of the node
hero.util.HeroException
public int getNodeType(java.lang.String name) throws hero.util.HeroException
name
- of the node
hero.util.HeroException
public java.util.Collection getUsers() throws hero.util.HeroException
hero.util.HeroException
public java.util.Collection getAllUsers() throws hero.util.HeroException
hero.util.HeroException
public java.util.Collection getNodesNames() throws hero.util.HeroException
hero.util.HeroException
public java.util.Collection getEdgesNames() throws hero.util.HeroException
hero.util.HeroException
public java.lang.String getEdgeInNode(java.lang.String edgeName) throws hero.util.HeroException
edgeName
- the name ot the edge
hero.util.HeroException
public java.lang.String getEdgeOutNode(java.lang.String edgeName) throws hero.util.HeroException
edgeName
- the name ot the edge
hero.util.HeroException
public java.util.Collection getNodeInEdges(java.lang.String name) throws hero.util.HeroException
name
- the name ot the node
hero.util.HeroException
public java.util.Collection getNodeOutEdges(java.lang.String name) throws hero.util.HeroException
name
- the name ot the node
hero.util.HeroException
public java.util.Collection getNodeProperties(java.lang.String nodeName) throws hero.util.HeroException
nodeName
- the name of the node
hero.util.HeroException
public BnNodePropertyValue getNodeProperty(java.lang.String nodeName, java.lang.String key) throws hero.util.HeroException
nodeName
- the name of the nodekey
- Property key
hero.util.HeroException
public BnProjectPropertyValue getProperty(java.lang.String key) throws hero.util.HeroException
key
- Property key
hero.util.HeroException
public java.util.Collection getNodeHooks(java.lang.String nodeName) throws hero.util.HeroException
nodeName
- the name of the node
hero.util.HeroException
public java.util.Collection getNodeInterHooks(java.lang.String nodeName) throws hero.util.HeroException
nodeName
- the name of the node
hero.util.HeroException
public java.util.Collection getRoleMappers() throws hero.util.HeroException
hero.util.HeroException
public java.util.Collection getInterHooks() throws hero.util.HeroException
hero.util.HeroException
public BnNodeInterHookValue getNodeInterHook(java.lang.String nodeName, java.lang.String interHook) throws hero.util.HeroException
nodeName
- the name of the nodeinterHook
- name of the hooks
hero.util.HeroException
public java.util.Collection getPropertiesKey() throws hero.util.HeroException
hero.util.HeroException
public java.lang.Object[] getIterations() throws hero.util.HeroException
hero.util.HeroException
public java.util.Collection getIterations(java.lang.String from) throws hero.util.HeroException
hero.util.HeroException
public boolean getIterationExist(java.lang.String from) throws hero.util.HeroException
hero.util.HeroException
public java.util.Collection getIterationConditions(java.lang.String from) throws hero.util.HeroException
hero.util.HeroException
public java.util.Collection getProperties() throws hero.util.HeroException
hero.util.HeroException
public java.util.Collection getHooks() throws hero.util.HeroException
hero.util.HeroException
public java.lang.String getProjectNameOfInstance(java.lang.String instanceName) throws hero.util.HeroException
instanceName
- the name of the instance
hero.util.HeroException
public java.lang.String getParent() throws hero.util.HeroException
hero.util.HeroException
public boolean isTerminated()
hero.util.HeroException
public hero.util.StrutsNodeValue getStrutsNode(java.lang.String nodeName) throws hero.util.HeroException
nodeName
- the name of the Node
hero.util.HeroException
public java.lang.Object[] getNodes() throws hero.util.HeroException
hero.util.HeroException
public java.util.Collection getStrutsNodes() throws hero.util.HeroException
hero.util.HeroException
public java.util.Collection getStrutsNodeEdges(java.lang.String nodeName) throws hero.util.HeroException
nodeName
- the name of the Node
hero.util.HeroException
public java.util.Collection getStrutsEdges() throws hero.util.HeroException
hero.util.HeroException
public void importProject(java.lang.String projectName) throws hero.util.HeroException
hero.util.HeroException
public void importProject(java.lang.String projectName, java.lang.String prefix) throws hero.util.HeroException
prefix
- the prefix of names for the project
hero.util.HeroException
public java.lang.String importInstance(hero.util.values.BonitaProjectValue pv, java.lang.String instance, java.util.Hashtable initProperties) throws hero.util.HeroException
instance
- the instance name of the project
hero.util.HeroException
public boolean existingProject(java.lang.String projectName) throws hero.util.HeroException
projectName
- project name
hero.util.HeroException
public void initProject(java.lang.String projectName) throws hero.util.HeroException
projectName
- project name
hero.util.HeroException
public void executeProcessHook() throws hero.util.HeroException
hero.util.HeroException
public void executeOnReadyHook() throws hero.util.HeroException
hero.util.HeroException
public void initModel(java.lang.String modelName) throws hero.util.HeroException
modelName
- model name
hero.util.HeroException
public void initProject(java.lang.String oldProject, java.lang.String newProject) throws javax.ejb.CreateException
oldProject
- the name of the project to clonenewProject
- the name of the project clone.
hero.util.HeroException
javax.ejb.CreateException
public java.lang.String instantiateProject(java.lang.String project, java.util.Hashtable initProperties) throws javax.ejb.CreateException
project
- the name of the project to instance
javax.ejb.CreateException
public java.lang.String instantiateProject(java.lang.String project) throws javax.ejb.CreateException
project
- the name of the project to instance
javax.ejb.CreateException
public void ejbCreate() throws javax.ejb.CreateException
javax.ejb.CreateException
public void ejbPostCreate(java.lang.String oldProject, java.lang.String newProject) throws javax.ejb.CreateException, java.rmi.RemoteException
javax.ejb.CreateException
java.rmi.RemoteException
public void setSessionContext(javax.ejb.SessionContext context)
setSessionContext
in interface javax.ejb.SessionBean
public void ejbRemove()
ejbRemove
in interface javax.ejb.SessionBean
public void ejbActivate()
ejbActivate
in interface javax.ejb.SessionBean
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.SessionBean
public boolean isAdminOfProject() throws hero.util.HeroException
javax.ejb.CreateException
hero.util.HeroException
public boolean isUserInNodeRole(java.lang.String nodeName) throws hero.util.HeroException
nodeName
- the name of the node
javax.ejb.CreateException
hero.util.HeroException
public void copyNode(java.lang.String nodeName, hero.util.values.BonitaNodeValue node) throws hero.util.HeroException
node
- the BnNodeLocal object of the copied node.
hero.util.HeroException
public void copyEdge(java.lang.String nodeName, BnNodeLocal inNode, hero.util.values.BonitaEdgeValue edge) throws hero.util.HeroException
inNode
- the BnNodeLocal in node object of the new node.edge
- the BnEdgeLocal edge object from the project model.
hero.util.HeroException
public boolean containsUser(java.lang.String userName) throws hero.util.HeroException
userName
- The name of the user to associate to the project
hero.util.HeroException
public java.lang.String getCaller()
hero.util.HeroException
public void setCaller(java.lang.String user)
hero.util.HeroException
public void checkModelDefinition() throws hero.util.HeroException
hero.util.HeroException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |