How to access task variable in a TaskLifeCycleEventListener implementation in JBoss BPM Suite 6?

Solution Verified - Updated -


  • How to access task variable in taskEventListener ?
  • User implemented a TaskLifeCycleEventListener and would like to retrieve the input variables defined in Business Central for the Human Task while it was getting designed. How to retrieve the task properties, accessToken, refreshToken, etc in the TaskListener.afterTaskAddedEvent () method of the custom TaskLifeCycleEventListener implementation?
  • The above task properties can be retrieved using the REST API as shown below (which is used to retrieve the task data). But can it be done without the REST API?

Users would like to know if there is another way of retrieving the task data such as via the TaskEvent object since this object is the input argument for afterTaskAddedEvent() or somehow pass the ksession to the same method?


  • Red Hat JBoss BPM Suite (BPM Suite)
    • 6.1.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