Automic Workload Automation

 View Only
Expand all | Collapse all

Preconditions in a jobplan

  • 1.  Preconditions in a jobplan

    Posted Feb 19, 2021 08:13 AM
    Hi,

    We have the version 10 of Workload Automation.
    I have a little problem using precondtions in a jobplan.

    When a run the jobplan with a user with the group administrator, if the precondition is evaluated and the condition  is true 
    the job is skipped.
    When it is a user with the group users, I can see the precondtion is evaluated and it is true in the report job but
    the skip action doesn't work.

    My question is: Which privilege I must give to the group users to have the skip action working?
    The following is preconditions code:



    Thanks


  • 2.  RE: Preconditions in a jobplan

    Posted Feb 19, 2021 11:22 AM
    To my knowledge, user grants should not impact the ability to process Preconditions.  They could however impact the ability to access different types of AWA objects, some of which may be components of your precondition.

    You said you can see that the precondition was evaluated properly, but failed to skip when it should have. Could you share both the good and the bad run Preconditions(PRCO) reports here so we may inspect them as well?

    ------------------------------
    Pete Wirfs
    SAIF Corporation
    Salem Oregon USA
    ------------------------------



  • 3.  RE: Preconditions in a jobplan

    Posted Feb 19, 2021 11:56 AM
    The reports of the preconditions run are similar.
    Here the authorizations I gave to the group USERS:

    I test with the following Authorizations and the skip works well with the same privileges:

    Maybe I forgot an object type or didn't give enough definition rights to an object.

    Thanks


  • 4.  RE: Preconditions in a jobplan

    Posted Feb 19, 2021 01:47 PM
    I would also investigate the possibility that the different grants impacted the logic that populates your &EXN_ID# variable which could then cause different behaviors in the precondition rules.

    The precondition reports will tell you if a skip was requested or not.  Since you say the reports are "similar", do they both say that a skip was requested?  If they both say that a skip was requested but one of them didn't actually skip, then this could be an even bigger problem. (and I would want to see those reports)

    ------------------------------
    Pete Wirfs
    SAIF Corporation
    Salem Oregon USA
    ------------------------------



  • 5.  RE: Preconditions in a jobplan

    Posted Feb 19, 2021 02:02 PM
    Hi,

    I've done a test jobplan, here is the monitor while the user run it :

    The report of the job:

    And the detail of the job:
    The following is the Preconditions:

    The following is the report for a successful skipped task :

    And the detail view:

    Thanks


  • 6.  RE: Preconditions in a jobplan

    Posted Feb 19, 2021 03:03 PM
    Oh that's unfortunate.  I forgot you are on V10, which is no longer supported by the vendor.  We are on V12 and the precondition reports give you more detail, showing you exactly what values were compared.

    From these snips I can't tell that there is anything wrong(?)  It seems that if you were missing a grant that there should be an error message somewhere.  But I don't see any.

    ------------------------------
    Pete Wirfs
    SAIF Corporation
    Salem Oregon USA
    ------------------------------



  • 7.  RE: Preconditions in a jobplan

    Posted Feb 19, 2021 03:04 PM
    Wait a minute... when the user runs it, it seems it is getting stuck in "checking preconditions" status.  Is that right?

    ------------------------------
    Pete Wirfs
    SAIF Corporation
    Salem Oregon USA
    ------------------------------



  • 8.  RE: Preconditions in a jobplan

    Posted Feb 19, 2021 03:11 PM
    Could you check the details for the workflow?  The workflow might have thrown an error status to explain why the precondition script is getting stuck.

    ------------------------------
    Pete Wirfs
    SAIF Corporation
    Salem Oregon USA
    ------------------------------



  • 9.  RE: Preconditions in a jobplan

    Posted Feb 19, 2021 03:25 PM
    Yes


  • 10.  RE: Preconditions in a jobplan

    Posted Feb 19, 2021 04:32 PM
    The detail of the jobplan didn't give any clue either.
    I know V10 isn't supported anymore.
    I've told my boss many times.

    Thanks I will try to find out why it is not working as planned


  • 11.  RE: Preconditions in a jobplan

    Posted Feb 24, 2021 05:44 PM
    Edited by Yves Lavoie Feb 24, 2021 05:44 PM
    I've found my problem, for the object type JOBP I must have the M authorization in order to be able to skip a task in a precondition .

    Thanks for your help