Automic Workload Automation

 View Only
  • 1.  Event Job Scheduling

    Posted Nov 09, 2018 04:33 AM

    Dear Experts,


    I have a requirement as followed.

    JOB A --> Independent Job at defined interval

    JOB B ---> Event based on JOB A ( Job B should be triggered only on the event of JOB A execution ).


    Could you please help me how to achieve this? 

    I was going through the Automic blogs and found that Activate_UC_Object can be used. Could you please share the script ?

    If you are using an event object, please share the screenshot or the script that could be helpful.


    Thank you in advance.

  • 2.  Re: Event Job Scheduling

    Posted Nov 09, 2018 09:25 AM

    I'm not sure why you would need an event object to drive JOB_B...I think you could simply have JOB_A trigger JOB_B either upon completion (e.g., in the PostProcess tab), or else via a subsequent task in it's parent workflow).


    Anyway, if you want to go the ACTIVATE_UC_OBJECT route, here's the syntax you're after:

    :IF &RETVAL# = "0" OR "20423"
    :  PRINT "[CRITICAL] Failed to activate uc4 object! (return code = $RETVAL#)"
    :  EXIT 1