Skip to content
Other versions

Loading…

WorkflowUtils

Utility methods to handle workflows.

Description:

Method Return values Description
findProcessInstancesByNode(String uuid) List Retrieves a list of all process instances for a node.
  • uuid The string type is the UUID of the document, folder, mail, or record.

Example:

package com.openkm;
import com.openkm.bean.workflow.ProcessInstance;
import com.openkm.util.WorkflowUtils;
public class Test {
public static void main(String[] args) {
try {
String uuid = "some node uuid";
for (ProcessInstance processInstance : WorkflowUtils.findProcessInstancesByNode(uuid)) {
System.out.println(processInstance);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}