JacobeanRnD / SCHVIZ

SCXML Visualization
Apache License 2.0
6 stars 1 forks source link

Investigate why temperature sensor prototype doesn't render #29

Closed jbeard4 closed 9 years ago

jbeard4 commented 9 years ago

http://scxml.io/#/charts/temperature/instances (Login with credentials test/test)

<?xml version="1.0" encoding="UTF-8"?>
<scxml name="temperature" datamodel="ecmascript"
   xmlns="http://www.w3.org/2005/07/scxml"
   version="1.0">
   <datamodel>
       <data id="temperature" expr="0"/>
   </datamodel>
   <parallel id="main">
       <state>
            <transition event="temperature">
                <assign location="temperature" expr="_event.data"/>
            </transition>   
       </state>
       <state>
           <state id="too_hot">
               <transition target="just_right" event="temperature" cond="_event.data < 80"/>
           </state>
           <state id="just_right">
                <transition target="too_hot" event="temperature" cond="_event.data > 80"/>
                <transition target="too_cold" event="temperature" cond="_event.data < 70"/>
           </state>
           <state id="too_cold">
               <transition target="just_right" event="temperature" cond="_event.data > 70"/>
           </state>           
       </state>
   </parallel>
</scxml>

Doesn't render

screenshot 2014-12-16 21 01 46

mgax commented 9 years ago

The XML is invalid because it contains unescaped & or < in the attributes.

feyzo commented 9 years ago

Related fix https://github.com/JacobeanRnD/deus-ex-state-machine-portal/commit/621df3bc5521b93c47a6c6ba799e7b4474b9e6fa