Example: Setting 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 o define variables at 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 & Promts > Variables page and define the variables that will set the attributesas follows:

    &CONNECTION# = L13_CONN

    &DEBUGLEVEL# = 0

    &TIMEOUT# = 180

    Screenshot of the Variables definition page

  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 of the Pre Process page with the script

  4. Save the job.

  5. Insert the job in a Workflow

    Screenshot of the Workflow with the job

See also:

Setting Job Parameters Using Variables and Automation Engine Scripting