Back-ported in https://github.com/ManageIQ/manageiq/pull/10089
Checked in 5.6.2.0 The Pull Request says: "The new METHOD:: functionality is available to Automate state machine entries and can be used to call a method from a state relationship. METHOD:: can be used to call methods residing in the same class, and can access methods in other classes by using the class method notation." I copied the Request class to my domain, created an instance "test" whose rel1 points to "METHOD::testmeth" where testmeth is a local method ($evm.log(:info, "TEST TEST")). That does not work (Invalid URI). When I created a dummy instance in the request class and made the relationship field point to it, I have put a method names in the on entry and on exit fields. Both with and without METHOD:: prefix. That did work either, I could not see any mention of invocation of such method in the log nor what the method was supposed to log. I used Simulation on /System/Request/test with method executing enabled.
Hi Milan, I think part of your problem is that the "METHOD::" functionality is implemented for state machine relationships and /System/Request is not a state machine. Can you test it in a state relationship? Thanks, Tina
Eek, seems like the blindness has attacked. Thanks for pointing that out, I am on it now :)
Verified in 5.6.2.0 METHOD::/ns/Class.methodname works in the states /ns/Class.methodname works in the on_*
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2016-1996.html