|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.itim.workflow.model.ProcessManager
Class that provides the interface for creating and querying workflow
processes within the workflow engine. When creating a workflow process,
the type of process to create must be registered with the engine prior
to the creation call.
This registration is done through the use of the enroleworkflow.properties
file. This file is in standard Java properties file format
<key>=<value>, where the key is the workflow process type,
and the value is the XML file holding the workflow definition of this
process type. As an example, the registration of the add user and provision
account workflow processes are shown below:
enrole.workflow.UA=adduser.xml
enrole.workflow.AA=provision.xml
WorkflowProcessEntity
Constructor Summary | |
---|---|
ProcessManager()
Default constructor. |
|
ProcessManager(DistinguishedName tenantDN)
Constructs within the context of the given tenant. |
Method Summary | |
---|---|
WorkflowProcessEntity |
createProcess(ProcessParticipant requester,
InitialProcessContext context)
Creates a process that satisfies the context provided. |
WorkflowProcessEntity |
createProcess(ProcessParticipant requester,
java.lang.String type,
java.util.Date scheduledTime)
Creates a process of the given type. |
java.util.Collection |
getActiveProcesses(DistinguishedName tenant)
Returns all of the active processes in the workflow engine. |
java.util.Collection |
getActiveProcesses(java.lang.String definitionId)
Returns the active processes of the given definition id in the workflow engine. |
WorkflowProcessEntity |
getProcess(long id)
Returns the process with the given ID. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ProcessManager()
public ProcessManager(DistinguishedName tenantDN)
tenantDN
- DistinguishedName of the tenant providing the context.Method Detail |
public WorkflowProcessEntity createProcess(ProcessParticipant requester, java.lang.String type, java.util.Date scheduledTime) throws WorkflowException
requester
- ProcessParticipant representing the requester of the
process.type
- Type of the process to create. This type must be
registered with the workflow engine.scheduledTime
- The scheduled starting time of the process.
If null, the process will start immediately.
In case this method is invoked remotely, passing this parameter as the current
data/time of the client machine is not a safe technique to use, since the
date/time of the client machine may not be the same as the date/time of the
ITIM server machine.
WorkflowException
- Thrown if unable to create the process.public WorkflowProcessEntity createProcess(ProcessParticipant requester, InitialProcessContext context) throws WorkflowException
requester
- ProcessParticipant representing the requester of the
process.context
- InitialProcessContext holding the configuration
parameters of the process to create.
WorkflowException
- Thrown if unable to create the process.public WorkflowProcessEntity getProcess(long id) throws WorkflowException
WorkflowException
- Thrown if unable retrieve the process.public java.util.Collection getActiveProcesses(DistinguishedName tenant) throws WorkflowException
tenant
- DN of the tenant
WorkflowException
- Thrown if unable to return the active
processes.public java.util.Collection getActiveProcesses(java.lang.String definitionId) throws WorkflowException
definitionId
- Definition id of the processes to retrieve.
Definition id uniquely identifies a workflow design or definition.WorkflowException
- Thrown if unable to return the active
processes.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |