vrealize-developer-tools icon indicating copy to clipboard operation
vrealize-developer-tools copied to clipboard

Run action with input parameters

Open vkNIL opened this issue 4 years ago • 1 comments

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?

vkNIL avatar Aug 04 '20 09:08 vkNIL

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.

nblagoev avatar Aug 04 '20 09:08 nblagoev