Posted: Tue May 11, 2010 9:35 am Post subject: Set Environment in a ESQL procedure
Knight
Joined: 25 Aug 2006 Posts: 589
I am trying to create a common ESQL procedure which can be called by other node.
The code is like
create PROCEDURE MyTestCommon ( )
BEGIN
:
my esql
:
SET Environment.Variables.CommonData = '12345';
:
END;
I found out that i'll get a warning if I try to set an Environment,Variables inside that procedure.
It will actually fail the deployment with error "The correlation name 'Environment.Variables.CommonData' is not valid."
Is setting environment in a common ESQL module not allowed ?
That is because correlation names like InputRoot and Environment only are visible within a module. You must give a reference to Environment as an argument to your procedure.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum