Parameters

In any Ivanti Automation environment, there will be Tasks that are used many times over, with just minor changes to their configuration. For example, you may have configured a Task Create Local User. Each time you use this Task to create a new local user, the only thing that differs from the last time is the user name. Of course, you could manually adjust the values in the Task each time you use it, but it is much more efficient to parameterize these values.

Parameters act as placeholders for values in various fields, such as text, file paths, credentials, etc. The actual values of these fields can be provided when they are needed (when scheduling the Job or when importing the Building Block) or default values can be pre-populated and changed when needed.

Why use parameters?

  • to build more generic Modules (and customize (parts of) a Task when it is actually needed).
  • to create more generic Building Blocks (and transport Modules, Projects and Run Bookss from one Ivanti Automation environment to another).
  • to restrict the type of input provided at the moment of use.
  • to provide default values, with the option to overrule these defaults at the moment of use.
  • to re-use information in various Modules of a Project or Run Book (input is requested only once).
  • to use as base for a condition or evaluator.

Different levels

You can configure parameters on three levels:

  • Module parameters: to parameterize values in Tasks.
  • Project parameters: to link Module parameters from various Modules in a Project. A Project parameter is an umbrella parameter for a set of Module parameters that occur in one Project. With a linked Project parameter, input is requested only once.
  • Run Book parameters: to link Module parameters and/or Project parameters from various Modules and/or Projects in a Run Book. A Run Book parameter is an umbrella parameter for a set of Module or Project parameters in one Run Book. With a linked Run Book parameter, input is requested only once. In Run Books, Module parameters and Project parameters are known as Job parameters.


Navigation

On Task level, on the Setting tab, in the relevant field, you can add an individual parameter (manually or automatically).

On Module level, on the Parameters tab, you have an overview of all created parameters. From here, you can add an individual parameter or automatically create a set of parameters.

On Project or Run Book level, on the Parameters tab, you have an overview of all linked and unlinked Project or Run Book parameters. From here, you can manage and link your parameters.

Actions

Parameters tab

In the Parameters area:

  • Add a new parameter manually
  • Delete one or more Run Book or Project parameters
  • Change the order in which Run Book or Project parameters are presented at input moment (with the Arrow buttons).
  • Create Run Book or Project parameters automatically (via AutoCreate). During creation, you will also be asked if you also want to link the Run Book parameters to matching Job parameters automatically.
  • Delete Run Book or Project parameters that are not linked to any Job or Module parameters in the Run Book or Project (via Cleanup).

In the Links area:

  • Link Project or Run Book parameters with the following actions:
    • None: each Module parameter keeps its own value.
    • Set initial value linkaction_set: the Run Book or Project parameter will set the value for the Module parameter (as input).
    • Get initial value linkaction_get: the Run Book or Project parameter will get the value from the Module parameter after its Module has been executed (output).
    • Both linkaction_both: the Run Book or Project parameter will set the value for the Module parameter as input and after execution of its Module gets its value from the Module parameter


Scheduling Job with parameters

On the Job's Parameters tab an indication is shown when input is needed. If specified in the parameter input settings, a confirmation request with the provided parameter values is shown directly after the schedule.

The use of Global Variables in Run Book or Project parameters, conditions and evaluators is not supported.