Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run action with input parameters #79

Open
vkNIL opened this issue Aug 4, 2020 · 1 comment
Open

Run action with input parameters #79

vkNIL opened this issue Aug 4, 2020 · 1 comment

Comments

@vkNIL
Copy link

vkNIL commented Aug 4, 2020

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?

@nblagoev
Copy link
Contributor

nblagoev commented Aug 4, 2020

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 nblagoev added this to the Backlog milestone Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants