Automic Workload Automation

  • 1.  PromtSet activation on Restart only

    Posted Nov 30, 2016 12:45 AM
    Hi,
    I have a workflow that derives it's run parameters automatically. If the job fails these values may need to be altered when restarting. 
    What I would want to happen is that if a jobs is manually restarted than a promptset dialog would pop up giving the user the ability to alter the parameters if need be.
    Is this possible?
    Cheers,
    Ben


  • 2.  PromtSet activation on Restart only

    Posted Nov 30, 2016 08:32 AM
    Hello BenSumner612127,

    This is really something that should be done according to your needs... There's no out of the box solution that I would know of.

    1) Maybe using the Attribute dialog could help in your case.

    You could check if the object has been restarted with SYS_ACT_RESTART, then use :PUT_ATT to set the ATTR_DLG attribute to 'Y'.

    You can try using this code in the Process tab of the jobs:

    :IF SYS_ACT_RESTART = 'Y'
    : PUT_ATT ATTR_DLG = 'Y'
    :ENDIF

    By doing so the attribute dialog would be activated only when the task is restarted.
    However this could not be applied to a workflow, as the ATTR_DLG is not available for these objects.

    2) You could as well use a bit of scripting following the same principle.

    • SYS_ACT_RESTART to check if the object is executed in restart mode
    • :BEGINREAD, :READ and :ENDREAD to generate adynamic Promptset
    • :PUT_ATT to adjust attributes during the re-run

    Hope this helps.

    Best regards,
    Antoine