How to acess node variables inside a ProcessEventListener in BPM Suite 6?

Solution Unverified - Updated -

Environment

Red Hat JBoss BPM Suite 6

Issue

How can I access node variables i/p, o/p parameters of a node from the ProcessEventListener in the method public void beforeNodeLeft(ProcessNodeLeftEvent event).

Resolution

In ProcessEventListener a NodeInstance object could be retrieved from event variable inside a method (i.e. beforeNodeLeft(ProcessNodeLeftEvent event)). NodeInstance object contains a getVariable(String) method which can be used to get node variables.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments