|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object WorkflowServiceClient com.adobe.idp.workflow.client.ProcessManager
public class ProcessManager
The ProcessManager
class is used to enable
client applications to invoke, suspend, unsuspend, terminate, and complete process instances.
To see an object of this type used in a code example, see the
Suspending process instances using the Java API quick start in Programming with LiveCycle ES4.
Field Summary | |
---|---|
static java.lang.String |
SERVICE_NAME
|
Constructor Summary | |
---|---|
ProcessManager(ServiceClientFactory serviceClientFactory)
Used to create a LiveCycle Process Management ES client. |
Method Summary | |
---|---|
void |
completeAction(java.lang.String invocationId)
Sends a request to the process engine to complete an action instance. |
void |
completeAction(java.lang.String invocationId,
java.lang.String aDirectedRouteId)
Sends a request to complete an action instance and to take the specified route instead of evaluating all routes. |
void |
completeProcess(java.lang.String invocationId)
Completes the specified process instance and all its related branches. |
void |
createActionLog(java.lang.String invocationId,
short aLogLevel,
java.lang.String aMessage)
Creates a log entry for the specified action instance. |
void |
createActionNote(java.lang.String invocationId,
java.lang.String aTitle,
java.lang.String aNote)
Creates a note for the specified action instance and stores it in the database. |
void |
createProcessNote(java.lang.String invocationId,
java.lang.String aTitle,
java.lang.String aNote)
Creates a note for the specified process instance and stores it in the database. |
void |
interruptAction(java.lang.String invocationId,
java.lang.String eventCatchTemplateId)
Interrupts a workflow action and fires an interrupt event. |
void |
postMessageToAction(java.lang.String invocationId,
ProcessMessage aMessage)
Deprecated. Do not use. |
void |
purgeProcess(java.lang.String processName,
java.lang.Short majorVersion,
java.lang.Short minorVersion,
int status,
long age,
com.adobe.idp.workflow.dsc.type.PurgeFilter filter,
boolean includeChildren)
Purges all instances of the processes with a given name, a version and other characteristics. |
void |
purgeProcesses(java.lang.String processCategory,
int status,
long age,
boolean includeChildren)
Purges all instances of the processes under a given service category. |
void |
purgeProcessInstance(java.lang.String invocationId)
Purges single process instance based on the invocation Id. |
void |
retryAction(java.lang.String invocationId)
Retries an action in a stalled process instance. |
void |
scheduleMessageForAction(java.lang.String invocationId,
java.util.Date aDate,
ProcessMessage aMessage)
Deprecated. Do not use. |
void |
sendMessageToAction(java.lang.String invocationId,
ProcessMessage aMessage)
Deprecated. Do not use. |
void |
stallAction(java.lang.String invocationId,
java.lang.String aMessage)
Changes the status of an action to Stalled. |
void |
suspendProcess(java.lang.String invocationId)
Suspends the specified process instance and all its related branches. |
void |
terminateAction(java.lang.String invocationId)
Changes the status of an action instance to Terminated. |
void |
terminateProcess(java.lang.String invocationId)
Terminates the specified process instance and all its related branches. |
void |
unSuspendProcess(java.lang.String invocationId)
Unsuspends the specified process instance and all its related branches. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SERVICE_NAME
Constructor Detail |
---|
public ProcessManager(ServiceClientFactory serviceClientFactory)
serviceClientFactory
- The service client factory needed to create an instance of the
LiveCycle Process Management ES client.Method Detail |
---|
public void purgeProcessInstance(java.lang.String invocationId) throws ProcessManagerException
invocationId
- - The id of the invocation used to start the process.
ProcessManagerException
- if a problem occurs while completing the purge.public void purgeProcess(java.lang.String processName, java.lang.Short majorVersion, java.lang.Short minorVersion, int status, long age, com.adobe.idp.workflow.dsc.type.PurgeFilter filter, boolean includeChildren) throws ProcessManagerException
To see this method used in a code example, see the Purging process data using the Java API quick start in Programming with LiveCycle ES4.
processName
- The name of the process to purgemajorVersion
- The major version of the process to purge.
If null, all process versions are purgedminorVersion
- The minor version of the process to purge
If null, all minor versions of the given process major version
are purgedstatus
- Valid numbers: 1 - purge "Completed" processes only;
2 - purge "Terminated" processes only; 3 - purge both "Completed"
and "Terminated" processesage
- The time in seconds defining the age of the process to
purge. The process is purged if its completion time is less
than or equal to the time calculated by subtracting the number
of seconds specified by this field from the time when the
purge started. For example, to purge processes completed 1 day ago,
set this field to 86400 (number of seconds in a day)filter
- The object tree defining an expression with process
variables. The process is purged only if the expression is true.
If null, no expression is evaluatedincludeChildren
- TRUE to recursively purge all processes
instantiated by the processes matching all conditions above;
FALSE to only purge the processes matching the conditions above
ProcessManagerException
- if a problem occurs while completing the purge.public void purgeProcesses(java.lang.String processCategory, int status, long age, boolean includeChildren) throws ProcessManagerException
processCategory
- The process category to purge. If null,
processes of any category (i.e. all possible processes) are purgedstatus
- Valid numbers: 1 - purge "Completed" processes only;
2 - purge "Terminated" processes only; 3 - purge both "Completed"
and "Terminated" processesage
- The time in seconds defining the age of the process to
purge. The process is purged if its completion time is less
than or equal to the time calculated by subtracting the number
of seconds specified by this field from the time when the
purge started. For example, to purge processes completed 1 day ago,
set this field to 86400 (number of seconds in a day)includeChildren
- TRUE to recursively purge all children processes
(i.e. the processes instantiated by the processes matching all conditions
above); FALSE to only purge the processes matching the conditions above
ProcessManagerException
- if a problem occurs while completing the purge.public void completeProcess(java.lang.String invocationId) throws ProcessManagerException
The process instance enters the Completing state until all related actions are completed or terminated.
invocationId
- The invocation identifier of the process instance to be completed.
ProcessManagerException
public void terminateProcess(java.lang.String invocationId) throws ProcessManagerException
The process instance enters the Terminating state until all related actions are terminated or completed.
invocationId
- The invocation identifier of the process instance to be terminated.
ProcessManagerException
public void suspendProcess(java.lang.String invocationId) throws ProcessManagerException
The process instance enters the Suspending state until all related actions are suspended, completed, or terminated.
invocationId
- The invocation identifier of the process instance to be suspended.
ProcessManagerException
public void unSuspendProcess(java.lang.String invocationId) throws ProcessManagerException
invocationId
- The invocation identifier of the process instance to be unsuspended.
ProcessManagerException
public void completeAction(java.lang.String invocationId) throws ProcessManagerException
invocationId
- The invocation identifier of the action instance to be completed.
ProcessManagerException
ProcessManager.completeAction(java.lang.String, java.lang.String)
public void completeAction(java.lang.String invocationId, java.lang.String aDirectedRouteId) throws ProcessManagerException
This method is used if a user chooses a specific route when submitting a form.
invocationId
- The invocation identifier of the action instance to be completed.aDirectedRouteId
- The identifier of the route to take.
ProcessManagerException
ProcessManager.completeAction(java.lang.String)
public void terminateAction(java.lang.String invocationId) throws ProcessManagerException
invocationId
- The invocation identifier of the action instance to be terminated.
ProcessManagerException
public void retryAction(java.lang.String invocationId) throws ProcessManagerException
invocationId
- The invocation identifier of the action instance to be retried.
ProcessManagerException
public void stallAction(java.lang.String invocationId, java.lang.String aMessage) throws ProcessManagerException
invocationId
- The invocation identifier of the action to be stalled.aMessage
- A string containing information about the scheduled action.
ProcessManagerException
public void interruptAction(java.lang.String invocationId, java.lang.String eventCatchTemplateId) throws ProcessManagerException
invocationId
- The invocation identifier of the action to be interrupted.eventCatchTemplateId
- Designates the notification event target for the interrupt.
ProcessManagerException
public void scheduleMessageForAction(java.lang.String invocationId, java.util.Date aDate, ProcessMessage aMessage) throws ProcessManagerException
onMessage
method.
For example, this method is used with the Wait component, with which a business analyst can specify a pause in a process. The Wait component uses the time interval entered by the business analyst to calculate the execution time. At execution time, the component completes the step and the process continues.
invocationId
- The invocation identifier of the action instance to be scheduled for execution.aDate
- A java.util.Date
specifying when the action is to be executed.aMessage
- An object containing information about the scheduled action.
ProcessManagerException
public void sendMessageToAction(java.lang.String invocationId, ProcessMessage aMessage) throws ProcessManagerException
invocationId
- The invocation identifier of the action instance that is to receive the message.aMessage
- An object containing information about the action.
ProcessManagerException
public void postMessageToAction(java.lang.String invocationId, ProcessMessage aMessage) throws ProcessManagerException
invocationId
- The invocation identifier of the action instance, which is paired with the process message.aMessage
- An object containing information to be used with the action instance.
ProcessManagerException
public void createProcessNote(java.lang.String invocationId, java.lang.String aTitle, java.lang.String aNote) throws ProcessManagerException
invocationId
- The invocation identifier of the process instance.aTitle
- The title of the note.aNote
- The content of the note.
ProcessManagerException
public void createActionNote(java.lang.String invocationId, java.lang.String aTitle, java.lang.String aNote) throws ProcessManagerException
invocationId
- The invocation identifier of the action instance.aTitle
- The title of the note.aNote
- The content of the note.
ProcessManagerException
public void createActionLog(java.lang.String invocationId, short aLogLevel, java.lang.String aMessage) throws ProcessManagerException
The log is used to display messages for stalled actions and stalled branches in the LiveCycle ES2 Administration Console.
invocationId
- The invocation identifier of the action instance.aLogLevel
- The logging level to use. Valid values are 0
(INFO_LEVEL
),
1
(PROCESS_INFO_LEVEL
), and 2
(ERROR_LEVEL
). Custom levels may also be specified.aMessage
- The message to write to the log.
ProcessManagerException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |