WorkflowUtils

Utility methods to handle workflows.

Methods

findProcessInstancesByNode

Description:

MethodReturn valuesDescription

findProcessInstancesByNode(String uuid)

List<ProcessInstance>

Retrieves a list of all process instances of a node

uuid string type is the uuid of the document, folder, mail or record.

Example:

package com.openkm;

import com.openkm.util.WorkflowUtils;
import com.openkm.bean.workflow.ProcessInstance;

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();
        }
    }
}