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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.