diff options
Diffstat (limited to 'test/w3c/lua/test304.scxml')
-rw-r--r-- | test/w3c/lua/test304.scxml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/w3c/lua/test304.scxml b/test/w3c/lua/test304.scxml new file mode 100644 index 0000000..2022f50 --- /dev/null +++ b/test/w3c/lua/test304.scxml @@ -0,0 +1,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> |