Hi folks,
for auditing purposes, I am currently writing a listener (which will sit on the "Generic event", since this one is called from every transition).
The issue I am trying to resolve is - how to get the transition name or ID within the listener code?
transientVars is not defined there, so I cannot use transientVars["actionId"]...
Any suggestions?
Many thanks in advance
Best regards
Dmitri
There's no transientVars in a listener because the transition is complete by the time a listener picks it up.
That concept is also important with what you're trying to do - listeners only catch events, not transitions. If you want your listener to do different things on different transitions, then you need to do one of two things:
I'd strongly recommend using the first approach. Admins like me will have a tendency to go through workflows and change "generic" to more useful events so that we can use notifications and listeners properly. If I found a listener that relies on "generic event" being fired for everything, frankly, I'd delete it and re-examine the requirement with a view to doing it a sensible way.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, listeners still catch events.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.