Cannot get Task ID in On Entry Event of BPM Suite 6 User Task

Solution Verified - Updated -

Issue

In the on-entry event of User Task, we want to push task details to our application. The code above is used:

HumanTaskNodeInstance nodeInstance = (HumanTaskNodeInstance) kcontext.getNodeInstance();
WorkItem workItem = nodeInstance.getWorkItem(); 

However the getWorkItem method returns null.

Environment

  • Red Hat Business Process Management Suite (BPM Suite)
    • 6.0.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

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content