Passing and returning multiple variables to sub-functions in eScript
Hi all,
We have a number of Server scripts approaching or at the 16KB limit in our implementation, so I have been seeking ways to break them up into more modular sub-functions.
The challenge I am facing is that some scripts manage the state of multiple non-Siebel Object variables as they work their way through the script logic. While it is possible, though not elegant, to pass a dozen parameters into a sub-function, the return needs to be able to handle multiple variables in the response as well.
The easiest and laziest approach is to simply declare everything in General Declarations. This is not preferred since they must be nullified if the business service is Cached, and depending on the business service method called, we cannot always ensure they will be reset.