How to get processInstanceDescriptoin using kie api.

Solution Verified - Updated -

Issue

  • 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
    }

Environment

  • Red Hat Process Automation Manager
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In