SCXML
S lita C tare XML (SCXML) este un XML standard al W3C pentru un general limbaj de descriere pentru diagrame ale stării de tranziție . SCXML poate descrie mașini complexe de stare, inclusiv sub-stări, stări imbricate și paralele.
Standardul a fost dezvoltat de W3C din 2005 și a primit statutul de recomandare la 1 septembrie 2015. SCXML se bazează pe CCXML și Harel Statecharts.
exemplu
Următorul exemplu ilustrează modelarea unui cronometru cu SCXML.
<?xml version="1.0" encoding="UTF-8"?>
<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" initial="ready">
<state id="ready">
<transition event="watch.start" target="running"/>
<transition event="watch.reset" target="stopped"/>
</state>
<state id="running">
<transition event="watch.split" target="paused"/>
<transition event="watch.stop" target="stopped"/>
</state>
<state id="paused">
<transition event="watch.unsplit" target="running"/>
<transition event="watch.stop" target="stopped"/>
</state>
<state id="stopped">
</state>
</scxml>