How to access task variable in a TaskLifeCycleEventListener implementation in JBoss BPM Suite 6?
Issue
- How to access task variable in taskEventListener ?
- User implemented a
TaskLifeCycleEventListener
and would like to retrieve the input variables defined inBusiness Central
for the Human Task while it was getting designed. How to retrieve the task properties, accessToken, refreshToken, etc in theTaskListener.afterTaskAddedEvent ()
method of the customTaskLifeCycleEventListener
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?
http://localhost:8080/business-central/rest/task/content/{document-content-id}
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?
Environment
- 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.