Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Return value of a function called from %PROCESS% during RDK deploy?
I am helping to implement batch processing in which RDK updates will be installed on customer sites from a scheduling program. These updates may run procedures that are called from the %PROCESS% record in the SYSUPGRADE table either before or after the update. The procedures return a result flag indicating whether the pre/post calls succeeded or whether the update should be rescheduled.
Does a mechanism exist in the RDK deployment process to pass the function's return value back to the stored procedure that ran the update?
If not, I suppose the Frameworks Error_Services() could do the job if I manipulate the call stack correctly.
Does a mechanism exist in the RDK deployment process to pass the function's return value back to the stored procedure that ran the update?
If not, I suppose the Frameworks Error_Services() could do the job if I manipulate the call stack correctly.
Comments
It might also be possible to have your installation process write to a known record and then check the value of the record after the installation. I.e.
1. Delete the record SYSLISTS*YOURAPPUPGRADE
2.Run the RDKInstall and have your routines update status to SYSLISTS*YOURAPPUPGRADE
3. After the upgrade, check SYSLISTS*YOURAPPUPGRADE and see if there was a pass/fail response.
If there is a serous error and the install cant continue, there is a Set_FSError(TRUE$)
At the end of all the processes there is Set_Status(FALSE$)
No status is set when [EXECUTE PROCEDURES] or [EXECUTE PROCEDURES POST] are executed