Automic Workload Automation

 View Only

  • 1.  PromptSets behaviour on JOBS restart

    Posted Jul 16, 2025 03:28 AM

    Hello,

    i am looking for a solution to avoid the PromptSet Dialog at JOBS restarts.
    The aim is to avoid the additional need of clicking in the PromptSet dialog, because on restart the values of the promptSet should be kept as they have been filled during the initial run.
    I also want to avoid the overlook of an unanswered PromptSet dialog when restarting an object.

    Maybe someone has an idea how to solve this. Maybe it is not possible, yet.

    Regards,
    Daniel



  • 2.  RE: PromptSets behaviour on JOBS restart

    Posted Jul 17, 2025 02:35 AM

    Hi Daniel,

    we have a solution for this using the "Send To" menu.
    https://membership.philippelmer.com/courses/wiederanlaeufe-ohne-erneute-promptset-bestaetigungen/ (German)
    https://pemautomic.com/courses/restarts-without-repeating-promptset-confirmations/ (English)

    It's only available for members, but if you sign up for the free PEM Explorer, I'm happy to grant you access to this content item in addition to the Explorer content.

    Explorer Signup:
    https://membership.philippelmer.com/pem-explorer/ (German)
    https://pemautomic.com/pem-explorer/ (English)

    Best regards,

    Philipp



    ------------------------------
    Philipp Elmer

    Learn Automic!
    https://www.pemautomic.com
    ------------------------------



  • 3.  RE: PromptSets behaviour on JOBS restart

    Posted 28 days ago

    One option would be to change from using a PromptSet object to building the Prompt via beginread,read,endread. Then set a value on post process to indicate its been restarted. On preprocess check for the value and if its not set to the "value that it was will be/was in postprocess" then use beginread, read with the values for your prompt, then endread.

    Something like the below.

    !PreProcess
    :PSET &MYRESTART# = &MYRESTART#
    :IF &MYRESTART# = ''
    :  PSET &MYRESTART# = 0
    :ENDIF
    :IF &MYRESTART# = 0
    :    BEGINREAD
    :         READ &HEADLINE#,"00","Please enter headline"
    :    ENDREAD
    :ENDIF

    !PostProcess
    :IF &MYRESTART# = 0
    :  RSET &MYRESTART# = 1
    :  SET &HND# = RESTART_UC_OBJECT(&$NAME#,&$RESTART_RUNID#)
    :ENDIF