Example: Setting Avaloq Job Attributes Using Variables and Automation Engine Scripting

This example illustrates how to set the attributes of an EXECUTEJOB Avaloq job called Test Success that runs in a Workflow. Instead of specifying the job parameters using the user interface, this example shows how to define variables at the Workflow level that the job inherits. The job contains a script that uses those variables to set the job attributes.

  1. Create the EXECUTEJOB job.

  2. Go to its Variables & Prompts > Variables page and define the variables that will set the attributes as follows:

    &CONNECTION# = L13_CONN

    &DEBUGLEVEL# = 0

    &TIMEOUT# = 180

    (Click to expand)

    Screenshot showing the Variables page of an Avaloq job where the following variables are defined: &CONNECTION# = L13_CONN, &DEBUGLEVEL# = 0 and&TIMEOUT# = 180.

  3. Go to the Process > Pre process page and enter the following script:

    :put_att AVTimeoutValue = &timeout#

    :put_att AVDebugLevelValue = &debuglevel#

    :put_att AVConnectionValue = &connection#

    :put_att AVJobNameValue = "Test Success"

    Screenshot showing the Pre-Process page of an Avaloq job where the following scripts are defined: :put_att AVTimeoutValue  = &timeout#, :put_att  AVDebugLevelValue  = &debuglevel#,:put_att AVConnectionValue  = &connection#, :put_att AVJobNameValue  = "Test Success".

  4. Save the job.

  5. Insert the job in a Workflow

    Screenshot of a Workflow that includes the Avaloq job with the previously defined script.

See also:

Setting Avaloq Job Parameters Using Variables and Automation Engine Scripting