...
Note | ||
---|---|---|
| ||
You also can enter a script directly into a Universal Template, but you cannot select a stored script. |
Anchor | ||||
---|---|---|---|---|
|
Types of Scripts
There are five types of scripts:
Script | For use in Windows or Linux/Unix tasks. |
---|---|
SAP Definition | For use in SAP tasks. |
UDM Script | For use in UDM File Transfer tasks. |
Web Service Payload | For use in Web Service tasks. |
Data | For use in a script or task (see Data Scripts, below). |
Anchor | ||||
---|---|---|---|---|
|
Data Scripts
Data Scripts (Script Type = Data) are meant to be used with scripts and commands specified in tasks, and resolved when the script or command is executed. Data Scripts provide the script or command with access to a path on the UAG file system where the temporary Data Script content resides.
Note | ||
---|---|---|
| ||
Deleting a Data script is prohibited if it is referenced by one or more Universal Tasks or Universal Template Fields (Default Value). Changing the type for a Data script is prohibited if it is referenced by one or more Universal Tasks or Universal Template Fields (Default Value). The Tasks tab on the Script Details is enabled for Data scripts and lists Universal Tasks that reference the script via a mapped Script field. |
Anchor | ||||
---|---|---|---|---|
|
Using Data Scripts in a Script
To use a Data Script with a script, embed the Data Script in any of the following:
- Content of a Script specified in the Script field in a Linux/Unix or Windows task.
- Content of a Data Script.
- Universal Template Script (Script, Linux/Unix Script, or Windows Script field).
Anchor | ||||
---|---|---|---|---|
|
Using Data Scripts in a Task
To use a Data Script with a task, embed the Data Script in any of the following:
...
Note | ||
---|---|---|
| ||
Although you can embed a Data Script in the Command field or Parameters field of a Linux/Unix or Windows task, only scripts with Script Type = Script can be referenced in a Linux/Unix or Windows task; that is, it is the only type of script that is available for selection in the Linux/Unix or Windows task Script field. |
Anchor | ||||
---|---|---|---|---|
|
Embedding a Data Script
To embed a Data Script, use the following Script Function:
...
Additionally, for a Universal Template, you can create a Field of Type = Script, which lets you select or create Data Scripts. The Controller will create a variable for the Data Script Field, which you can embed in the Universal Template script using the Script Functions. This also lets you change Scripts when you run a Universal Task based on the Universal Template.
Anchor | ||||
---|---|---|---|---|
|
Restrictions on Embedding Data Scripts
For every embedded Script, the Script Type must be Data; otherwise, the task will transition to the Start Failure status with one of the following status descriptions:
...
Execution for script "script-name", contained within a script, command field, or parameters field, prohibited due to security constraints.
Anchor | ||||
---|---|---|---|---|
|
Creating a Script
Step 1 | From the Automation Center navigation pane, select Other > Scripts. The Scripts list displays a list of all existing scripts. |
---|---|
Step 2 | Enter / select Details for a new script, using the field descriptions below as a guide.
To display more of the Details fields on the screen, you can either:
|
Step 3 | Click a button. The script is added to the Controller database, and all buttons and tabs in the Script Details are enabled. |
...
Note | ||
---|---|---|
| ||
To open an existing record on the list, either:
|
Anchor | ||||
---|---|---|---|---|
|
Script Details
The following Script Details is for an existing script. See the field descriptions, below, for a description of all fields that display in the Script Details.
...
For information on how to access additional details - such as Metadata and complete database Details - for Scripts (or any type of record), see Records.
Anchor | ||||
---|---|---|---|---|
|
Script Details Field Descriptions
The following table describes the fields, buttons, and tabs that display in the Script Details.
Field Name | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Details | This section contains detailed information about the Script. | ||||||||||||||||
Name |
| ||||||||||||||||
Version |
| ||||||||||||||||
Description |
| ||||||||||||||||
Member of Business Services |
| ||||||||||||||||
| Type of script:
| ||||||||||||||||
| Controls whether or not the Script will be parsed in pursuit of Universal Controller variables. It allows the Controller to avoid the overhead of parsing a Script that does not contain variables.
| ||||||||||||||||
|
For UDM Scripts, Source and Destination credentials are available for use. The credentials can be coded into the UDM script using the following File Transfer variables: The variables will be resolved by UDM internally. The following example illustrates the correct way to code them:
| ||||||||||||||||
Metadata | This section contains Metadata information about this record. | ||||||||||||||||
UUID | Universally Unique Identifier of this record. | ||||||||||||||||
Updated By | Name of the user that last updated this record. | ||||||||||||||||
Updated | Date and time that this record was last updated. | ||||||||||||||||
Created By | Name of the user that created this record. | ||||||||||||||||
Created | Date and time that this record was created. | ||||||||||||||||
Buttons | This section identifies the buttons displayed above and below the Script Details that let you perform various actions. | ||||||||||||||||
Save | Saves a new script record in the Controller database. | ||||||||||||||||
Save & New | Saves a new record in the Controller database and redisplays empty Details so that you can create another new record. | ||||||||||||||||
Save & View | Saves a new record in the Controller database and continues to display that record. | ||||||||||||||||
New | Displays empty (except for default values) Details for creating a new record. | ||||||||||||||||
Update |
| ||||||||||||||||
| Allows you to upload a script from the local file system and place it in the Content field (see Uploading a Script, below). | ||||||||||||||||
Copy | Creates a copy of this script, which you are prompted to rename. | ||||||||||||||||
Delete |
| ||||||||||||||||
Refresh | Refreshes any dynamic data displayed in the Details. | ||||||||||||||||
Close | For pop-up view only; closes the pop-up view of this task. | ||||||||||||||||
Tabs | This section identifies the tabs across the top of the Script Details that provide access to additional information about the script. | ||||||||||||||||
Tasks | Lists of all tasks using this script. | ||||||||||||||||
Notes |
| ||||||||||||||||
Versions |
|
Anchor | ||||
---|---|---|---|---|
|
Uploading a Script
To upload a script into the Content field in the Script Details:
...