Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

How to run an action that is defined in another plugin

$
0
0



From plugin A I want to run an action defined in plugin B. The action does not require an ActionContext so I am just dispatching the message like this:


       var actionEvent:ActionInvocationEvent = new ActionInvocationEvent("com.xyz.newPolicy", null);



        dispatchEvent(actionEvent);



When the message is dispatched I see the module for plugin B is run but the handler for the action in plugin B is not called.



If plugin B first runs the same action, then the above event dispatch from plugin A will work as expected.



Is there a supported method to run an action from plugin A that is defined in plugin B?



Thanks,



-Darrell



Viewing all articles
Browse latest Browse all 2218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>