public class WorkflowManager
extends java.lang.Object
| Constructor and Description |
|---|
WorkflowManager(PlatformContext platform,
javax.security.auth.Subject subject)
Constructs the manager with a platform context and a subject.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection |
getActiveProcesses()
Returns all of the active processes in the workflow engine.
|
java.util.Collection |
getActiveProcesses(java.lang.String defid)
Returns all of the active processes of the given workflow process definition id
in the workflow engine.
|
WorkflowProcessMO |
getProcess(long id)
Returns the process for the given Id.
|
public WorkflowManager(PlatformContext platform, javax.security.auth.Subject subject)
platform - PlatformContext holding platform connection information.subject - Subject representing the authenticated caller.public WorkflowProcessMO getProcess(long id) throws ApplicationException
id - Id of the processjava.rmi.RemoteException - Thrown if unable to communicate with platform.ApplicationException - Thrown if unable retrieve the process.public java.util.Collection getActiveProcesses()
throws java.rmi.RemoteException,
ApplicationException
WorkflowProcessMO representing active
processes.java.rmi.RemoteException - Thrown if unable to communicate with platform.ApplicationException - Thrown if unable to return the active
processes.public java.util.Collection getActiveProcesses(java.lang.String defid)
throws java.rmi.RemoteException,
ApplicationException
defId - the identifier of the target workflow process definition.WorkflowProcessMO representing active
processes of the given type.java.rmi.RemoteException - Thrown if unable to communicate with platform.ApplicationException - Thrown if unable to return the active
processes.