I'm working on some custom utility functions that I can utilize in Business Rules as well as other places. I saw this line in the docs:
For each function you wish to define, add a class method to your new function set class. There is no support for polymorphism, so to be precise, you must mark these class methods as final.
but I didn't really know what it meant. I didn't run into any problems until I tried calling one of my new methods from another method. Removing the
[ Final ] fixed the issue, but I'm guessing that means I can't call them from Business Rules now?
Any clarification would be appreciated. And just in case, here are the two methods in question:
Again, when I had
[ Final ] and tried to call
getParticipant() it threw an error on the
q iString line of the
stripTestFlag() method. Once I removed
[ Final ] from both it worked fine.