Cisco Cisco Workload Automation 6.3 User Guide

Page of 78
54
 
Defining Actions Based on Job Conditions
Understanding Actions
3.
In the CWA toolbar, click the Add  
button.
The Job Event Definition dialog displays.
4.
In the Event Name field, enter Job Failed.
5.
From the Event Trigger list, select Job Completed Abnormally.
6.
In the Available Action(s) list, highlight Job Failed and click the left arrow button or drag-and-drop the Job Failed 
action to the Selected Action(s) section.
7.
Click the Associated Job(s) tab to associate the EDI_Download job to the job event.
8.
Select EDI_Download from the list, then click Add.
9.
Select the Public option, if not already selected. 
This makes your event available to other CWA users.
10.
Click OK.
The EDI_Download job is now linked to the Job Failed alert action through the Job Failed job event.
Changing the edi.bat file to Fail
To change the edi.bat file:
1.
Right-click the Edi batch file and select Edit from the context menu. 
The Edi.bat file opens in Microsoft Notepad.
2.
Change the last line of the file ocsexit 0 to ocsexit 1.
3.
From Notepad’s File menu, select Exit.
A Notepad dialog displays.