Automic Workload Automation

Expand all | Collapse all

Display Dynamic values in Begin Read script element

  • 1.  Display Dynamic values in Begin Read script element

    Posted 05-18-2018 12:46 PM

    Hello All,

     

    As per the documentation, only static values will be shown inside Begin Read and End Read statements. Can we get dynamic values from Variable objects placed in the loop. To make it clear, Can I replace promptset with Begin Read loop.

     

    Thanks,

    Srujan.



  • 2.  Re: Display Dynamic values in Begin Read script element

    Posted 05-18-2018 02:25 PM

    I believe the answer is yes you can.  Have you tried?



  • 3.  Re: Display Dynamic values in Begin Read script element

    Posted 05-18-2018 02:36 PM

    Nope I didn't try but I guess it can be done using data sequences. Correct?

     

    Regards,

    Srujan.



  • 4.  Re: Display Dynamic values in Begin Read script element

    Posted 05-18-2018 03:50 PM

    I don't really understand your requirements, so I can't say.  Sorry.



  • 5.  Re: Display Dynamic values in Begin Read script element

    Posted 05-18-2018 04:27 PM

    petwir

    In our use case, we are using two promptsets in a workflow right now. First promptset is to take inputs like customer name and it's environments. the second promptset is placed in the first job of the workflow and the values are fetched using VARA.SEC_SQL variable by passing first promptset variable names dynamically. In other words, the second promtset would display the server details of the corresponding environment given in the first promptset. This has been working fine. But I want to change the design now by removing second promptset and to use script elements in the workflow process tab itself. 

     

     Please help me with this.

     

    Thanks,

    Srujan.



  • 6.  Re: Display Dynamic values in Begin Read script element

    Posted 05-18-2018 04:43 PM

    If you remove the second prompset, you should be able to successfully retrieve the SEC_SQL variable in a script with the PREP_PROCESS_VAR() function.  Promptsets always execute before scripts execute.



  • 7.  Re: Display Dynamic values in Begin Read script element

    Posted 05-18-2018 05:05 PM

    So now I will be having only one promptset in the top workflow and once this promptset gets triggered, it would immediately process the script in process tab of the top workflow. Hence, everything is done before starting the initial job in the workflow itself. I think this would help us.

     

    Thanks,

    Srujan.



  • 8.  Re: Display Dynamic values in Begin Read script element

    Posted 05-18-2018 05:11 PM

    I don't understand what the problem was with the old way.



  • 9.  Re: Display Dynamic values in Begin Read script element

    Posted 05-18-2018 05:23 PM

    Just wanna give it a try. I am very much interested in using script functions.

     

    Thanks,

    Srujan.