File: topmachine.scxml

package info (click to toggle)
qtscxml-everywhere-src 5.15.8-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,768 kB
  • sloc: cpp: 13,587; javascript: 330; python: 80; ansic: 28; sh: 27; makefile: 22
file content (19 lines) | stat: -rw-r--r-- 832 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" encoding="UTF-8"?>
<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" name="TopMachine" datamodel="ecmascript">
    <datamodel>
        <data id="doneCounter" expr="0"/>
    </datamodel>
    <state id="topState">
        <invoke type="scxml" id="submachine.1" src="file:submachineA.scxml"/>
        <invoke type="scxml" id="submachine.2" src="file:submachineA.scxml"/>
        <invoke type="scxml" id="submachine.3" src="file:submachineB.scxml"/>
        <transition event="done.invoke">
            <assign location="doneCounter" expr="doneCounter + 1"/>
            <if cond="doneCounter === 3">
                <send event="goToFinal" delay="1s"/>
            </if>
        </transition>
        <transition event="goToFinal" target="finalState"/>
    </state>
    <final id="finalState"/>
</scxml>