|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines a process definiton directory.
Method Summary | |
java.util.List |
importProcessDefinitions(byte[] processDefinitions)
This operation method import new process definitions from an XPDL description. |
java.util.List |
importProcessDefinitions(java.lang.String processDefinitions)
This operation method import new process definitions from an XPDL description. |
boolean |
isEnabled(java.lang.String packageId,
java.lang.String processId)
This operation method returns true if the process definition with the given ids is enabled. |
ProcessDefinition |
lookupProcessDefinition(java.lang.String packageId,
java.lang.String processId)
This method delivers the process definition for the given ids. |
boolean |
processDefinitionExists(java.lang.String packageId,
java.lang.String processId)
This method checks if a process definiton with the given ids exists. |
java.util.Collection |
processDefinitions()
This operation method delivers a collection of all defined process definitions. |
ProcessMgr |
processMgr(java.lang.String packageId,
java.lang.String processId)
This method delivers the process manager for the process definition with the given ids. |
void |
removeProcessDefinition(java.lang.String packageId,
java.lang.String processId)
This operation method removes a process definition with the given ids from the database. |
void |
setEnabled(java.lang.String packageId,
java.lang.String processId,
boolean enabled)
This operation method set the process definition with the given ids as enabled or disabled. |
Method Detail |
public java.util.List importProcessDefinitions(java.lang.String processDefinitions) throws java.rmi.RemoteException, ImportException
Note that importing an XPDL description automatically removes any existing process definitions that have the same package id as the imported package.
processDefinitions
- document describing the process definitions.
PrioritizedMessage
. This list only includes
messages of priority INFO or WARN. If any (fatal) error has occured, an
ImportException
will be thrown and the error
message can be taken from there.
java.rmi.RemoteException
- if a system-level error occurs. The
import has been aborted.
ImportException
- if the input is not a correct.public java.util.List importProcessDefinitions(byte[] processDefinitions) throws java.rmi.RemoteException, ImportException
processDefinitions
- byte array resulting from an
InputStream that describes the process definitions.
PrioritizedMessage
. This list only includes
messages of priority INFO or WARN. If any (fatal) error has occured, an
ImportException
will be thrown and the error
message can be taken from there.
java.rmi.RemoteException
- if a system-level error occurs. The
import has been aborted.
ImportException
- if the input is not a correct.public void removeProcessDefinition(java.lang.String packageId, java.lang.String processId) throws java.rmi.RemoteException, InvalidKeyException
packageId
- Id attribute of the process package.processId
- Id attribute of the process.
java.rmi.RemoteException
- if a system-level error occurs.
InvalidKeyException
- if packageId or processId are
(formally) invalid ids.public java.util.Collection processDefinitions() throws java.rmi.RemoteException
ProcessDefinition
java.rmi.RemoteException
- if a system-level error occurs.public boolean processDefinitionExists(java.lang.String packageId, java.lang.String processId) throws java.rmi.RemoteException
packageId
- Id attribute of the process package.processId
- Id attribute of the process.
true
if a process definition with the given
id
exists.
java.rmi.RemoteException
- if a system-level error occurs.public ProcessDefinition lookupProcessDefinition(java.lang.String packageId, java.lang.String processId) throws InvalidKeyException, java.rmi.RemoteException
IllegalArgumentException
.
packageId
- Id attribute of the process package.processId
- Id attribute of the process.
InvalidKeyException
- if no process definition with
the given ids exists.
java.rmi.RemoteException
- if a system-level error occurs.public boolean isEnabled(java.lang.String packageId, java.lang.String processId) throws java.rmi.RemoteException, InvalidKeyException
packageId
- Id attribute of the process package.processId
- Id attribute of the process.
InvalidKeyException
- if no process definition with
the given ids exists.
java.rmi.RemoteException
- if a system-level error occurs.public void setEnabled(java.lang.String packageId, java.lang.String processId, boolean enabled) throws java.rmi.RemoteException, InvalidKeyException
packageId
- Id attribute of the process package.processId
- Id attribute of the process.enabled
- enable the process definition or not.
InvalidKeyException
- if no process definition with
the given ids exists.
java.rmi.RemoteException
- if a system-level error occurs.public ProcessMgr processMgr(java.lang.String packageId, java.lang.String processId) throws InvalidKeyException, java.rmi.RemoteException
packageId
- Id attribute of the process package.processId
- Id attribute of the process.
InvalidKeyException
- if not process definition with
the given ids exists.
java.rmi.RemoteException
- if a system-level error occurs.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |