ESP dSeries Workload Automation

 View Only
  • 1.  How to mark the FTP job as force completed automatically for a specific failures.

    Posted May 04, 2021 09:23 AM

    Hi Team,

     
    I am writing it for one of my requirements is that if there is no file available for download like "no matching files found" error, the job should not fail and send an email alert of failure, the job should instead get force completed or bypassed. If there is any other reason for failures, the job should obviously get failed and send an email alert of failure. Is there any way in WLA through which it can achieve, not necessarily force complete it could bypass as well.

    Product details:-

    WLA version 12.0

    Agent version 11.4



  • 2.  RE: How to mark the FTP job as force completed automatically for a specific failures.

    Broadcom Employee
    Posted May 05, 2021 07:02 AM
    Hi,

    In dSeries, you can achieve this by using the built-in javascript variables.

    - Create an alert to run a javascript when the job FAILS
             This alert will use the WOB._status field to check the reason of failure. If it matches with the string , using execCommand you can force complete the job.




  • 3.  RE: How to mark the FTP job as force completed automatically for a specific failures.

    Posted May 13, 2021 03:29 PM
    HI, We drafted the below script but it won't take effect on the job.

    FYI, enabled it on Failed of alert(PFB).

    WOB._status =='No matching files found'

    execCommand ('%(WOB._name).%WOB._qualifier','%(APPL._name).%APPL._gen','ACTION COMPLETE')






  • 4.  RE: How to mark the FTP job as force completed automatically for a specific failures.

    Broadcom Employee
    Posted May 14, 2021 09:18 AM
    Looking at the job details, the Status is "No matching files found". So, use this javascript in the Alert;

    if (WOB._status == '"No matching files found"')
    execCommand ('%WOB._name','%(APPL._name).%APPL._gen','ACTION COMPLETE');

    Note the status is enclosed in single quotes and no job qualifier in the job name.


  • 5.  RE: How to mark the FTP job as force completed automatically for a specific failures.

    Posted May 14, 2021 01:42 PM
    Thanks, Segun