How to get input and output variable names in the Human Task?

Solution Verified - Updated -

Issue

How to get input and output task variable names in the On Entry / Exit method?

Following code kind of worked for input parameters:

HumanTaskNodeInstance nodeInstance = (HumanTaskNodeInstance) kcontext.getNodeInstance();
HumanTaskNode humanTaskNode = (HumanTaskNode) nodeInstance.getHumanTaskNode();
WorkImpl workImpl = (WorkImpl) humanTaskNode.getWork();
Map inputparams = workImpl.getParameters();

but there is no method to get results object (output parameter names)

Environment

  • Red Hat JBoss 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