cancel
Showing results for 
Search instead for 
Did you mean: 

Global Variable - How to Set and Access

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello Swapna,

Refer the following weblog

Cheers

Veera

prateek
Active Contributor
0 Kudos

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

former_member192295
Active Contributor
0 Kudos

Hi,

Find the attached below link for more help on global variables