Re: [SCXML] bad tests with inline values

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