How to access kContext/process variable from custom work item handlers in BPMS 6

Solution Verified - Updated -

Issue

Is there a way to access kcontext or process variable in custom work item handlers?
- Passing in "kcontext" just like "ksession" to the constructor of the handler is not recognized.
- The following code is also tried but when calling getVariable on the kContext it's throwing an java.lang.NullPointerException:

        ProcessContext kcontext = new ProcessContext(this.kSession);

Environment

  • JBoss BPM Suite(BPMS) 6

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