Beruflich Dokumente
Kultur Dokumente
ONE AUTOMATION
This training material is supposed to support you in studying the Automation Engine
Basics.
training@automic.com
2
Aim of this Training Course
In this training, we aim at communicating the relevant knowledge for handling the User
Interface as well as the basics of Automation Engine object creation.
Requirements
You should know how to use a PC. You should also be able to operate a computer mouse.
Exercises
We will spend a lot of time practicing the acquired knowledge. The exercises include a
time specification on the corresponding pages in order to provide you with a time frame.
Upon completion of an exercise, we will discuss it. After the training, you may export
your solutions and the trainer's solutions from the Automation Engine system and im-
port them into your system for further reference.
Last day
On the very last day, we aim at putting together all we have learned into one greater
whole. During this day, we may consolidate open issues.
Check it out!
3
4
Agenda
5
Agenda, Day 1
Start
What is AE?
Job object:
1. Exercise, Job
Lunch Break
Login object:
--Storage of login information for Job executions
Queue object:
--Quantity limiter for tasks
2. Exercise, Queue
Filter object:
--Creating simple Filter objects
--Usage in Jobs
3. Exercise, Filter
Break
FileTransfer object:
--Introduction to the FileTransfer object
--The most important information about object execution
4. Exercise, FileTransfer
End
6
Agenda
Agenda, Day 2
Start
Workflow object:
--Introduction to the Workflow object
5. Exercise, Workflow
Workflow object:
--Properties
Break
6. Exercise, Workflow
Workflow object:
--Further properties
7. Exercise, Workflow
Workflow object:
--Attributes
--Nested Workflows
--Handling Workflows
Lunch Break
Calendar object:
--Calendar object including all functions
8. Exercise, Calendar
Break
Schedule object:
--Scheduling tasks
9. Exercise, Schedule
End
7
Agenda, Day 3
Executing objects
--Recurring execution of tasks
--Non-recurring execution
10. Exercise, recurring execution
Notification object:
--Internal and external notification of users
--Variable Notifications
Break
Notification object:
--Sending of Job reports via email
--Usage in Workflows
11. Exercise, Notification
PromptSet object:
--Operation and usage
Lunch Break
Break
Include object:
--Sourcing out recurring scripts in text modules
AgentGroup object:
--AgentGroup object including all functions
--Usage in Jobs
End
8
Agenda
Agenda, Day 4
Documentation:
--Individual object and tab form
Break
Lunch Break
End
9
10
Table of Contents
Preface ��������������������������������������������������������������������������������������������������������������� 2
Requirements �������������������������������������������������������������������������������������������������� 3
Exercises ����������������������������������������������������������������������������������������������������������� 3
Agenda ��������������������������������������������������������������������������������������������������������������� 5
Agenda, Day 1 ��������������������������������������������������������������������������������������������� 6
11
2.1.1.1. Single Sign-On���������������������������������������������� 28
2.1.2. The Three Most Important Windows������������������������� 29
2.1.3. Setting Up Your Working Environment��������������������� 30
2.1.3.1. Suppressing Queries�������������������������������������� 30
2.1.3.2. Magnetic Windows���������������������������������������� 30
2.1.3.3. Font Sizes in the Editor and in Windows������������ 30
2.1.3.4. Multi-Desktop����������������������������������������������� 30
2.1.3.5. Filtering the Activity Window�������������������������� 31
2.1.3.6. Saving Window Settings��������������������������������� 31
2.1.4. Search Functions for Objects������������������������������������ 32
2.1.4.1. QuickAccess������������������������������������������������� 32
2.1.4.2. Search Function in the AE Explorer������������������ 32
2.1.4.3. Standard Search�������������������������������������������� 33
2.1.5. Global Statistics Search (Selective Statistics)���������� 34
2.1.5.1. Default Values for Search Criteria�������������������� 34
12
4.1.5.1. Job Report��������������������������������������������������� 48
4.1.5.2. Interim Job Report for Windows and Unix Jobs�� 48
4.1.5.3. Statistics Window������������������������������������������ 49
4.1.5.4. Detail Window����������������������������������������������� 50
1. Exercise �������������������������������������������������������������������������������������������������� 51
4.1.6. Further (Job) Parameters������������������������������������������ 52
4.1.6.1. The Title������������������������������������������������������ 52
4.1.6.2. Tasks Running Parallel����������������������������������� 52
4.1.6.3. Automatically Deactivate when Finished����������� 52
13
3. Exercise ������������������������������������������������������������������������������������������������� 74
7. Exercise�������������������������������������������������������������������������������������������������� 99
9.1.6. Attributes Tab���������������������������������������������������������� 100
9.1.6.1. Selecting a Queue and Children Queue����������� 100
9.1.6.2. Result Evaluation of Individual Tasks�������������� 100
9.1.7. Sub-Workflows��������������������������������������������������������� 101
14
9.1.7.1. Advantage of Using Sub-Workflows �������������� 101
9.1.7.2. Disadvantage of Using Sub-Workflows ���������� 101
9.1.8. Monitoring Active Workflows (Best Practice)��������� 101
9.1.8.1. Stop and Stop (Recursive)���������������������������� 102
9.1.8.2. Go and Go (Recursive)��������������������������������� 102
9.1.8.3. Cancel and Cancel (Recursive)���������������������� 102
15
12.3. Recurring Execution of Objects ���������������������������������������� 123
12.3.1. Logical AND Between Tabs������������������������������������� 123
12.3.1.1. Frequency Tab�������������������������������������������� 123
12.3.1.2. Timeframe Tab�������������������������������������������� 124
12.3.1.3. Days���������������������������������������������������������� 124
12.3.1.4. Range�������������������������������������������������������� 125
12.3.2. Object Type “Period”����������������������������������������������� 125
12.3.3. Recurring Tasks in the Activity Window ���������������� 127
10. Exercise ��������������������������������������������������������������������������������������������� 128
16
15.1.1. Time Event��������������������������������������������������������������� 149
15.1.1.1. Usage�������������������������������������������������������� 149
15.1.2. File System Event���������������������������������������������������� 150
15.1.2.1. Usage�������������������������������������������������������� 150
15.1.3. Database Event�������������������������������������������������������� 151
15.1.3.1. Usage�������������������������������������������������������� 151
15.1.4. Using Events as Stand-alone Runs/within a Workflow
�������������������������������������������������������������������������������������������������� 152
17
18
Chapter 1
Introduction to Automation
Engine (AE)
19
Chapter 1
Responses include:
21
1.1.3. AE System Architecture
An AE system consists of several components. The AE Server and the AE Database
build its core. All the information required to manage tasks is read from/written to the
database by the server. If a Job is to start on a particular operating system, the server
generates an executable Job from the Job definitions stored in the database. The op-
erating system Agent accepts the Job and passes it to the operating system. Agents
therefore serve as the connecting link between the operating system and AE server. AE
users access the AE system via the UserInterface.
Figure 1.1
22
Chapter 1
Figure 1.2
1.1.6. ECC
Automic’s Enterprise Control Center (or ECC) was initially introduced as an Add-
On Feature to Automic’s Automation Engine (AE). Its main purpose is to access AE using
different, predefined perspectives, depending on the users needs, via any web browser.
This has been enhanced to provide standard AE functionality, but also perspectives for
several different AE Add-On products. The available perspectives within ECC depend on
your installed ONE Automation products and their corresponding plugins.
23
1.1.6.1. ECC System Architecture
The ECC web application itself was tested to run on Microsoft Windows or SuSE Linux
and is supposed to work on various distributions of Unix/Linux. It requires an Apache
Tomcat web server and an Oracle Java Runtime Environment (JRE). It has been tested
to run on Google Chrome, Mozilla Firefox and Microsoft Interner Explorer. The
exact specifications for this environment can be found within the ECC Installation Guide
or the corresponding ECC System Requirements brochure.
This web-based concept allows users to log on to ECC via the Web by using any com-
puter in order to monitor and control various ONE Automation processes in an easy way.
ECC is used on a computer within this structure and is connected to the different appli-
cations. The following illustration describes a network structure that includes computers
using various applications:
Figure 1.3
User 1 has logged on to ECC via the Web and starts a task (an executable object that is
going to run). Tasks are also referred to as activities. The effect is that job JOB01 starts
in the AE system “AE” and runs on the computer WIN01.
As the main focus within this training is set to the basic functions of the Automation En-
gine, these functions will be shown using the standard AE rich client UserInterface. Just
keep in mind that ECC can currently be used as well for most of the functions described
here, especially for monitoring purposes and that ECC is planned to cover all of AE‘s
UserInterface functionalities in future releases. If you are interested in more information
about ECC, just ask for the separate trainings available covering the ECC UserInterface.
24
Chapter 2
The UserInterface
(Rich Client)
25
Chapter 2
2.1.1. Login
You must first log in to be able to access an AE system:
Figure 2.4
1. Select the AE system to which you wish to connect from the Connection drop-
down list (see Chapter 1, Figure 1.2).
2. Enter the client in which you intend to work.
3. The user name has been provided by your system administrator. Enter it in the
field "Name".
4. In the field "Department", enter the department name provided by your admin-
istrator. If your user name exists only once within the client, it is unique and you
do not have to fill in the field "Department".
5. When you log in for the first time, your default password is ‘pass’. If an LDAP
connection has been activated, you will need to log in with your domain user
and password.
6. The languages German (D), English (E) and French (F) are available.
7. There is no functional difference between the different colors. If you establish
additional connections to other clients, these connections are also distinguished
by different colors.
27
2.1.1.1. Single Sign-On
Starting with AE V11, users can log on to their AE systems (standard UserInterface and
ECC) without having to enter login details any more. Authentication then takes place via
a Service Directory (for example: Microsoft Active Directory).
As soon as your administrator has installed and configured SSO for your environment,
your AE login screen will show 2 additional entries:
Figure 2.5
Use integrated authentication: The fields Name, Department and Password are
greyed out when you select this option:
Figure 2.6
The OS user under which the UserInterface was started is used for the authentication
process in this case, but you still can enter a different connection, client, language and
session color.
Enable autologin: With this option being activated, you will automatically be logged in
when you start the UserInterface the next time, without the login dialog being displayed
any more, except that your attempt to log on fails (for whatever reason).
Note: As soon as you select “Enable autologin”, the UserInterface will not prompt you
any more for a different AE connection or client. Thus, the option is useful if you always
have to connect to the same AE system and client. But you should avoid flagging this
option as soon as you may need to login to different systems and/or clients.
Note for administrators: The configuration and activation of Single Sign-On for AE needs
the setup of a new AE server process called JWP (Java-based Work Process) and is de-
scribed in detail within the AE Administration Guide, under “ Setting up Single Sign-On”.
28
Chapter 2
Figure 2.7
AE Explorer
You can open one or several AE Explorer(s) by selecting FILE => EXPLORER.
Activity Window
You can open one or several Activity windows by selecting VIEW => ACTIVITIES.
Message Window
You open the Message window by selecting VIEW => MESSAGES. Only one Message
window may be opened per UserInterface.
You can also open the three windows using the buttons in the toolbar:
Figure 2.8
29
2.1.3. Setting Up Your Working Environment
Particular settings can be set up individually for each user. These include:
• Suppressing queries
• Magnetic windows
• Font Sizes in the editor and in windows
• Multi-Desktop
• Position and number of windows
• Filtering the Activity Window
Most of the user settings are done via OPTIONS => SETTINGS on the main menu bar:
Figure 2.9
2.1.3.4. Multi-Desktop
To open a new desktop, click the large plus
icon on the lower edge of the UserInterface.
In a new desktop, you can open Activity win- Figure 2.10
dows or Explorers, for example.
TIP: You cannot drag a window from one desktop to another.
30
Chapter 2
31
2.1.4. Search Functions for Objects
Three search functions are available for objects within the UserInterface.
2.1.4.1. QuickAccess
The QuickAccess function allows you to search for objects and access the objects di-
rectly from the hit list. A search is carried out across all clients. The folder structure of
the objects is not relevant.
Figure 2.13
Figure 2.14
To open the search, press CTRL + F. An input field and control elements appear on the
right-hand side of the Explorer. By default, the search is conducted according to the
object name. However, you can also search for other attributes. Select the attribute you
require from the drop-down list . Enter your search string in the search field . Results
are highlighted in AE Explorer and are displayed in a results list.
32
Chapter 2
Figure 2.15
Figure 2.16
In the window that opens (Figure 2.17), first select the object type if you know the type.
If you do not know the object type, select ‘All’ .
PLEASE NOTE: if you perform this search in clients that have a lot of objects, this can
have a significant negative impact on the performance of the entire AE system. There-
fore, try to use as many filters as possible in your search (be as accurate as possible).
Figure 2.17
33
You can narrow down your search further by restricting the path from where the search
begins . The selected path is displayed in the From path field . You can also manually
enter the path here. Enter the full object name or part of the name in the Name field
. You can use the question mark wildcard to represent exactly one character and the
asterisk wildcard (*) to represent any number of characters. To start the search, click
Start or press the Enter key.
Figure 2.18
Figure 2.19
34
Chapter 2
All relevant results are displayed in the results window. You can redefine your filters by
clicking Filter :
Figure 2.22
35
36
Chapter 3
AE Object Orientation
37
Chapter 3
39
3.1.2. Character Conventions for Objects
An object name can be up to 200 characters long and may comprise the following char-
acters: A-Z, 0-9, $, @, _, . # and, from V11 on, the hyphen (-). TimeZone objects are
exempted. Their names are limited to eight characters.
1. Based on object names, you may establish a sophisticated authorization concept. This
authorization concept may be used to handle access to objects (e.g., particular users
may only access objects which start with ‘APP01’).
2. Using Automation Script, object names can be used to set parameters for objects.
3. A certain system for object names makes it easier to find objects via the search func-
tion.
Figure 3.24
TIP: You may create objects using the keyboard using shortcuts. A list of all shortcuts
can be found in the online help under User manual, UserInterface, Shortcuts.
40
Chapter 3
Figure 3.25
NOTE: Entries in an object and changes made to an object take effect as soon as you
save the object.
41
3.1.6. Creating Folders
Folders (FOLD) are created by clicking FILE => NEW FOLDER or NEW FOLDER on the
Explorer menu bar. Folder names are based on the same naming conventions as objects.
During this training course, we begin at the bottom of the hierarchy with the Job. We will
first explain how something works that must be started automatically later on, before
we discuss the actual start mechanism.
42
Chapter 4
Job Object
43
Chapter 4
Direct communication with SQL data bases or systems such as PeopleSoft or Siebel also
form part of the application Job.
In order to permanently satisfy the requirement for new interfaces for specific applica-
tions without having to create a completely new Agent each time, Automic developed RA
(Rapid Automation) Jobs. RA Jobs serve to uniformly communicate with various applica-
tions (for example, Business Objects, Mail, FTP, HyperV, Informatica, Oracle eBusiness,
VMWare, WebServices etc.).
Discussing these various interfaces would exceed the scope of this basic training course.
Application Jobs are therefore not discussed in this training course.
The Job does not work if there is no Host or Login. The Job is ineffective if the command
or program call is missing.
45
4.1.3.1. Selecting the Agent
When you create a Job, you determine
the operating system or application
on which the Job will run by selecting
the corresponding template. The Job
opens automatically as soon as you
have assigned an object name. Go to
the Attributes tab. From the Host drop-
down box, select the Agent on whose
operating system or application the
Job should run. If you know the name
of the Agent, you can also enter the
name directly in the field using the
keyboard.
Figure 4.27
TIP: If you have the right to edit a Login object, you may open it by right-clicking the
entry in the drop-down box.
For more information on Login objects, please see “Login Object” page 55ff.
46
Chapter 4
Windows Unix
dir ls
echo test echo test
ping 127.0.0.1 ping -c 4 127.0.0.1
net start sleep 5
NOTE: This training material discusses Windows and Unix/Linux Jobs as all AE custom-
ers have an Agent for at least one of these two operating systems. This Agent is the AE
Server Agent.
TIP: You do not have to close an object to be able to execute it. Simply leave it open if
you want to edit it further.
You can access the Job report described below and the Statistics window directly from
the Job’s menu bar, provided the Job is still open. If the Job is no longer open, highlight
the Job in the Explorer. The LAST REPORT and STATISTICS menu items are also avail-
able on the Explorer menu bar.
You can access the Detail window described under “4.1.5.4. Detail Window” page 50
via the previously opened Statistics window only.
Figure 4.30
47
4.1.5.1. Job Report
A Job report contains the information returned by the operating system or application.
If a Job is still open, you will be able to see the LAST REPORT button. If the object has
already been closed, this pushbutton is available in the AE Explorer’s menu item if you
click the object in the AE Explorer. The following example shows a Windows Job report:
Figure 4.31
TIP: It is possible to search automatically for specific messages in this and other reports.
The Filter object is used for this.
Please note that a Job may have multiple Report tabs. The Report tab displays the actual
Job report after a Job has ended on the target system. If a Job has not ended yet, you
can view an interim Job report via the Directory tab.
Highlight the report as shown in Figure 4.32 page 49 by right-clicking the report and
then click OPEN. The report will open in your standard editor.
48
Chapter 4
Figure 4.32
You can specify how many lines will be displayed by clicking OPEN AS TEXT. This is use-
ful for very large reports as only the requested lines are transferred from the Agent to
the UserInterface file system. If the re-
quested report is larger than 10 MB, the
following message appears (Figure
4.33):
TIP: If a Statistics window contains exactly 50 entries, this is most probably due to a
setting made in your UserInterface. You can change this value: Menu bar OPTIONS =>
SETTINGS => STATISTICS tab.
Figure 4.34
Figure 4.35
49
4.1.5.4. Detail Window
You can access the Detail window via the Statistics window only (see Figure 4.34).
Highlight the statistics record whose Detail window you want to open and click DETAILS
on the menu bar. Alternatively, you can also double-click the statistics record. The Detail
window is especially helpful if error messages have been returned. It provides informa-
tion that can only be found here or in the Message window:
Figure 4.36
TIP: You can copy values or information from the Detail window to the clipboard by
highlighting the relevant information with the mouse and pressing CTRL + C. This also
applies to many other windows in which the COPY menu item is not available (for ex-
ample, the Message window).
50
Chapter 4
1. Exercise
Duration approx. 20 minutes
The following applies to all tasks: Execute the Jobs several times. Read
the corresponding reports, statistics and details for the execution. Fa-
miliarize yourself with how Jobs are handled.
1. Task:
Create four Jobs. Select the commands from the following table:
Windows Unix
dir ls
echo test echo test
ping 127.0.0.1 ping -c 4 127.0.0.1
net start sleep 5
2. Task
Create one Job where all 4 commands from task 1 are executed one
after the other and check the results.
3. Task:
Add an incorrect command like "eco error" as the first command to the
Job from task 2. What is different in the results? Move the incorrect
command to the end of the commands. What is different now?
51
4.1.6. Further (Job) Parameters
The following parameters are optional. They are also available in FileTransfer and Work-
flow objects:
Figure 4.39
52
Chapter 4
The quickest way to find erroneous runs after they were executed with errors is to keep
them in the Activity window. They will remain there until they are deactivated. Deactiva-
tion only removes entries from the Activity window but does not delete them from the
database.
You specify whether and under what conditions Jobs are kept in the Activity window as
follows:
• No: ‘Error-free runs’ and ‘erroneous runs’ remain in the Activity window. You
must deactivate these manually. This setting can be useful for debugging pur-
poses. However, it should not be the default setting.
• After error-free execution: ‘Error-free runs’ are automatically deleted from the
Activity window. ‘Erroneous runs’ remain in the Activity window and must always
be deactivated manually. This setting can be combined with the Error-free status
and Time delay.
• After an error-free restart: ‘Error-free runs’ are automatically deleted from the
Activity window. ‘Erroneous runs’ remain in the Activity window until the restart
has been completed successfully. If the restart is not successful, the entries must
always be deactivated manually. This setting can be combined with the Error-
free status and Time delay.
• Always: ‘Error-free runs’ and ‘erroneous runs’ are always automatically deleted
from the Activity window. This setting can be combined with the Time delay.
The example in Figure 4.39 shows how the individual parameters can be combined.
After error-free execution, the Job is automatically removed from the Activity window
after a time delay of a day (1440 mins = 24 hours). To be ‘error-free’, the Job must have
been assigned the ENDED_OK status.
TIP: The maximum value of tasks that can be displayed in the Activity window is 20,000
(default: 5,000). If this value is exceeded in an Activity window, it remains empty and
a message is displayed at the lower edge of the Activity window indicating that the limit
has been exceeded. In such cases, you need to filter the Activity window (see “2.1.3.5.
Filtering the Activity Window” page 31), so that the records that you are interested
in appear again. Please also remember to deactivate records that you no longer need.
Figure 4.40
53
54
Chapter 5
Login Object
55
Chapter 5
For many AE customers, the Login object is an administrative object that may be cre-
ated and edited by only a few users.
Figure 5.41
57
This is useful if, for example, there is a technical user for all computers of the same op-
erating system. In this case, the same Login object can always be entered in the Jobs
for the purpose of Job execution.
Figure 5.42
• The Login information of the fully qualified entry is used if an Agent which has
been fully qualified in the Login object is used in a Job.
• The Login information of the partially qualified entry is used if an Agent that has
been partially qualified in the Login object is used in a Job.
Figure 5.43
58
Chapter 6
Queue Object
59
Chapter 6
• limits the number of tasks that can start (‘quantity limiter’) and
• controls the processing sequence of tasks that are waiting in different Queues
(‘prioritizer’).
All executable objects (Jobs, FileTransfers, Workflows, and so on) must be allocated to
a Queue.
Figure 6.45
61
6.1.2.2. General Queue Object as a ‘Quantity Limiter’
Unlike the CLIENT_QUEUE, all other Queue objects
allow you to set the number of tasks that may be
started (Slots). By default, the value is unlimited,
that is, the Max. Slots check box has not been se-
lected. If you set the value to 1, the Queue will only
allow one active task. Please note that a process that
is permanently active, such as an Event, will occupy
this one slot permanently. This means that no other
task using the same Queue will be able to start.
Figure 6.47
Figure 6.48
62
Chapter 6
HERE’S AN EXAMPLE: The number of tasks that an Agent accepts can be limited to one,
for example, by the AE Administrator. If Jobs that are allocated to different Queues are
now started on this limited Agent, those Jobs whose Queue object has a lower priority
value are prioritized. The priorities range from 1 (highest priority) to 255 (lowest prior-
ity).
PLEASE NOTE: If one of the conditions specified above is not met, setting or changing
the priority in a Queue object will have no influence on the order in which tasks are
executed.
EXAMPLE: The number of free slots in a Queue object is currently set to 2. In the Activity
window, there are two tasks with the ACTIVE status and a further task with the WAIT-
ING FOR QUEUE SLOT status.
Figure 6.49
The number of free slots in the Queue object is subsequently increased to 3. A third task
may occupy the third slot that is now available. It is assigned the ACTIVE status.
Figure 6.50
63
6.3.1.2. Changes in the Activity Window
You can also change a Queue object in the Activity window (Edit object). These changes
are permanent (just like those made using the Explorer)!
Right-click the Queue and then click MODIFY to make temporary modifications:
Figure 6.51
In the example, the number of slots is increased to 3. The task that has been waiting
immediately occupies the additional third slot:
Figure 6.52
PLEASE NOTE: Changes made in the Activity window under the MODIFY menu item ap-
ply until a further change is made in the Activity window or in the object definition, or
until the next automatic modification by an Exception (see Figure 6.47).
You can find out which AE user changed the settings for a Queue in the Activity window
by reading the Queue’s report.
64
Chapter 6
Figure 6.54
Figure 6.56
65
6.3.2. Displaying Queues in the Activity Window
Click the Queue
root entry in
the Activity
window to see
the activities of
all the Queues:
Figure 6.57
Click on a spe-
cific Queue to
only display the
activities for
this particular
Queue.
Figure 6.58
Figure 6.59
6.3.3.2. Canceling
As shown in Figure 6.59, you can also cancel a task that is waiting (click CANCEL). The
task will then have the ENDED_CANCEL – MANUALLY CANCELLED status in the statistics.
66
Chapter 6
2. Exercise
Duration approx. 10 minutes
The aim of this training course is not to teach you how to create Queue
objects, but rather to show you how to use them. For this reason, each
participant is provided with a predefined Queue object.
67
68
Chapter 7
Filter Object
69
Chapter 7
• Job
• FileTransfer
• RemoteTaskManager
• txt
• doc
• csv
Figure 7.60
After you have created your Filter object, click the <blank> field
and select the report type that you want to scan from the drop-
down list. Select REP to search a Job’s operating system report.
PLEASE NOTE: If you select a report type that does not exist for
the execution of a task, for example, PLOG (Agent log), the AE
server will set the task to the FAULT_POST_PROCESSING status.
Figure 7.61
71
After you have selected the report type, click the <blank> field
and specify whether the search string should appear in the report
(contains) or should not appear (does not contain).
Figure 7.62
Enter your search string in the empty field (in this case:
‘not found’).
Figure 7.63
If you want to search for additional strings, click the plus sign at the end of the line.
Here, it is important to note how search strings are related to each other:
In your Filter object, you made an ‘assertion’ (i.e., ‘the report contains/does not contain
xyz’). In the output scan, this assertion is now combined with a condition.
• If the assertion that was made in the Filter object is true (or false), then
change the return code of the task (and execute an object).
In the True/False column, specify whether the assertion made is true or false. In the
Set return code column, enter the return code that will be set for the Job if the asser-
tion is true. In the Execute column, you can specify an optional object that should be
executed in addition to the return code modification. This could be a so-called Notifica-
tion object, for example.
Figure 7.64
72
Chapter 7
Here is the condition under which a Job’s return code is set to 5 once again in text form:
• If it is ‘true’ that the Job’s report contains the search string specified in the Filter
object, set the Job’s return code to 5.
• Or, to put it more simply, if ‘not found’ occurs in the Job report, the Job will end
with return code 5.
NOTE: If you specify the same Job under Execute, you will end up with a loop. There will
be no warning from the system. So be careful when you select objects.
The Output Scan generates its own Output Scan tab in a Job report:
Figure 7.65
73
3. Exercise
1. Task:
Have a Job report searched for a particular string. When the search
string has been found, set the Job's return code to 3.
Example: ‘ERROR’ is available in the Job report and the return code is
set to 3.
2. Task:
You wait for a particular ‘trigger word’ in an application. If this does not
appear in the Job report, the Job should end with return code 7.
For example: ‘Trigger word’ is not found in the Job report, return code
is set to 7.
3. Task:
The word ‘Test’ must occur in a Job report and the word ‘error’ should
not appear. If one of these conditions cannot be met, the Job should
end with return code 10.
TIP: Under Windows and Unix, you can use the echo command to generate any output
of your choice in a Job report (for example, ‘echo test’).
74
Chapter 8
FileTransfer Object
75
Chapter 8
Figure 8.66
77
8.1.2. The Four Most Important Parameters
The four most important FileTransfer parameters are:
NOTE: In some cases, a FileTransfer can still be executed even if a Login object has not
been specified. An AE privilege makes this possible. In this case, files are processed with
the rights of the user who started the Agent.
When specifying the destination file, you can use the star character (*) as often as you
want. This represents the entire variable part of the source specification, beginning with
the first (? or *) and ending with the last wildcard character (? or *).
In addition, up to nine placeholders can be used when specifying the destination file.
These refer to a specific wildcard character (?, *) in the source file name. These place-
holders are composed of the & character and the numbers 1 to 9: &1, &2, &3... &9. The
number indicates which wildcard in the source specification is referred to (see examples
6, 7, and 8 on the following pages).
78
Chapter 8
NOTE: If you do not specify a path in From file but only include a star (*), and you select
Use wildcards and Include sub-directories, the system will search for every file starting
in the root directory. When combined with Erase source file, this will result in a vast
quantity of files being transferred and deleted.
Here are some examples of how to create file names with wildcards. Here we assume
that the file ABC123YXZ.txt exists:
EXAMPLE 1:
Search filter ABC1 * XYZ.txt
Hit ABC123XYZ.txt
Pattern for generating the new file name PPP *.ini
Name of the new file after the transfer PPP23.ini
EXAMPLE 2:
Search filter ABC1 * XYZ.txt
Hit ABC123XYZ.txt
Pattern for generating the new file name *_ZZZ_*
Name of the new file after the transfer 23_ZZZ_23
EXAMPLE 3:
Search filter A * 2 * .txt
Hit ABC123XYZ.txt
Pattern for generating the new file name * .ini
Name of the new file after the transfer BC123XYZ.ini
EXAMPLE 4:
Search filter A *12* Y *.txt
Hit ABC123XYZ.txt
Pattern for generating the new file name * .ini
Name of the new file after the transfer BC123XYZ.ini
EXAMPLE 5:
Search filter A*BC12*Y*.txt
Hit ABC123XYZ.txt
Pattern for generating the new file name * .ini
Name of the new file after the transfer BC123XYZ.ini
EXAMPLE 6:
Search filter A*123X*.txt
Hit ABC123XYZ.txt
Pattern for generating the new file name &1_GGG_&2.ini
Name of the new file after the transfer BC_GGG_YZ.ini
79
EXAMPLE 7:
Search filter A*123X*.txt
Hit ABC123XYZ.txt
Pattern for generating the new file name &2_GGG_&1.ini
Name of the new file after the transfer YZ_GGG_BC.ini
EXAMPLE 8:
Search filter ???.txt
Hit AE_.txt
Pattern for generating the new file name &3&2&1.txt
Name of the new file after the transfer _EA.txt
The meaning of the parameters Code, Compression, Delete source and Include sub-
directories which are available in the Attributes tab will be explained below.
8.1.3.2. Compression
Compression is disabled by default (Default value). If a 10 Mbit line (or less) is used,
compression can help save time when transferring files, as transfers will be faster. On
the other hand, you must bear in mind that you will need time to compress and decom-
press your files.
80
Chapter 8
Figure 8.68
Figure 8.69
81
4. Exercise
1. Task:
Create a fully qualified FileTransfer which transfers one file of your
choice.
2. Task:
Create a partially qualified FileTransfer which transfers several files.
You may ask the trainer for some files.
3. Task:
Create a partially qualified FileTransfer that should transfer files with
the D2VH*.zxb name pattern. In this task, we assume that the FileT-
ransfer does not find any files.
82
Chapter 9
Workflow Object
83
Chapter 9
1. Result Relation
2. Time Relation
Figure 9.70
85
9.1.3. Creating a Simple Workflow
Open your Workflow and insert one or sev-
eral objects by dragging them from the AE
Explorer to the Workflow tab.
Figure 9.72
86
Chapter 9
5. Exercise
Duration approx. 15 minutes
Create a simple
Workflow with three
Jobs and set them
up as shown.
Familiarize yourself
with the line tool
(create, delete, and
reposition lines).
Figure 9.73
87
9.1.5. Object ‘Properties’
In an object, click the
square symbol shown in
Figure 9.74. The Prop-
erties window opens in
which you can set prop-
erties for this object.
Figure 9.75
Figure 9.76
NOTE: You cannot specify which tab is displayed when you open the Properties window,
as the Dependencies tab is always active.
88
Chapter 9
Figure 9.77
Figure 9.78
89
9.1.5.3. Calendar Tab
Let us assume that a Workflow is started every day by a start mechanism that we are not
yet familiar with. A particular Job, however, should only run on Saturdays and Sundays.
Solution: Go to the Calendar tab and select a proper Calendar object and corresponding
Keyword (the Calendar object will be discussed within the next chapter).
When using Calendars, PLEASE NOTE that the Calendar Condition, as shown here, will
be checked as soon as the Workflow starts. Let us assume that Job_A and Job_B are or-
dered one after the other in a Workflow. Job_A has a runtime of three hours, for Job_B,
the Calendar Condition ‘Every Tuesday’ applies. If the Workflow starts on Monday at
11 p.m., Job_B’s Calendar Condition will still be checked on Monday and the system will
establish that the Job is not allowed to start on Mondays. Due to Job_A’s long runtime,
Job_B would not actually be executed until Tuesday. Despite this, Job_B will not start on
Tuesday because its Calendar Condition has already been checked.
TIP: Even if you have not yet defined any Calendars in a client, the Calendar list will still
contain some Calendars. These are Calendar templates from the system client (client
0).
90
Chapter 9
6. Exercise
Duration approx. 15 minutes
91
9.1.5.4. Postconditions Tab
The Dependencies tab is used, among other things, to check the results of preceding
tasks. The Postconditions tab described below is used to formulate conditions that are
checked after a task has been executed. Preconditions work the same way (and there-
fore will not be mentioned separately), but they are used to formulate conditions that
are checked before a task is being executed.
The Postconditions tab is split into two parts: On the right, you will find a list of Condi-
tions or Instructions (depending on which category has been chosen). You can drag any
condition or instruction into the empty space on the left, as required.
The following step-by-step instructions show you how you can implement the follow-
ing requirement:
The expected end status of the task in question is ENDED_OK. If the task ends with an-
other status, it should be repeated twice after one minute in each case. If the last repeat
does not deliver the ENDED_OK status, an Alert object should be started. The Workflow
should also be blocked.
1. Step:
Open the task’s Properties (see Figure 9.74 page 88) and go to the Postconditions
tab. On the right you will find the Conditions tab. Drag the Status condition from the list
of Conditions to the left side of the window.
Figure 9.81
92
Chapter 9
2. Step
In the Parameter window that opens, select the ENDED_OK status from the drop-down
list and click OK to confirm.
Figure 9.82
3. Step
Insert an Else block via the menu indicator:
Figure 9.83
93
4. Step
Drag the USER DEFINED condition from the Conditions tab into the Else block. The Pa-
rameter window opens (Figure 9.85).
Figure 9.84
5. Step
Value1 should be highlighted in the
opened Parameter window. Click the
text “Value 1” and then the variable
picker which becomes available. The
Variable Selection window opens (see
Figure 9.86)
Figure 9.85
94
Chapter 9
Figure 9.86
6. Step
Go to the Instructions tab and drag a RESTART_TASK instruction to the USER DEFINED
block. In the window that opens, enter the interval between repeats in minutes:
Figure 9.87
95
7. Step
Insert an EXECUTE OBJECT instruction underneath the USER DEFINED block. In the
window that opens, enter the name of the Notification object to be executed (this is
explained in more detail in the CALL Notification chapter). There is no need to wait for
this object to end:
Figure 9.88
96
Chapter 9
8. Step
In the final step, insert a BLOCK instruction underneath the EXECUTE OBJECT block. In
the window that opens, you can add additional information that will be displayed in the
detail window for the task:
Figure 9.89
Figure 9.90
In such a
case, click
Figure 9.91
the loop
symbol.
Figure 9.92
The symbol will now change to a ‘1 in a circle.’ The RESTART TASK block
will now only be processed once.
97
The three green BLOCK, CANCEL_PROCESS_FLOW and RESTART_TASK instructions on
the Instructions tab generate a green frame. A green frame around a block indicates
that no further block will be processed after the particular block has been processed.
Postcondition processing thus ends.
A NOTE ON REPETITION:
In this configuration, it makes no difference whether the blocks have been set to repeat
or non-recurring execution. They will only be processed once.
Blocks can be deactivated and activated. This can be useful if you have created very
extensive and complex blocks that you occasionally need to replace with other blocks.
A deactivated block has a gray header. Open the menu by clicking the menu indicator
and then click Deactivate/Activate.
TIP: You can copy blocks within a postcondition, as well as copy a block from one post-
condition to another. Select the required block and press CTRL + C to copy the block to
the AE clipboard. Close the source’s Properties window and open the target’s Properties
window. Press CTRL + V to paste the block into the postcondition. It would be possible
to have a Workflow that serves as a template. This could contain objects whose post-
conditions are preconfigured and would be used solely for Copy&Paste.
98
Chapter 9
7. Exercise
Duration approx. 15 minutes
Change the Workflow from Exercise 6 so that task (see Figure 9.80
page 91) is always included.
In addition, the task should check its own result. If this is not ENDED_
OK, the Workflow should be canceled.
99
9.1.6. Attributes Tab
Some of the parameters on the Workflow‘s Attributes tab are identical to the parameters
on the Attributes tab of a Job or FileTransfer. Children queue and Result evaluation of
individual tasks are new parameters.
Figure 9.94
PLEASE NOTE: If children inherit a Workflow’s Queue that only has one free slot, the
children will not start as the only free slot is already occupied by the Workflow.
PLEASE ENSURE that you do not set too restrictive conditions for the result evaluation.
For example, if you select ENDED_OK for all the tasks, a Notification will also be sent for
a task that does not run due to a Calendar Condition. The ANY_OK status will capture
all the ‘error-free
runs’. In the con-
figuration shown in
Figure 9.95, a Noti-
fication will only be
sent for tasks that
have been assigned Figure 9.95
‘any’ kind of nega-
tive status.
100
Chapter 9
9.1.7. Sub-Workflows
A Workflow may be used as an individual object within another Workflow. It is then re-
ferred to as a Sub-Workflow. All in all, there may be a maximum of 16 levels.
Sub-Workflows offer both advantages and disadvantages.
Figure 9.97
101
9.1.8.1. Stop and Stop (Recursive)
It is possible to stop an active Workflow. This can be done in one of two ways: STOP and
STOP (RECURSIVE).
If a Workflow is recursively stopped , Jobs and FileTransfers will again run until they
have finished. No further tasks will be started. However, in this case, Sub-Workflow,
Events, and Job Groups will be stopped. If Sub-Workflows contain further currently ac-
tive Workflows, Events, or Job Groups, these will also be stopped.
TIP: You can also stop specific types of tasks in an active Workflow without having to
stop the entire Workflow. These include: Workflow (JOBP), Event (EVNT) and Job Group
(JOBG). Jobs and FileTransfers cannot be stopped; they can only ever be canceled.
102
Chapter 10
Calendar Object
103
Chapter 10
• WEEKLY: for tasks which should start every Friday, for example
• MONTHLY: for tasks which should run every last day of a month, for example
• YEARLY: for tasks which always start on December 29 for end of the year pro-
cessing, for example
• GROUP:
--groups two or more keywords to a new keyword (e.g. all Saturdays and all
Sundays = "Weekend")
--forms the intersection of two keywords (e.g. all days which are the last work-
day of a month and a Friday)
• ROLL: Moves highlights of other keywords and creates a new keyword from
these, for example, moves the last day of a month from Sunday to the previous
Friday and makes it the last working day of the month
• STATIC: includes all highlights (days) which are not subject to rules (e.g., for
‘Jobs upon request’)
TIP: At first glance, creating a static keyword seems to be easier than creating a dy-
namic keyword. However, static keywords must be prolonged and maintained all the
time. Therefore, it is certainly worth dedicating some time to creating keywords that are
based on calculation logics or algorithms, as these keywords will subsequently prolong
themselves and no further time will be required to maintain them.
105
10.1.2. Creating a Calendar keyword
When creating a new Calendar, the right half of the Calendar sheet already contains a
Static keyword (‘place holder’).
Figure 10.99
NOTE: Pay particular attention when naming Calendar keywords. Basically, Calendar
keywords may be renamed or deleted but doing so requires manual interference if Cal-
endars are accessed via Automation Script.
Figure 10.100
When exporting CALE.002, make sure that the CALE.WEEKDAYS and CALE.MONTHDAYS
Calendars are also exported or available in the target system.
More details about exports will be provided in this training. When a referenced keyword
is renamed, the AE system informs the user about its usage.
106
Chapter 10
The Static keyword is the only type of keyword whose days can be highlighted manually
as required or that can be created and highlighted via Automation Script.
A task, such as the one described above, could thus remain permanently in a Workflow.
It is linked with a Static keyword (here: SPONTANEOUS_JW.PC.001), whose execution
days are only highlighted on request:
Figure 10.101
107
10.1.5. Display Formats in the CALE
A Calendar features different displays and display formats.
Figure 10.102
Figure 10.103
Days that were defined in the Calendar Keyword selected on the right are highlighted
on the left.
108
Chapter 10
Figure 10.104
Use the arrows pointing left and right (<, <<, >, >>) to scroll though the months in
both displays.
109
8. Exercise
1. Task
each Monday till Friday
(WEEKLY)
2. Task
each Saturday and Sunday
(WEEKLY)
3. Task
Working days (all days except for Saturdays, Sundays and Holidays)
(GROUP, WEEKLY)
4. Task
Non-working days
(GROUP, WEEKLY)
5. Task
all Tuesdays starting April 3rd to June 30th
(WEEKLY, YEARLY, GROUP)
6. Task
Link a keyword to an object in a Workflow
110
Chapter 11
Schedule Object
111
Chapter 11
TIP: If you have closed the Properties window, you can reopen it by right-clicking the
object and then clicking TASK PROPERTIES.
113
11.1.2.2. Execution Days (Calendar Tab)
In the Properties window, you can use a Calendar and its Calendar Keyword on the Cal-
endar tab. If you retain the Execute if one condition matches default setting, the task
will only be executed on the days highlighted in the Calendar.
NOTE: If you do not use a Calendar, the specified task will be executed every day.
If you start a Workflow only on Thursdays and a task within the Workflow is linked with
a Calendar in which only Sundays are highlighted, the task will never start.
114
Chapter 11
Figure 11.109
115
11.1.4. Changing the Period Turnaround
A period turnaround has the effect that the ‘to-do list’ is reestablished (RELOAD FROM
DEFINITIONS). In addition, the status that tasks obtained after their execution is also
reset to WAITING FOR START TIME. In the Schedule’s monitor, you will not be able to
immediately see which status a Job that ended at 11:59 p.m. has obtained. From 12
midnight, it will have the ‘WAITING FOR START TIME’ status. In order to hold the states
of individual tasks in the Schedule's monitor (e.g., until 10:00 a.m.), you may resched-
ule the period turnaround accordingly. However, this will have on impact on the schedul-
ing of tasks. The following diagrams explain the time relationships:
A period length of one day is shown along with a period turnaround at 12 midnight
(these are the default settings).
Figure 11.110
Figure 11.111 illustrates the time relationships for a period length of one
day and a period turnaround at 10 a.m. When tasks are scheduled, an error message
will be generated if an attempt is made to specify a start time before 10 a.m. with a
period start +0. The time bar shows that this point in time does not exist. A similar case
would be to indicate a period start + 2 days:
Figure 11.111
116
Chapter 11
9. Exercise
3. The Schedule checks the Job result. The Job should automatically be
repeated if it ends with an error.
5. How can you find out whether temporary changes were made in the
Schedule’s monitor?
117
118
Chapter 12
Execution of Objects
119
Chapter 12
Figure 12.112
2. Right click the object, then select Execute --> Execute from the context menu:
Figure 12.113
3. Drag&Drop the object from the Explorer window into the Activity window:
Figure 12.114
4. And, when you are just editing an executable object, you also can directly click the
Execute button within the Edit menu of the object:
Figure 12.115
121
5. Besides of the direct activation possibilities above, you can also activate any execut-
able object using the ACTIVATE_UC_OBJECT() Automation Script function. This func-
tion can be used wherever you can use Automation Script. The most popular use is on
any Pre Process, Process and/or Post Process tab of any other executable object and the
!Process tab of any Event object.
Example of usage:
For more information see the online help under AUTOMATION ENGINE SCRIPT GUIDE or
visit our training course AE - Script.
Figure 12.116
122
Chapter 12
Figure 12.118
Figure 12.119
Figure 12.120
123
12.3.1.2. Timeframe Tab
This is where you set limits
for the timeframe in which
task executions are to take
place. If you retain the
Force adjustment on time
frame default, the first ex-
ecution will start promptly
at the specified time. If you
uncheck the box, time will
be counted from the point
at which you click OK to
confirm.
Figure 12.121
Please note the difference between the two settings in the following figure. A frequency
of 60 minutes has been selected in our example.
Figure 12.122
12.3.1.3. Days
On this tab, you select the
days on which you want
an object to start. Simi-
lar to the Calendar tab in
the Properties of a task in
a Workflow (see “Figure
9.79” page 90), you can
use a Calendar object and
its associated keyword
here.
Figure 12.123
124
Chapter 12
12.3.1.4. Range
On this tab, you specify
when the execution should
start. You also specify
when it should end, based
either on a date or a spec-
ified number of execu-
tions. You can also choose
not to specify an end date.
Figure 12.124
Figure 12.125
125
You will notice that the 4 areas on this screen do not only have the same names as the
tabs on the “Recurring Execution” dialog display, even the contents are identical. Thus,
the Period object enables you to load a predefined set of recurring execution options
in the execute recurring dialog instead of typing them in for every new execution; the
advantage of this object is to have settings available that may be reused, even for other
executable objects later.
The Header tab of the Period object looks like any other object’s Header tab, although
the Title field has a special importance here:
Figure 12.126
The description you enter in the Title field will also be used and displayed in the “Ex-
ecute Recurring” context (Period description field), when you load the respective Period
object. Special about this Period description field is the fact, that you may change the
description manually in all tabs of the Execute Recurring function without changing the
title of the respective Period object. The manual changes afterwards will be shown in the
Statistics records and Activities selection window of executable objects.
After you defined your “new” Period object, you can use it on your next recurring ob-
ject ececution. Just execute your object as usual and select the “Recurring” option. The
upcoming dialog window now looks a little different to the one of former AE versions:
Figure 12.127
126
Chapter 12
The lower part now shows 2 new fields and an additional button:
--Period object: just click the pulldown menu and select the Period object or en-
ter the Period object name to be used for the execution manually
--Period description: contains the Title information of your selected Period ob-
ject; this information can be overtyped manually (as already explained above)
--Load button: loads your selected Period object and fills the description field
Figure 12.128
When you completed your selection, pressed the Load button, changed the description
(optionally) and possibly set an alias for your executable and/or selected a dedicated
queue to run it in, you activate it by pressing OK. From this moment on, your executable
will occur in your Activity display (depending on filter settings), with type “C_PERIOD”
(as it already did for periodic tasks in former versions), either as “Sleeping”, waiting for
the next occurrence, or as “Active”, triggering a new instance of your executable object:
Figure 12.129
In this figure you can see the description from the Period object Title which was modified
in the “Recurring Execution” dialog and will also be written to the job statistics.
Figure 12.130
127
10. Exercise
Task
A Job should start in an interval of four minutes between precisely
4.05 p.m. and 7.15 p.m. from Monday to Friday. It can be active two
times at the most at the same time.
128
Chapter 13
Notification Object
129
Chapter 13
Figure 13.131
There are three types of Notifications that can be sent within the UserInterface; they will
be discussed on the following page.
131
13.1.2.1. Type "Notification"
The Notification only ends once all no-
tified users have clicked OK.
This type is mostly used for non-criti-
cal messages that do not require any
special measures to be taken, for ex-
ample, when processing ends.
Special use: Processing could come to
a halt until all users have clicked OK
to confirm.
Figure 13.132
Figure 13.133
132
Chapter 13
Useful functions include Attach reports from and Attach file. The ‘Attach file’ function
requires you to specify a file (including the path) that exists in the AE Server file system.
When an AE report is attached, the RunID of the corresponding task must be retrieved
and passed on. Automation Script is used for this. The following shows how to create a
variable message text (13.1.4.1) and attach a report (see 13.1.6 page 136).
Figure 13.135
133
2. Step
Insert the four
lines in the Pro-
cess tab exactly
as shown in the
figure on the
right.
These lines offer
detailed infor-
mation (name,
number of run,
status, and, if
Figure 13.136
necessary, re-
turn code) on
the object that the Notification triggered.
TIP: You can Copy&Paste the lines from every CALL ALARM or CALL EMAIL object (or
from the online help by searching the keyword UC_CAUSE). Or, if your document is a
PDF file, just copy the following 4 lines:
:read &UC_CAUSE_NAME,,
:read &UC_CAUSE_NR,,
:read &UC_CAUSE_STATE,,
:read &UC_CAUSE_RETCODE,,
3. Step
Open the Notification tab. Select the
Subject field and click the variable
picker.
Figure 13.137
Figure 13.138
134
Chapter 13
4. Step
Enter the text from Fig-
ure 13.139 or similar
for the message text.
TIP: You can insert the
keywords shown in
green in the figure us-
ing the variable picker,
as described in Step 3.
You can transfer the val-
ues shown in light blue
from the Process tab
using Copy&Paste (see
“2. Step” page 134 ). Figure 13.139
And here, once again, the subject and message body (for Copy&Paste):
13.1.5. Recipients
Now all you have to do is specify one or several recipients for the Notification. Enter
any number of e-mail recipients or AE users/user groups for message recipients in the
Recipient column on the Recipients tab ( in Figure 13.140 page 135). Select the us-
ers/user groups available in the client by opening the pull-down menu in the column, or
enter them manually if you know them.
The Calendar and Keyword columns allow you to select Calendar Keywords to send
the Notification to different recipients depending on the day. If nothing is entered here
(default), the Notification is forwarded to the recipient(s) specified in the line on the
right during activation.
Figure 13.140
135
13.1.6. Sending a Report Using a Notification Object
You can use a Notification object of type E-mail to send a task’s report as an attachment.
If the Notification object is started in a Workflow via the task’s properties (Dependen-
cies or Postconditions tab) or in a Schedule (Result tab), it can ascertain some of the
information of its activator. The run number (RunID) is required to send the activator’s
report. In the following, we describe how to send the activator’s report.
As already shown and described in Figure 13.136 page 134, the &UC_CAUSE* variable
provides detailed information on the activator of the Notification. If you have filled the
&UC_CAUSE* variable in the Process tab using the corresponding :READ script lines
(see “13.1.4.1. Variable Subject and Message Text” page 133 f), all you have to do now
is enter the &UC_CAUSE_NR variable (run number or RunID of the activator) in the
Figure 13.141
136
Chapter 13
Figure 13.142
Of course, you may also trigger a Notification object if a problem occurs. Using the
above example, you could add a notification and set its dependency to ENDED_NOT_OK
of job JOBS.WIN.001.
Figure 13.143
137
13.1.7.3. Usage on the “Postconditions” Tab
In opposite to the usage on
the Dependencies tab (see
above), the CALL within this
example sends the reports of
task ‘JOBS.WIN.017(3)’ .
This is a different situation:
Here, the ‘JOBS.WIN.017(3)’
task checks itself (Postcondi-
tion) and triggers the CALL if
it was not ended with a ‘Good’
status (ANY_OK) (expressed
by ‘Else...’).
Figure 13.144
Figure 13.146
Figure 13.145
138
Chapter 13
Figure 13.148
139
11. Exercise
1. Task
Create a Notification object of type ‘notification’ or ‘e-mail’ (your
choice). The name and RunID of the task causing the error should be
displayed in the Subject along with the AE system name and client
number.
2. Task
Use the Notification object in a Workflow in the Postconditions of a Job.
The Notification should inform you if the Job in the Workflow aborts.
3. Task (optional)
The Notification should include the name and run number of the Work-
flow in the message text. The report of the erroneous task should also
be sent in case of e-mail correspondence.
140
Chapter 14
PromptSet Object
141
Chapter 14
14.1.1. Operation
A PromptSet only ever appears on the screen of the user who started the object the
PromptSet is linked to, i.e., a PromptSet cannot be sent to any other user. The example
shows a PromptSet that prompts for parameters for a database backup.
Figure 14.149
143
Currently, PromptSets can be displayed in objects of a Workflow or Sub-Workflow, de-
pending on the settings of the task’s Properties in the Workflow:
Figure 14.150
If a task’s PromptSet is only displayed at the start time of the task but should appear
at the start time of the Workflow, change this by checking the Parameter evaluation at
workflow generation checkbox.
Figure 14.151
144
Chapter 14
The PromptSets of objects and/or Sub-Workflows in a Workflow are also displayed in the
object properties. Unlike Parent PromptSets, it is possible to modify their values:
Figure 14.152
145
146
Chapter 15
Event Object
147
Chapter 15
• Time Event
• File System Event
• Database Event
• Console Event
Conditions may be specified in all Event types. If a condition applies, the !Process tab
will be processed. Time, File System, and Database Events are time-controlled. The
Console Event is not time-controlled and simply ‘listens’ permanently.
A Schedule object works similarly. It starts tasks when a predefined period of time has
expired. The shortest time period is one day and is referred to as a Period.
15.1.1.1. Usage
Time Events may be used when tasks need to be executed in an interval that is shorter
than one day. Tasks are started with the ACTIVATE_UC_OBJECT() script function on
the !Process tab.
149
15.1.2. File System Event
!Process is processed when a predefined condition applies. The condition must have
been defined by the user on the File System tab. In contrast to a Time Event, you can
specify that the Event ends itself if the condition applies (Event tab => Check => Until
the first hit).
15.1.2.1. Usage
A typical applica-
tion of a File Sys-
tem Event is to use
it as a ‘File Watch-
er’. A File Watcher
waits for a specific
file to arrive or for
a particular num-
ber of files to be
available in the file
system. In the first
case, this can be a
file that needs to be
further processed
or a ‘trigger file’ or
an ‘OK file’.
Figure 15.154
Under , enter which computer/Agent should be checked and which file(s) need to be
searched (path or file name). It is also possible to search related directories and use
wildcards (* and/or ?) under Path.
Provide the exact details of what should be checked in the specified path under Event
. In the example above, PATH_FILE_COUNT > 0 indicates that the relevant file must ex-
ist at least once. It is also possible to check the file system for available disk space and
initiate a response if a value exceeds or falls below a certain threshold.
Check may be used to determine, whether and when the Event ends itself (Repeated:
does not end automatically; Once: after a non-recurring check, regardless of the result;
Until the first hit: recurs until a match is found).
Time control corresponds to the TimeEvent settings.
If FILE_STABLE or FILE_
CHANGED is entered un-
der and: in the Event sec-
tion, the Check and Timer
control options are deac-
tivated (grayed out) and
the Event ends as soon as
the file in the above exam-
ple is present and remains
unchanged for more than Figure 15.155
one minute.
150
Chapter 15
Figure 15.156
15.1.3.1. Usage
Similar to a File System Event and a trigger file, a Database Event can also wait for a
trigger in order to start further processing in AE. Not only can a Database Event com-
pare values retrieved with an SQL statement; it can also compare values from Variable
objects and even static values:
Figure 15.157
151
15.1.4. Using Events as Stand-alone Runs/within a Workflow
File System Events and Database Events are mainly used as stand-alone runs and as
part of a Workflow. Stand-alone here means that the Event is available in the Activity
window as an individual process without a parent process such as a Workflow.
Time Events usually start as stand-alone runs and are not part of a Workflow or Sched-
ule. If further processing is required when a defined Event occurs, there are two ways
of doing so:
1. The Event is a stand-alone run: It starts further processing from its !Process tab us-
ing ACTIVATE_UC_OBJECT() and ends itself where applicable.
2. The Event is part of a Workflow: It ends itself without starting another task in it’s
!Process tab. Further processing commences in the Workflow as soon as the Event has
ended.
These are just two of the many possible options. Another possible variation for the sec-
ond option would be that the Event starts a second task from it’s !Process tab before it
ends itself and releases further processing in the Workflow.
It is also possible to schedule an Event in a Schedule object. For example, the Schedule
could start the Event at 10 a.m. The Event would start a Job in an interval of x minutes
before it ends itself at 4 p.m. Its termination at 4 p.m. is specified on the Runtime tab.
The Runtime tab is explained in detail in the AE - Basics Part 2 training course.
152
Chapter 15
12. Exercise
1. Task
2. Task
Create a File System Event. Let the Event wait for the c:\temp\FS.txt
file. The Event should end itself if the file is available in the file system.
Make sure that the Event only ends itself if the file has remained un-
changed in the file system for at least two minutes.
153
154
Chapter 16
Include Object
155
Chapter 16
Include objects can be nested, for example, you could call Include_02 in Include_01. A
maximum of 16 levels is allowed.
TIP: If you unintentionally generate a loop by calling Include_01 in itself, the AE server
will send an error message.
Figure 16.158
:INCLUDE NAME_OF_THE_INCLUDE_OBJECT
157
158
Chapter 17
AgentGroup Object
159
Chapter 17
Identical Jobs (such as backups) often need to be started on more than one machine.
Instead of creating an individual Job for each Agent, you can create one Job and allocate
an AgentGroup to the Job that contains all the relevant Agents.
•
ANY: Any active Agent
•
FIRST: The first active Agent in the table
•
NEXT LISTED: ‘Round Robin’ or ‘Each active Agent takes a turn’
•
LOAD DEPENDENT: The Agent that currently has the most available AE
resources
• ALL: The task is started on all active Agents
• Special form ALL => FORCE COMPLETE BROADCAST:
Also distributes Jobs to inactive Agents
Figure 17.159
161
TIP: You can change the order in which Agents appear in the table using the gray arrows
at the side . Highlight the Agent that you want to move and click the arrows . In
the example shown here, the WIN02 Agent is moved to the first position in the table.
Figure 17.160
NOTE: Forcing a complete broadcast may result in a Job not ending as it will wait for
possibly inactive Agents too.
A third option involves selecting an Agent via the Role (see “Figure 17.159” page 161).
The AE Administrator must specifically assign the role to the Agent. This is usually car-
ried out only on request. The chance of ‘catching’ an unwanted Agent is much less here
than when using filters (partially qualified).
TIP: You can also open an AgentGroup directly for editing by right-clicking the Host field
and then clicking EDIT. You can find out on which Agent a Job was started by reading
the Job’s report and statistics.
162
Chapter 18
Documentation
163
Chapter 18
Figure 18.161
165
The AE database must be reorganized on a regular basis. As a result, the object versions
are also normally removed from the database. To ensure that you can, if necessary, ex-
port specific versions from the version management system before they are removed,
ask your AE Database Administrator whether they reorganize the database, and, if so,
when.
Figure 18.163
With this definition, the job objects will contain 2 documentation sub-tabs in addition
to the Version Management sub-tab: one called “General” for plain text, and one called
“Details” for Structured Documentation (note the @ character in front of the text!);
multiple sub-tabs are separated by comma. All other objects get just the default plain
text sub-tab called “Docu”.
166
Chapter 19
Export and Import
of Objects
167
Chapter 19
19.1.1. Export
Right-click the object to be exported and then click EXTERNAL & PRINTING => EX-
PORT....
In the following window, you can rename the uc4_export.xml file (default) and select a
storage location.
Figure 19.164
PLEASE NOTE that all the objects belonging to an object must also be exported. Objects
may also be linked to other objects via Automation Script. These objects must also be
exported if they do not yet exist in the target client.
You may also write objects to an export file individually and also import them individu-
ally. Of course, it is much quicker and easier to write all the objects to be exported to
one file. However, it can be difficult to select all the objects at the same time when they
are stored in different folders.
Figure 19.165
169
Select the object types you want to search for and then click START. Please note that
folders cannot be exported before V11. Do not include them in your search.
Figure 19.166
19.1.2. Import
Using the Import function to another client requires write access for this particular cli-
ent. If this write access has been granted for the objects stored in your export file, im-
porting objects follows the same procedure as the one used to export objects, although
in reverse order.
Keep in mind that (prior to V11) all import objects are written into one folder even if
they derive from different folders.
TIP: In a Transport, the original folder structure of objects will automatically be created.
Transporting objects is part of the AE - Basics Part 2 and AE - Administration training
courses. Should you wish to make use of the transport function, contact your AE Admin-
istrator for details.
170
Chapter 19
Figure 19.168
Here, you can decide if you want linked objects to be exported as well. If you click “YES”
and import the XML file to another client later, a new folder called ##INCLUDED_EX-
TERNALS## will be created in the target client, at the same level as the imported folder,
containing the linked objects.
Note: Do not use Export/Import for mass transports (instead, use the Transport Case),
as:
1. The import and export functions cause a heavy workload for the Dialog Work Pro-
cesses (DWP), whereas the Transport Case loads directly into the database.
2. From V11 on, the size of the XML file for Import must not exceed 30720 KB (30 MB).
171
172
Chapter 20
‘Put it all together’
173
Chapter 20
This individual tasks are parts which will be composed to a whole afterwards.
These tasks do not necessarily cover all your processes. There are some customers who
do not use FileTransfers, other ones do not use Notification objects etc. These tasks
mainly serve to introduce you to the way AE works and functions. Initially, many new
users ask themselves: “Which object is the best one to use?”
Exercises
1. Task
Mondays through Fridays you expect to have a file in your file system
at 10:00 a.m. at the earliest. This file will be sent to you by a business
partner via FTP (not AE FileTransfer). When this file has arrived, you
transfer it to another computer. Delete the file from the source com-
puter after it has been successfully transferred and end the ‘search
process’ so that it does not use up resources unnecessarily.
Notes:
2. Task
You need three Jobs for a Workflow. The Jobs must end with return
code 22 if the string ‘error’ appears in their report.
Notes:
175
3. Task
The three Jobs from the second task should be started sequentially in
a Workflow. Each Job checks whether its preceding Job has run without
errors. The last Job is checked by the End object. The Workflow should
be blocked if an error occurs.
Notes:
4. Task
A Sub-Workflow runs before the last Job of the second task starts. Its
two Jobs must only run on every second Tuesday. The Agent to be used
by the Jobs should be the one of all Windows (or Unix) Agents which
uses the fewest resources when the Jobs starts. Assume that this load
balancing is important for your virtual machines.
Notes:
176
Chapter 20
5. Task
Occasionally, an additional Job must be started after the two Jobs in
the Sub-Workflow in task 4. You do not know when this will happen.
Make sure that the Sub-Workflow does not have to be edited each time
the additional Job needs to run.
Notes:
6. Task
Notes:
Good luck!
177
178
Course Evaluation Survey
Now, at the end of this training, we would like you to tell us about your
AUTOMIC Training - experience with this course. For this purpose please take a few minutes
Flexibility for your convenience and fill in the Course Evaluation Survey which is available under the fol-
lowing link:
• Classroom training
--Training Centers https://www.surveymonkey.com/r/AutomicUniversity
--On Site
• eLearning
--Online (AUTOMIC Learning Portal)
• Certifications
Further links and contact information
--Training Centers In case you need any additional information, support, product down-
--Online (AUTOMIC Learning Portal) loads, etc., here is a summary of the most important links around Au-
tomic training and products:
AUTOMIC Downloads:
https://downloads.automic.com
AUTOMIC Support:
$
CONTACT THE TRAINING CENTER
sops.services.us@automic.com
With the aim of creating solutions perfectly tailored to clients’ needs, Automic has been sharing its insights, best practices and expertise through its training center, Automic
University, for over 30 years. Training and certification courses combine theory with real-world case studies.They cover:
• The full range of Automic’s software solutions: the Automation Engine, ONE Automation, Application Manager, Dollar Universe, Sysload, Streamcore, and many more
• All IT best practices and reference material: ITIL®, PRINCE2®, COBIT®, CMMI, DevOps, Lean IT and Cloud – using a variety of innovative teaching tools, such as the Automic
edition of the well-known board game Trivial Pursuit™ (there are six editions, each dedicated to a different information system).
Our training combines education with operational experience, as it is given by experienced consultants from Automic’s Professional Services department as well as from
consultancy firm Automic Consulting. www.automicuniversity.com
180