Overview

This chapter contains examples which illustrate the use of script elements on the basis of scripts and illustrations.

In each example, information is provided as shown below:

The User Guide contains a detailed description of all the available script elements. These documents are linked to the Sample Collection's examples in which they are used. This ensures that you can easily apply the particular script elements.

Automic recommends working through the introductory chapters Getting Started and About ScriptsAbout AE Script before starting with this chapter because they familiarize you with the system and provide a sound background knowledge.

Beginners

Example

Description

Notification with variable message text

The notification that is given by the notification should include a message text depending on the task that activates it.

Display with Cockpit

Information about the agent's status and the computer's currently available memory should be shown in a cockpit.

Database Maintenance with Options

The AE database should be archived automatically by using a workflow. A dialog should open in which the user can enter the specific settings.

Advanced Users

Example

Description

Dynamic input dialog for job Activation The creation of an input mask in order to select one or several agents on which a job should run. The available agents are dynamically retrieved from the AE database at runtime.
Controlling the Behavior of FileTransfers by using Conditions in a workflow A file transfer should be started through a workflow. Within the workflow, the system should check whether the source and the target file are available and set the corresponding actions.

Calling an MBean

The result of an MBean call should be transferred for further use.

Setting End Status depending on Report Content

The report of a job should be screened for particular contents with the end status being set depending on the result of this search.

Reaction to external Events

An SAP event should be reported to the AE system so that a reaction is possible.

Retrieving Error Message and Number

If an error occurs, the particular message text and number should be retrieved and sent by email.

Synchronization of active tasks

Active jobs should be synchronized manually.