Hello guys,
I am currently working on a vRO plug-in which needs to invoke an action (internally - in the Java client). My temporary workaround was to use REST and initially was fine, but now there is a problem that I struggling with.
First, making a REST call to a system which the plugin is currently part of seems like a bad idea. Second, some of the actions will need some custom objects to be passed as input paramaters - but these objects are notSDKObjects - they are available in the plugin.
Example:
ActionService actionService = new ActionService(session); ExecutionService executionService = new ExecutionService(session); ExecutionContext context = new ExecutionContextBuilder() .addParam("objA", objA) .addParam("objB", objB) .addParam("message", message) .build(); Action action = actionService.getAction(moduleName, actionName); executionService.execute(action, context);
Here, objA and objB are defined and they provide some methods which the action should use internally.
My question is: Is there any way of passing custom objects as input parameters when invoking vRO action?
Thanks for the help!