Automic Workload Automation

  • 1.  Getting status back from ACTIVATE_UC_OBJECT call

    Posted Oct 06, 2014 06:57 AM
    Hi,
    I'm calling a workflow within a script as follows.

    SET &ACTOBJ# = ACTIVATE_UC_OBJECT(GD.DAILY_ASP_FEED_TUE_SAT_WF,WAIT)

    &ACTOBJ# returns the RUNID but I need to know the status of call workflow after it has executed.

    Anyone know how I can get this?

    Thanks,
    John.


  • 2.  Getting status back from ACTIVATE_UC_OBJECT call

    Posted Oct 06, 2014 09:28 AM

    Try GET_UC_OBJECT_STATUS



  • 3.  Getting status back from ACTIVATE_UC_OBJECT call

    Posted Oct 07, 2014 03:28 AM
    that worked, thanks...


  • 4.  Re: Getting status back from ACTIVATE_UC_OBJECT call

    Posted May 13, 2019 10:28 AM

    Hi Guys -- I'm a bit of a newbie.

     

    Can I use ANY_OK to check all possible results of GET_UC_OBJECT_STATUS?

     

     



  • 5.  Re: Getting status back from ACTIVATE_UC_OBJECT call

    Posted May 13, 2019 02:45 PM

    That's an interesting question!   I'm wondering if the "STATUS_TEXT" option to the GET_UC_OBJECT_STATUS() function will return the literal "ANY_OK"?   Maybe you could test this idea and let us know?

     

    Edit:

    Now that I think some more about this, I doubt that it can return ANY_OK.  The context of this function dictates that is should only return the explicit result, where ANY_OK covers a broad range of possible results.



  • 6.  Re: Getting status back from ACTIVATE_UC_OBJECT call

    Posted May 13, 2019 03:05 PM

    We do something similar in our environment. Here is a really basic example:

     

    :SET &STATUS# = GET_STATISTIC_DETAIL(&ACTOBJ#,STATUS)

     

     

    Then run a case statements for different options:

     

    :SWITCH "Y"
    :CASE &STATUS# between 1900 and 1999
    :P Job ended with ANY_OK
    :CASE &STATUS# between 1800 and 1899
    :P Job ended with ANY_ABEND

    etc.



  • 7.  Re: Getting status back from ACTIVATE_UC_OBJECT call

    Posted May 13, 2019 03:14 PM

    Nice -- the "between" was what I needed.