summaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/scxmlqmlcpp/data/topmachine.scxml
blob: b733c6ab60f82987862a8d4a3154c7f88fe1011d (plain)
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>