on 09-29-2008 11:12 AM
Hi All,
I used Global Container to access variables among User Defined Functions, in one of the Scenario implemented. But on forum search, in couple of places (especially from Michal), i read "use Global Variable instead of Global Container".
Can anybody, please let me know, how to set and access Global Variables.
Thanks,
Swapna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In message mapping, there is an option "Edit Java Section", there provide Global Variable as say
int i;
In the initialization section, initialize the variable as
i=0;
Now in any UDF, u may use this variable i directly.
Like, int z = i;
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.