vrealize-developer-tools
vrealize-developer-tools copied to clipboard
Run action with input parameters
Is there a way to execute command palette's vrealize: Run Action with input parameters.
For instance if I have an action sum(x, y) that returs the sum of these two numbers, is there a way to run this action with two input parameters using vrealize dev tools?
Hi @vkNIL, at the moment the only way to provide the input values is to wrap your action into a parameterless one:
// You can create a wrapper Untitled JavaScript file, and execute Run Action on it.
var x = 5;
var y = 10;
var result = System.getModule("com.your.module").sum(x, y);
System.log(result)
In a future version, we are thinking to add support for action parameters, and you would be asked to provide values when you execute Run Action.