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] outputting variables
Date Wed, 12 Apr 2006 04:18:31 GMT
Do variables need to be added to the namelist for display within output?
Strange thing is when sending SOAP message with ${var_name} it captures the
value of that variable and sends in SOAP message.  When attempting to
display variables in another transition event (e.g. Confirmation), it
outputs the literal ${var_name} instead of the value???

=========  PRINTS OUT '${var_name}' instead of 'value' ==========

<state>
<onentry>
    <var name="foo" expr="bar"/>
    .... Same for all fields you see below
</onentry>

     <transition event="uruws.prompt.confirm">
            <assign name="foo" expr="wassup" />
            <send target="http://localhost:8080/app" targettype="client"
event="uruws.authenticate" namelist="cb" delay="0" hints="" sendid="0004">
<vxml version="2.0">
<form>
<field name="input">
<prompt>
Is the following correct?

Name: ${first_name} ${middle_init} ${last_name}.

Yes or No?  

</prompt>
<option dtmf="1">Yes
</option>
<option dtmf="2">No
</option>
<noinput><reprompt/></noinput><nomatch><reprompt/></nomatch>
</field>
<filled namelist="input">
<submit next="http://webservices.goomzee.com:8080/btonramp/Voice"
namelist="input"/>
</filled>
</form>
</vxml>
            </send>
         <target next="logged_in" />
     </transition>

</state>


======== SUCCESSFULLY RETRIEVES VALUES AND POPULATES SOAP MESSAGE =========


<send ....>

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
   <Authenticate xmlns="https://www.somecompany.com">
    <userdata>
     <Basic>
      <Forename>${first_name}</Forename>
      <MiddleInitial>${middle_init}</MiddleInitial>
      <Surname>${last_name}</Surname>
     </Basic>
    </userdata>
    <account>${account}</account>
    <password>${password}</password>
  </Authenticate>
</soap:Body>
</soap:Envelope>
            
</send>




---------------------------------------------------------------------
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