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.
Accessing flow variable from JavaScript
var value = scenario.getVariable("unique key").getValue();
Setting value for the existing flow variable
scenario.getVariable("unique key").setValue('value');
Adding the new flow variable in JavaScript
importPackage(com.toolsverse.etl.common);
var variable = new Variable();
variable.setName('name');
variable.setValue('value');
scenario.addVariable(variable);
Accessing 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.