W3C home > Mailing lists > Public > www-voice@w3.org > January to March 2014

Re: [SCXML] bad tests with inline values

From: Jim Barnett <1jhbarnett@gmail.com>
Date: Mon, 10 Feb 2014 14:31:45 -0500
Message-ID: <52F92921.8060000@gmail.com>
To: www-voice@w3.org
David,
   I am finally getting a chance to look at  these tests and am having 
trouble getting test 578 right.  Following your email, I have tried the 
following, but it is failing (in the PySCXML console.) What am I doing 
wrong?

<scxml xmlns="http://www.w3.org/2005/07/scxml" 
xmlns:conf="http://www.w3.org/2005/scxml-conformance" initial="s0" 
version="1.0" datamodel="ecmascript">


<state id="s0">
    <onentry>
     <send event="foo">
     <content>{ "productName" : "bar", "size" : 27 }</content>
     </send>
   </onentry>
   <transition event="foo" cond="_event.data.productName == 'bar'" 
target="pass"/>
   <transition event="*" target="fail"/>
   </state>


<final id="pass"><onentry><log label="Outcome" 
expr="'pass'"/></onentry></final>
<final id="fail"><onentry><log label="Outcome" 
expr="'fail'"/></onentry></final>

</scxml>

-- 
Jim Barnett
Genesys
Received on Monday, 10 February 2014 19:32:20 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:07:44 UTC