[coldbox 4.2] getFunctionCalledName returning unexpected value

10 views
Skip to first unread message

jinglesthula

unread,
Sep 9, 2016, 4:37:56 PM9/9/16
to ColdBox Platform
We have some handler code that calls getFunctionCalledName to determine what function is running.  In ColdBox 3.x it worked ok, but in 4.2 that we just switched to getFunctionCalledName returns "_targetAction" rather than the handler function's name.  Is there a way in the handler to programmatically determine the name of the handler function currently running?  

Our routes are pretty simple so that I could possibly parse it from rc.event, but I'd rather look at the function's name attribute directly for efficiency and safety (in case of any discrepancies between the event name and the function name).

br...@bradwood.com

unread,
Sep 9, 2016, 4:55:42 PM9/9/16
to col...@googlegroups.com
I would use event.getCurrentAction().

Thanks!

~Brad

ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp

E-mail: br...@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com 
 
 
--------- Original Message ---------
--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
For Bug Reports, visit https://ortussolutions.atlassian.net/browse/COLDBOX
---
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coldbox+u...@googlegroups.com.
To post to this group, send email to col...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coldbox/4567f0f0-91e6-45ea-b033-6f6ac72f2429%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages