getCurrentHandler vs getCurrentEvent

Hi all,

I want to get the current Handler with path, so I attempted to use getCurrentHandler(). The documentation states getCurrentHandler() : Get the handler or handler/package path. However, when I run the method, all I get back is the event handler name, not the package path. When I run getCurrentEvent I get the package, handler and event.

So, running getCurrentHandler() returns ehMyHandler but getCurrentEvent returns path.to.my.handler.ehMyHandler.myEvent

Is this the expected behavior or should getCurrentHandler instead return what I expect (path.to.my.handler.ehMyHandler)

If getCurrentHandler won’t return path.to.my.handler.ehMyHandler what will?

Thank you,
Christine

Christine,

Thanks for posting, Would you mind sharing a link to the documentation you are referring to so it can be updated? You want to use “getCurrentEvent()” to obtain the full path.

The behavior is as expected–we may need to update the docs.

Thanks,

Aaron