commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Sparr - www.goomzee.com" <m...@goomzee.com>
Subject [SCXML] variable scoping
Date Thu, 06 Apr 2006 01:28:36 GMT
Can someone help with variables?  I want to declare some global variables
for the xml engine, then have various conditional events set the values of
those variables.  I would like to have access to those variables from one
transition event to the next.   I get the following errors:

09:04:02,372 WARN  [SimpleErrorReporter] UNDEFINED_VARIABLE (fromAccount =
null): 
09:04:02,372 WARN  [SimpleErrorReporter] UNDEFINED_VARIABLE (fromAccount =
null): 
09:04:02,372 WARN  [SimpleErrorReporter] UNDEFINED_VARIABLE (toAccount =
null): 

=======

Tried:

<scxml>
<state id="logged_in">
...
<var name="fromAccount" />
<var name="toAccount" />
       
     <transition event="banking.transfer" cond="${empty fromAccount and
empty toAccount}">
            <var name="cb" expr="${Conversation}" />
            <assign name="fromAccount" expr="${cb.request}" />
            <send target="http://localhost:8080/app" targettype="client"
event="banking.transfer" namelist="cb fromAccount toAccount" delay="0"
hints="" sendid="0009"><vxml version="2.0">
<form>
<field name="input">
<prompt>
To Account?
</prompt>
<grammar src="builtin:grammar/digits?length=7"></grammar>
<noinput><reprompt/></noinput><nomatch><reprompt/></nomatch>
</field>
<filled namelist="input">
<submit next="http://localhost:8080/app/Voice" namelist="input"/>
</filled>
</form>
</vxml>
            </send>
         <target next="logged_in" />
     </transition>

======



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message