public class ProcessManager
extends java.lang.Object
WorkflowProcessEntity| Constructor and Description |
|---|
ProcessManager()
Default constructor.
|
ProcessManager(DistinguishedName tenantDN)
Constructs within the context of the given tenant.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public ProcessManager()
public ProcessManager(DistinguishedName tenantDN)
tenantDN - DistinguishedName of the tenant providing the context.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
date/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 tenantWorkflowException - 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.