| java.lang.Object de.danet.an.workflow.domain.AbstractProcessDefinitionDirectory de.danet.an.workflow.ejbs.admin.ProcessDefinitionDirectoryEJB
ProcessDefinitionDirectoryEJB | public class ProcessDefinitionDirectoryEJB extends AbstractProcessDefinitionDirectory implements SessionBean(Code) | | The session bean ProcessDefinitionDirectoryEJB manage the
process definitions.
Setting log level to DEBUG outputs messages about
process definition caching.
|
Inner Class :public class ProcessDefinitionInfo implements Serializable | |
Method Summary | |
public boolean | copyProcessDefinitionToProcess(String procMgr, String procXpdl) Copy the given process definition to the first process created
using the given process definition that does not have a copy. | public de.danet.an.workflow.omgcore.WfProcess | createProcess(String packageId, String processId, WfRequester requester) Create a process of the given type with the given requester.
Parameters: packageId - Id attribute of the process package. Parameters: processId - Id attribute of the process. Parameters: requester - the requester. | public WfProcessLocal | createProcessLocal(String packageId, String processId, WfRequester requester) Create a process of the given type with the given requester.
Parameters: packageId - Id attribute of the process package. Parameters: processId - Id attribute of the process. Parameters: requester - the requester. | public void | ejbActivate() Not called for stateless session bean. | public void | ejbCreate() Create an new instance of ProcessDefinitonDirectoryBean. | public void | ejbPassivate() Not called for stateless session bean. | public void | ejbRemove() A container invokes this method before it ends the life of the session
object. | public List | importProcessDefinitions(String processDefinitions) This operation method import new process definitions from an
XPDL description.
Parameters: processDefinitions - document describing the process definitions. | public List | importProcessDefinitions(byte[] processDefinitions) This operation method import new process definitions from an
XPDL description.
Parameters: processDefinitions - byte array resulting from anInputStream that describes the process definitions. | public boolean | isEnabled(String packageId, String processId) This operation method returns true if the process definition
with the given ids is enabled.
Parameters: packageId - Id attribute of the process package. Parameters: processId - Id attribute of the process. | public ProcessDefinition | lookupProcessDefinition(String packageId, String processId) This method delivers the process definition for the
given ids. | public ProcessDefinitionInfo | lookupProcessDefinitionInfo(String packageId, String processId) This method delivers the process definition for the
given ids. | public boolean | processDefinitionExists(String packageId, String processId) This method checks if a process definiton with the given ids
exists in the database.
Parameters: packageId - Id attribute of the process package. Parameters: processId - Id attribute of the process. | public Collection | processDefinitions() This operation method delivers a collection of all
defined process definitions or an empty collection if no process
definition are found. | public ProcessMgr | processMgr(String packageId, String processId) This method delivers the process manager for the given process.
Parameters: packageId - Id attribute of the process package. Parameters: processId - Id attribute of the process. | public void | removeProcessDefinition(String packageId, String processId) This operation method removes a process definition with the
given ids from the database. | public void | setEnabled(String packageId, String processId, boolean enabled) This operation method set the process definition with the given
ids as enabled or disabled. | public void | setSessionContext(SessionContext context) set the session context and get new data source. |
copyProcessDefinitionToProcess | public boolean copyProcessDefinitionToProcess(String procMgr, String procXpdl)(Code) | | Copy the given process definition to the first process created
using the given process definition that does not have a copy.
Parameters: procDef - the process definition true if a process was found. |
ejbActivate | public void ejbActivate()(Code) | | Not called for stateless session bean.
|
ejbCreate | public void ejbCreate() throws CreateException(Code) | | Create an new instance of ProcessDefinitonDirectoryBean.
throws: CreateException - Throws if the ProcessDefinitionDirectoryBean can not be created. |
ejbPassivate | public void ejbPassivate()(Code) | | Not called for stateless session bean.
|
ejbRemove | public void ejbRemove()(Code) | | A container invokes this method before it ends the life of the session
object. This happens as a result of a client's invoking a remove
operation, or when a container decides to terminate the session object
after a timeout.
See Also: javax.ejb.SessionBean |
importProcessDefinitions | public List importProcessDefinitions(byte[] processDefinitions) throws ImportException(Code) | | This operation method import new process definitions from an
XPDL description.
Parameters: processDefinitions - byte array resulting from anInputStream that describes the process definitions. list of prioritized message de.danet.an.workflow.api.PrioritizedMessage PrioritizedMessage throws: ImportException - if the input is not a correct. |
isEnabled | public boolean isEnabled(String packageId, String processId) throws InvalidKeyException(Code) | | This operation method returns true if the process definition
with the given ids is enabled.
Parameters: packageId - Id attribute of the process package. Parameters: processId - Id attribute of the process. true if the process definition is enabled. throws: InvalidKeyException - if no process definition withthe given ids exists. |
lookupProcessDefinition | public ProcessDefinition lookupProcessDefinition(String packageId, String processId) throws InvalidKeyException(Code) | | This method delivers the process definition for the
given ids. If no process definition with the ids exist, it
throws an IllegalArgumentException .
Parameters: packageId - the package id Parameters: processId - the process definition id the found ProcessDefinition object throws: InvalidKeyException - if no process definition withthe given ids exists. |
lookupProcessDefinitionInfo | public ProcessDefinitionInfo lookupProcessDefinitionInfo(String packageId, String processId) throws InvalidKeyException(Code) | | This method delivers the process definition for the
given ids. If no process definition with the ids exist, it
throws an IllegalArgumentException .
Parameters: packageId - the package id Parameters: processId - the process definition id the found ProcessDefinition object throws: InvalidKeyException - if no process definition withthe given ids exists. |
processDefinitionExists | public boolean processDefinitionExists(String packageId, String processId)(Code) | | This method checks if a process definiton with the given ids
exists in the database.
Parameters: packageId - Id attribute of the process package. Parameters: processId - Id attribute of the process. true if a process definition with the givenid exists, otherwise false . |
processDefinitions | public Collection processDefinitions()(Code) | | This operation method delivers a collection of all
defined process definitions or an empty collection if no process
definition are found.
collection |
processMgr | public ProcessMgr processMgr(String packageId, String processId) throws InvalidKeyException(Code) | | This method delivers the process manager for the given process.
Parameters: packageId - Id attribute of the process package. Parameters: processId - Id attribute of the process. the process manager for the process type. throws: InvalidKeyException - if no process definition withthe given ids exists. |
removeProcessDefinition | public void removeProcessDefinition(String packageId, String processId) throws InvalidKeyException(Code) | | This operation method removes a process definition with the
given ids from the database. If called for a definition that
does not exist, it does nothing.
Parameters: packageId - Id attribute of the process package. Parameters: processId - Id attribute of the process. throws: InvalidKeyException - if packageId or processId are(formally) invalid ids. |
setEnabled | public void setEnabled(String packageId, String processId, boolean enabled) throws InvalidKeyException(Code) | | This operation method set the process definition with the given
ids as enabled or disabled.
Parameters: packageId - Id attribute of the process package. Parameters: processId - Id attribute of the process. Parameters: enabled - enable the process definition or not. throws: InvalidKeyException - if no process definition withthe given ids exists. |
setSessionContext | public void setSessionContext(SessionContext context) throws EJBException(Code) | | set the session context and get new data source.
Parameters: context - the given session context. throws: EJBException - if problem encountered with getting the data source. |
|
|