How to get processInstanceDescriptoin using kie api.

Solution Verified - Updated -


  • How to get processInstanceDescription from the ProcessInstance object which is acquired from the kie session.
public void executeWorkItem(WorkItem workItem, WorkItemManager manager) {

        RuntimeEngine runtimeEngine = runtimeManager.getRuntimeEngine(ProcessInstanceIdContext.get(workItem.getProcessInstanceId()));       
        KieSession kieSession = runtimeEngine.getKieSession();
        ProcessInstance processInstance = kieSession.getProcessInstance(workItem.getProcessInstanceId());
       String processId = processInstance.getProcessId();       
           //Wanted to fetch process-instance-description


  • Red Hat Process Automation Manager
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In