public interface IProcessService
Use this service to perform operations on Long Running Processes. --- Snippet Code ---- // Create Process Service IProcessService processService = serviceFactory.createProcessService(); // Get all process types ListprocessTypes = processService.getProcessTypes();
Modifier and Type | Method and Description |
---|---|
IProcessInfo |
getLatestProcess(Id processTypeId)
Get latest process information of a specific process type.
|
IProcessInfo |
getProcess(Id processId)
Get the process information of a specific process.
|
java.util.List<IProcessInfo> |
getProcessList(ProcessQueryOptions options)
Query a list of processes.
|
java.util.List<IProcessLog> |
getProcessLogs(Id processId,
ProcessLogQueryOptions options)
Get process logs of a specific process.
|
java.util.List<IProcessType> |
getProcessTypes()
Get process types.
|
void |
terminateProcess(Id processId)
Terminate a specific process.
|
java.util.List<IProcessType> getProcessTypes()
java.util.List<IProcessInfo> getProcessList(ProcessQueryOptions options)
options
- the query optionsIProcessInfo getProcess(Id processId)
processId
- the process idIProcessInfo getLatestProcess(Id processTypeId)
processTypeId
- the process type idjava.util.List<IProcessLog> getProcessLogs(Id processId, ProcessLogQueryOptions options)
Limitations:
processId
- the process idoptions
- the query optionsIProcessService ps = serviceFactory.createProcessService(); int pageRowCount = 10000; int startRow = 1; int totalCount = 0; boolean hasMorePages = true; while (hasMorePages) { // prepare paging options ProcessLogQueryOptions options = new ProcessLogQueryOptions(); options.setStartRow(startRow); options.setEndRow(startRow + pageRowCount - 1); // query process logs ListprocessLogs = ps.getProcessLogs(processId, options); // handle process logs for (IProcessLog log : processLogs) { // handle a process log } totalCount += processLogs.size(); // prepare next page hasMorePages = (processLogs.size() == pageRowCount); startRow += pageRowCount; }
void terminateProcess(Id processId)
processId
- the process id
Licensed Materials - Property of IBM
© Copyright IBM Corp. 2013, 2018. All Rights Reserved.
US Government Users Restricted Rights -
Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.