Overview
It is possible to log parameters passed to the flow. The parameters can be set using one of the methods below. These parameters are automatically converted to the Flow Variables.
- Parameters passed as URL parameters or URL variables to the user-created API endpoints.
- Parameters passed as URL parameters to the run Flow by name API.
- Parameters passed as a payload to the run Flow by ID API.
- Parameters defined when creating nested Flows.
- Parameters passed as database loop parameters.
- Parameters passed as file loop parameters.
- Parameters set when executing flow manually.
- Parameters set when configuring the schedule.
- Parameters set when configuring the flow to be executed by Integration Agent.
Process
Step 1. Create Script Flow.
Step 2. Add the following JavaScript code:
var vars = scenario.getVariables();
if (vars != null && !vars.isEmpty()) {
for (var i = 0; i < vars.size(); i++) {
com.toolsverse.util.log.Logger.log(com.toolsverse.util.log.Logger.INFO, null,
vars.get(i).getName() + ' = ' + vars.get(i).getValue());
}
}
Comments
0 comments
Please sign in to leave a comment.