Parameters in Visual Integrator

Parameters in Visual Integrator (VI) allow you to create user-defined variable substitutions. These parameters become available for other scripts in the project and are often used in Production scripts with Loop nodes that run multiple Visual Integrator scripts based on parameter values.

There are a number of ways to set the values for VI parameters:

  • Use Defaults

    A default value can be set when Creating Parameters in Visual Integrator. This value is used if the parameter is used when a task or script is run and no other value is passed.

  • Set Externally

    A parameter value can be set externally from the command line, from a text file, or from a calling Production script. For the latter:

    • A Click Action in DivePort that calls a Production script passes in QuickView values as parameters. See Running Scripts from DivePort.
    • A Production Loop Control Node calling a VI script can set different parameter values for each iteration.
    • A Production Parameter Process Node can set parameter values from the server and make them available to subsequent nodes, including Integ nodes.
  • Use Setparm

    The VI Setparm Output Object can be used to set parameters that are available for subsequent tasks and task lists. This is useful when working with Tunnel scripts where the parameters are calculated based on values passed into the tunnel.

  • Use Iterate

    The VI Iterate Output Object iterates a VI task or task list on each row of the input data flow, varying parameters based on input flow columns.

  • Use a Text File

    Parameter values, including a list of values in an array, can be defined in a simple text file within the project. See Parameter Example: Using Array to Select Columns.