Script Snap Execution Using Pipeline Parameters

The following example demonstrates the execution of the Script Snap using the pipeline parameters; the script file in the SLDB is passed as a Pipeline parameter. The pipeline demonstrated above is modified to accept pipeline parameters by configuring the Script file property. For the scripts to be passed as a pipeline parameter, the script file should be present in the project folder in SnapLogic. Confirm that the script files are present in the Files section inside the Manager; if not, upload them by clicking on the '+' icon.

Download the Pipeline

In this example, there are three files, one for each type of scripting language:

Below is a snapshot of the pipeline's properties and configured pipeline parameters.

The individual Script Snaps are configured as shown below:



JavaScript



Python Script



Ruby Script