blob: 2022f50635fb91f15b332238d2756a59fa69c6e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- test that a variable declared by a script can be accessed like any other part of the data model -->
<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" initial="s0" datamodel="lua">
<script>testvar1 = 1</script>
<state id="s0">
<transition cond="testvar1 == 1" target="pass"/>
<transition target="fail"/>
</state>
<final id="pass"/>
<final id="fail"/>
</scxml>
|