Overview
Flow variables are key-value pairs that are passed as URL parameters in the user-created API endpoints or added by the user as parameters in the nested Flow.
Read about Flow variables.
Access Flow variable from JavaScript
var value = scenario.getVariable("unique key").getValue();
Set value for the existing Flow variable
scenario.getVariable("unique key").setValue('value');
Add the new Flow variable in JavaScript
var variable = new com.toolsverse.etl.common.Variable();
variable.setName('name');
variable.setValue('value');
scenario.addVariable(variable);
Access the Flow variable from the Source query and Destination query
To access the value of the Flow variable from the Source and Destination queries, use {flow variable name}
.
Comments
0 comments
Please sign in to leave a comment.