search cancel

The variables &@restart_count# and &@sap_bw_max_restart_count# are not set on first occurence in CA Automic Workload Automation

book

Article ID: 111979

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

The variables &@sap_bw_max_restart_count# and &@restart_count# are not set at the first termination while using the script element BW_SET_CONSTRAINT with Action=Restart within the CA Automic Workload Automation (Automation Engine).
After the first restart was done the variables are set correctly.

The expectation is that the variables are also set as soon as a restart is requested.

Cause

N/A

Environment

N/A

Resolution

The variables &$restart_count# and &$max_restart_count where designed for the following use case: 
Automated alarm, if last automated Restart of a Process Chain ends abnormal. 

&$restart_count# > 0 indicates that there was a restart 
&$max_restart_count# = &$restart_count# indicates that it is the last restart. 

This works correct according to the use case described above.

The expectation that the variables are also set as soon as a restart is requested is an additional use-case for which an Enhancement Request is required via communities.ca.com:

https://communities.ca.com/community/ca-automic-community/ca-automic-workload-automation/content?filterID=contentstatus%5Bpublished%5D~category%5Bca-automic-workload-automation%5D