A few things....
1) Is the attribute "generate at runtime" selected on the attributes tab? If not then the variable may be "set" before it actually gets to the section where it is being set.
2) If part of a workflow are all objects marked "generate at runtime" on the attributes page? If not, Automic support recommends that it is selected. Otherwise you can have issues..
3) Automic recommends (at least they did to us) that syntactically we should set the variables and then, PUBLISH them. Example: PUBLISH &Variable,,"TOP"
4) As mentioned by someone else in this thread, if you defined the variables at the beginning of a workflow (variables and prompt tab) then they should be available downstream.
Generally, we have not had any issues with :PSET in scripts. Only when the generate at runtime was not checked. Then we would get an error when we kicked it off.
------------------------------
Cheers,
Gary Chismar
Manager, Automic, PeopleSoft HCM/FI
Florida State University
Florida
------------------------------
Original Message:
Sent: 11-01-2019 01:07 PM
From: Reed Byers
Subject: Wishing for "PSET_SCRIPT_VAR"
Hi there! Oregon State University is starting our migration from Application Manager to AWA, and we continue to be full of questions.
Today's problem:
We have a script variable which is holding the NAME of the variable that we then want to PSET.
The possible solutions we've thought of are:
1) Use the SET_SCRIPT_VAR command -- but that will merely SET it. We want to PSET it.
2) Use RESOLVE_VAR to create a PSET command string... but we can't find a command to actually execute the string.
Anyone have any ideas?
------------------------------
Reed Byers
Programmer/Analyst
Oregon State University
------------------------------