context does not preserve variable when invoked from GroovyUtil.runScriptAtLocation

2010-03-08 Thread Patrick
Please help, I'm super stuck. In the file EmailServices.java: The function sendMailFromScreen has an orderId in bodyParameters. Context is passed to runScriptAtLocation in GroovyUtil.java. The orderId is available here. :) The function runScriptAtLocation calls this groovy file,

Re: context does not preserve variable when invoked from GroovyUtil.runScriptAtLocation

2010-03-08 Thread Scott Gray
Hi Patrick, Just a blind guess but have you tried getting the orderId from within bodyParameters? i.e. orderId = bodyParameters.orderId Sorry if that is exactly what you are doing. Regards Scott HotWax Media http://www.hotwaxmedia.com On 8/03/2010, at 9:28 PM, Patrick wrote: Please help,