Automic Workload Automation

 View Only
  • 1.  Hold job on public holidays

    Posted Jul 09, 2020 04:55 AM
    Hello Expert, 

    We have requirement, job should not run on public holidays so we have created country specific public holidays calendar. Could you please help/guide how to use this calendar conditions in AWI UI. 

    We are using AWI 12.3. 

    Thank you in advance. 

    Regards,
    Viral


  • 2.  RE: Hold job on public holidays

    Posted Jul 09, 2020 05:57 AM
    Hi Viral,

    from the workflow open the properties of the object
    switch to the Calendat tab
    configure the Calendar as shown in the screen shot

    regards,
    Peter



  • 3.  RE: Hold job on public holidays

    Posted Jul 09, 2020 06:01 AM
    and for a single object not started from a JOBP or JSCH you can achieve the calendar logic by using AE script functionallity


  • 4.  RE: Hold job on public holidays

    Posted Jul 09, 2020 06:48 AM
    Hello Peter, 

    Appreciate for your prompt response. 
    We have already tried calendar condition in JSCH object but its not working.

    Please find the attached ss for the same. 
    JSCH
    report
    calendar
     
    Regards,
    Viral


  • 5.  RE: Hold job on public holidays

    Posted Jul 09, 2020 07:15 AM
    Hello Viral,

    from what I can see in the screen shots it works as designed: JOBP.ERQ_xxxx was not started due to the calendar dependency.

    Your definition is "Execute if no condition matches" (which means "do not start on days marked in the calendar keyword"). And the calendar keyword TEST_HOLIDAY is valid on July 9 (today) therefore the JSCH has not started the JOBP.

    regards,
    Peter


  • 6.  RE: Hold job on public holidays

    Posted Jul 09, 2020 07:31 AM
    Hello Peter , 

    My apologies i have shared wrong screenshot, please find the correct one with execution report.  
    '
    U00011086 Schedule 'JSCH.TEST' (RunID '0033705898') starting ...
    U00011093 Cannot start task 'JOBP.ERQ_CALE_CONDITION_CHECK'. See following message.
    U00007019 Access to calendar 'TEST_HOLIDAY', keyword: 'TEST_FRIDAY' is out of the validity area ('2020-07-09 < 2020-07-10').

    We have given 10th July date in calendar and in JSCH set the condition to "execute if no condition matches " .  



  • 7.  RE: Hold job on public holidays
    Best Answer

    Posted Jul 09, 2020 07:49 AM
    Hi Viral,

    the calendar keyword type you are using is "N". Only this type must have a validity range defined. As I can see from the error message the validity has expired. Kindly please check and extend the range.

    regards,
    Peter


  • 8.  RE: Hold job on public holidays

    Posted Jul 13, 2020 05:27 AM
    Hello Peter , 

    Thank you once again, its working fine. 
    2 beer on me :)

    Regards,
    Viral