commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Heiko.Eichber...@rsbick.rohde-schwarz.com
Subject Declaration of a data model
Date Fri, 17 Mar 2006 13:56:22 GMT




Hi,

is it possible to declare a data model like defined in W3C Working Draft? I
tried it but I got a warning for undefined variable (UNDEFINED_VARIABLE (X
= null):).

<?xml version="1.0" encoding="us-ascii"?>
<scxml version="1.0" xmlns="http://www.w3.org/2005/07/scxml">
  <datamodel>
    <data name="X" expr="2"/>
  </datamodel>

  <state id="S1">
    <onentry>
      <assign name="X" expr="X--"/>
    </onentry>
    <transition event="Event1" target="S2"/>
   </state>

  <state id="S2">
    <transition event="Event2" cond= "X>0" target="S1"/>
    <transition event="Event2" cond ="X><0" target="S3"/>
    <onexit>
      <assign name="X" expr="X--"/>
    </onexit>
  </state>

  <state id="S3">
    <onentry>
      <assign name="X" expr="X++"/>
    </onentry>
    <onexit>
      <assign name="Y" expr="0"/>
    </onexit>
  </state>

</scxml>

Regards,

Heiko


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