javascript from FM job to bypass/complete subapplication wobs in the appl
search cancel

javascript from FM job to bypass/complete subapplication wobs in the appl

book

Article ID: 257389

calendar_today

Updated On:

Products

CA Workload Automation DE

Issue/Introduction

Using an alert to execute java script to BYPASS jobs contained within an entire SUBAPPL, we see they remain in a MANHOLD state when the predecessor job completes/fails.

Java Script example: execCommand('SUBAPPL(TEST)','MY_APPLICATION.0','ACTION BYPASS)');

if the predecessor job goes overdue, execute alert and bypass subappl jobs. 

Environment

Release : 12.2

Resolution

If the jobs contained within the SUBAPPL are being submitted ON HOLD, the jobs will not get bypassed. You cannot BYPASS jobs that are in MANHOLD state.

You'll need to de-select the Submit ON Hold option on the General tab of each of these jobs in the SUBAPPL for this to work as you are expecting.

Also note that the predecessor job must complete or fail in order for the bypass to take effect.