Ok. We will need to know why this did not work at your end by looking at logs and what you did. I will suggest that you raise a ticket for this with the support.
Original Message:
Sent: Nov 26, 2023 01:57 PM
From: Faiz Ahmad
Subject: Auto force complete failed generation/job
Hello,
Thanks for the solution provided, we have tried but didn't fulfill the requirements (i.e. It does not mark the older generation force complete after its current generation got completed successfully).
We tried to put the given javascript at the application and job level but no luck.
Could you please assist us with this concern?
Original Message:
Sent: Nov 22, 2023 04:47 AM
From: Rajagopal Tadavarthy
Subject: Auto force complete failed generation/job
hi,
You can try a JavaScript defined in a job with either to complete the previous generation application or previous generation failed job to force complete.
var a = parseInt(APPL._gen);
var b = a -1;
execCommand('TASK0', 'VERIFY.%(b)', 'ACTION COMPLETE Reason("complete to run the next job")');
(or)
execCommand('ALL','VERIFY.%(b)', 'ACTION COMPLETE');
execCommand('ALL','VERIFY.%(b)', 'ACTION COMPLETE'); ----- This command will Force Complete all the Jobs of last generation of VERIFY application.
execCommand('TASK0', 'VERIFY.%(b)', 'ACTION COMPLETE Reason("complete to run the next job")'); ---- This Command will force complete TASK0 job of VERIFY application of last generation of Application.
Thanks,
Rajagopal
Original Message:
Sent: Nov 21, 2023 12:50 PM
From: Faiz Ahmad
Subject: Auto force complete failed generation/job
Hello Ravi,
Thanks for sharing the solution to our query. However, we need the previous failed generations to be force-completed only once the latest generation is completed successfully.
Original Message:
Sent: Nov 20, 2023 05:59 AM
From: Ravi Kiran Kunduri
Subject: Auto force complete failed generation/job
Hi,
If you want any application generation that is failed to be completed. You can add a job at the end of the application . It can create alert that can force complete the application with generation -1 using execcommand javascript.
Please see the execcommand syntax here -
https://techdocs.broadcom.com/us/en/ca-enterprise-software/intelligent-automation/ca-workload-automation-de/12-4/scheduling/using-javascript/built-in-functions/job-subapplication-and-application-control-javascript-function.html
Original Message:
Sent: Nov 17, 2023 01:10 PM
From: Nitin Divakar
Subject: Auto force complete failed generation/job
Condition - When the next generation or job is completed, In this case, the failed generation should be forced to complete.
Please advise the solution to it.
dSeries 12.3 version