Re: [SCXML] bad tests with inline values

Jim Barnett <[email protected]>
Newsgroups gmane.comp.web.voice
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.