You need to use thet STAXGlobal class to set a global variable in a STAX
job. Please read section "STAXGlobal Class" in the STAX User's Guide at
http://staf.sourceforge.net/current/STAX/staxug.html#STAXGlobal_Class. It
provides examples as well.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
From: "Raja Narayanan" <v_rajnara...@rediffmail.com>
To: "staf-users " <staf-users@lists.sourceforge.net>
Date: 03/16/2011 11:16 AM
Subject: [staf-users] How to set global variable in STAX XML
Program
Hello staf users,
How to set global variable in STAX XML Program?
I tried the following, it doesn't work
<stax>
<script>
teststatus = "idle"
</script>
<call defualt function = main>
<function name="main">
<sequence>
<call function name="'A'">
<call function name="'B'">
<sequence>
</stax>
In function A, I have changed the value ="running" and exit from the
function A. When called the function B, value still remains in "idle".
Please help.....
Thanks,
V Raja
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users