An Alert notification can trigger additional workload automatically. When a job reaches the state specified in the Alert notification, the server automatically triggers the Event defined in the Alert. For example, when the last job of an Application completes, an Alert can trigger an Event to run another Application. You can trigger an Event for all jobs or specific jobs in an Application.
An Alert notification can also run a JavaScript script automatically. When a job reaches the state specified in the Alert notification, the server automatically runs the JavaScript script defined in the Alert.
An Alert can run a JavaScript script to execute commands such as the following:
You can store the scripts for these actions in a central repository.
For example, you can set up an Alert to run a JavaScript script to complete an Application when a job is overdue or resubmit a job if it completes with a particular exit code before a specific time.
In the JavaScript script that the Alert runs, you can use built-in variables. When the Alert runs, the server sets those variables. These variables are only available in the JavaScript script that specific Alert runs. You can assign these variables to other variables so that other JavaScript scripts can use them.
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|