summaryrefslogtreecommitdiffstats
path: root/test/samples/apache
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-04-22 14:02:03 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-04-22 14:02:03 (GMT)
commit1fb6bcf30f954e426f2d3002d14887574fb941dd (patch)
tree08cff7f2b879c50efe79e3c04d255075522af862 /test/samples/apache
parent71c334bf4e35559496feac3f3cf00b72ceb88812 (diff)
downloaduscxml-1fb6bcf30f954e426f2d3002d14887574fb941dd.zip
uscxml-1fb6bcf30f954e426f2d3002d14887574fb941dd.tar.gz
uscxml-1fb6bcf30f954e426f2d3002d14887574fb941dd.tar.bz2
Major refactoring
- Moved tests - Changes to promela datamodel - Implemented Trie
Diffstat (limited to 'test/samples/apache')
-rw-r--r--test/samples/apache/actions-initial-test.xml57
-rw-r--r--test/samples/apache/actions-parallel-test.xml55
-rw-r--r--test/samples/apache/actions-state-test.xml52
-rw-r--r--test/samples/apache/assign-test-01.xml70
-rw-r--r--test/samples/apache/assign-test-02.xml46
-rw-r--r--test/samples/apache/bar.xml25
-rw-r--r--test/samples/apache/custom-hello-world-01.xml37
-rw-r--r--test/samples/apache/custom-hello-world-02.xml33
-rw-r--r--test/samples/apache/custom-hello-world-03.xml33
-rw-r--r--test/samples/apache/custom-hello-world-04-el.xml44
-rw-r--r--test/samples/apache/custom-hello-world-04-jexl.xml62
-rw-r--r--test/samples/apache/datamodel-01.xml107
-rw-r--r--test/samples/apache/datamodel-02.xml83
-rw-r--r--test/samples/apache/datamodel-03.xml259
-rw-r--r--test/samples/apache/datamodel-04.xml48
-rw-r--r--test/samples/apache/edit-profile-config.xml149
-rw-r--r--test/samples/apache/eventdata-01.xml47
-rw-r--r--test/samples/apache/eventdata-02.xml39
-rw-r--r--test/samples/apache/eventdata-03.xml49
-rw-r--r--test/samples/apache/eventdata-04.xml57
-rw-r--r--test/samples/apache/external-hello-world.xml33
-rw-r--r--test/samples/apache/foo.xml25
-rw-r--r--test/samples/apache/hello-world.xml31
-rw-r--r--test/samples/apache/history-deep-01.xml75
-rw-r--r--test/samples/apache/history-default-01.xml90
-rw-r--r--test/samples/apache/history-shallow-01.xml67
-rw-r--r--test/samples/apache/invoked-01.xml32
-rw-r--r--test/samples/apache/invoked-02.xml32
-rw-r--r--test/samples/apache/invoked-03-01.xml33
-rw-r--r--test/samples/apache/invoked-03.xml37
-rw-r--r--test/samples/apache/invoker-01.xml38
-rw-r--r--test/samples/apache/invoker-02.xml29
-rw-r--r--test/samples/apache/invoker-03.xml39
-rw-r--r--test/samples/apache/invoker-04.xml55
-rw-r--r--test/samples/apache/issue62-01-ext.xml27
-rw-r--r--test/samples/apache/issue62-01.xml29
-rw-r--r--test/samples/apache/issue62-02-ext.xml39
-rw-r--r--test/samples/apache/issue62-02.xml35
-rw-r--r--test/samples/apache/issue62-03-ext.xml39
-rw-r--r--test/samples/apache/issue62-03.xml35
-rw-r--r--test/samples/apache/issue64-01.xml39
-rw-r--r--test/samples/apache/issue64-02.xml55
-rw-r--r--test/samples/apache/jsp-rootctx-test.xml31
-rw-r--r--test/samples/apache/log-on-config.xml81
-rw-r--r--test/samples/apache/microwave-01.xml78
-rw-r--r--test/samples/apache/microwave-02-legacy.xml87
-rw-r--r--test/samples/apache/microwave-02.xml87
-rw-r--r--test/samples/apache/microwave-03.xml79
-rw-r--r--test/samples/apache/microwave-04.xml90
-rw-r--r--test/samples/apache/microwave-05.xml98
-rw-r--r--test/samples/apache/parallel-01.xml70
-rw-r--r--test/samples/apache/parallel-02.xml31
-rw-r--r--test/samples/apache/parallel-03.xml118
-rw-r--r--test/samples/apache/prefix-01.xml29
-rw-r--r--test/samples/apache/scxml-initial-attr.xml25
-rw-r--r--test/samples/apache/send-01.xml47
-rw-r--r--test/samples/apache/send-02.xml89
-rw-r--r--test/samples/apache/src-test-1.xml31
-rw-r--r--test/samples/apache/src-test-2.xml30
-rw-r--r--test/samples/apache/src-test-3.xml28
-rw-r--r--test/samples/apache/src-test-4.xml30
-rw-r--r--test/samples/apache/src-test-5.xml30
-rw-r--r--test/samples/apache/state-01.xml24
-rw-r--r--test/samples/apache/stateless-01.xml50
-rw-r--r--test/samples/apache/stateless-parallel-01.xml54
-rw-r--r--test/samples/apache/static-method.xml32
-rw-r--r--test/samples/apache/stopwatch.xml41
-rw-r--r--test/samples/apache/tie-breaker-01.xml35
-rw-r--r--test/samples/apache/tie-breaker-02.xml45
-rw-r--r--test/samples/apache/tie-breaker-03.xml56
-rw-r--r--test/samples/apache/tie-breaker-04.xml36
-rw-r--r--test/samples/apache/tie-breaker-05.xml64
-rw-r--r--test/samples/apache/tie-breaker-06.xml40
-rw-r--r--test/samples/apache/transitions-01-legacy.xml140
-rw-r--r--test/samples/apache/transitions-01.xml136
-rw-r--r--test/samples/apache/transitions-02.xml53
-rw-r--r--test/samples/apache/transitions-03.xml88
-rw-r--r--test/samples/apache/transitions-04.xml93
-rw-r--r--test/samples/apache/transitions-05.xml38
-rw-r--r--test/samples/apache/travel-dialog.xml54
-rw-r--r--test/samples/apache/wildcard-01.xml35
-rw-r--r--test/samples/apache/wildcard-02.xml32
-rw-r--r--test/samples/apache/wizard-01.xml41
-rw-r--r--test/samples/apache/wizard-02.xml65
84 files changed, 0 insertions, 4707 deletions
diff --git a/test/samples/apache/actions-initial-test.xml b/test/samples/apache/actions-initial-test.xml
deleted file mode 100644
index d2d3e48..0000000
--- a/test/samples/apache/actions-initial-test.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- xmlns:cs="http://commons.apache.org/scxml"
- version="1.0"
- initial="actionsTest">
-
- <state id="actionsTest">
- <initial>
- <transition target="child1">
- <cs:var name="foo"/>
- <cs:var name="delta" expr="${1+2+3}" />
- <cs:var name="eventsent"/>
- <if cond="${delta le 3}">
- <assign name="foo" expr="bar" />
- <elseif cond="${delta eq 3}"/>
- <assign name="foo" expr="fubar" />
- <else/>
- <assign name="foo" expr="foobar" />
- </if>
- <cs:var name="drink" expr="water" />
- <cs:var name="eat" expr="flies" />
- <send sendid="send12345" target="freddy" type="frog"
- event="croak" namelist="drink eat" hints="h2o bzz"
- delay="${1000+500}" />
- <cancel sendId="send12345"/>
- <log expr="leaving" label="entry001" />
- <event name="event.test"/>
- <!-- exit will be ignored, makes little sense in initial -->
- <cs:exit expr="later" namelist="freddy" />
- </transition>
- </initial>
-
- <transition event="event.test">
- <assign name="eventsent" expr="true"/>
- </transition>
-
- <state id="child1"/>
-
- </state>
-
-</scxml> \ No newline at end of file
diff --git a/test/samples/apache/actions-parallel-test.xml b/test/samples/apache/actions-parallel-test.xml
deleted file mode 100644
index be9d25c..0000000
--- a/test/samples/apache/actions-parallel-test.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- xmlns:cs="http://commons.apache.org/scxml"
- version="1.0"
- initial="actionsTest">
-
- <parallel id="actionsTest">
- <onentry>
- <cs:var name="foo"/>
- <cs:var name="delta" expr="${1+2+3}" />
- <cs:var name="eventsent"/>
- <if cond="${delta le 3}">
- <assign name="foo" expr="bar" />
- <elseif cond="${delta eq 3}"/>
- <assign name="foo" expr="fubar" />
- <else/>
- <assign name="foo" expr="foobar" />
- </if>
- <cs:var name="drink" expr="water" />
- <cs:var name="eat" expr="flies" />
- <send sendid="send12345" target="freddy" type="frog"
- event="croak" namelist="drink eat" hints="h2o bzz"
- delay="${1000+500}" />
- <cancel sendId="send12345"/>
- <log expr="leaving" label="entry001" />
- <event name="event.test"/>
- <cs:exit expr="later" namelist="freddy" />
- </onentry>
-
- <transition event="event.test">
- <assign name="eventsent" expr="true"/>
- </transition>
-
- <!-- dummy regions -->
- <state id="state01"/>
- <state id="state02"/>
- </parallel>
-
-</scxml> \ No newline at end of file
diff --git a/test/samples/apache/actions-state-test.xml b/test/samples/apache/actions-state-test.xml
deleted file mode 100644
index 3374e21..0000000
--- a/test/samples/apache/actions-state-test.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- xmlns:cs="http://commons.apache.org/scxml"
- version="1.0"
- initialstate="actionsTest">
-
- <state id="actionsTest" final="true">
- <onentry>
- <cs:var name="foo"/>
- <cs:var name="delta" expr="${1+2+3}" />
- <cs:var name="eventsent"/>
- <if cond="${delta le 3}">
- <assign name="foo" expr="bar" />
- <elseif cond="${delta eq 3}"/>
- <assign name="foo" expr="fubar" />
- <else/>
- <assign name="foo" expr="foobar" />
- </if>
- <cs:var name="drink" expr="water" />
- <cs:var name="eat" expr="flies" />
- <send sendid="send12345" target="freddy" type="frog"
- event="croak" namelist="drink eat" hints="h2o bzz"
- delay="${1000+500}" />
- <cancel sendId="send12345"/>
- <log expr="leaving" label="entry001" />
- <event name="event.test"/>
- <cs:exit expr="later" namelist="freddy" />
- </onentry>
-
- <transition event="event.test">
- <assign name="eventsent" expr="true"/>
- </transition>
-
- </state>
-
-</scxml> \ No newline at end of file
diff --git a/test/samples/apache/assign-test-01.xml b/test/samples/apache/assign-test-01.xml
deleted file mode 100644
index ed7e977..0000000
--- a/test/samples/apache/assign-test-01.xml
+++ /dev/null
@@ -1,70 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!-- Test "src" attribute of assign element -->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- xmlns:rad="http://foo/bar"
- version="1.0"
- initialstate="assign1">
-
- <state id="assign1" final="true">
-
- <datamodel>
- <data id="foo">
- <root xmlns="">
- <foo/>
- </root>
- </data>
- <data id="bar">
- <root xmlns="">
- <bar>5</bar>
- </root>
- </data>
- </datamodel>
-
- <onentry>
- <assign location="Data(foo,'root/foo')" src="assign-src.xml"/>
- </onentry>
-
- <transition cond="Data(foo,'root/foo/a') + Data(bar,'root/bar') eq 15"
- target="assign2" />
-
- </state>
-
- <state id="assign2">
-
- <datamodel>
- <data id="jira51data1">
- <rad:timeout>10</rad:timeout>
- </data>
- <data id="jira51data2">
- <rad:short xmlns="">20</rad:short>
- </data>
- </datamodel>
-
- <onentry>
- <assign location="Data(jira51data1,'rad:timeout')" expr="Data(jira51data2,'rad:short')"/>
- </onentry>
-
- <transition cond="Data(jira51data1,'rad:timeout') eq 20"
- target="assign3" />
-
- </state>
-
- <state id="assign3" final="true"/>
-
-</scxml>
diff --git a/test/samples/apache/assign-test-02.xml b/test/samples/apache/assign-test-02.xml
deleted file mode 100644
index 38ab9b3..0000000
--- a/test/samples/apache/assign-test-02.xml
+++ /dev/null
@@ -1,46 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!-- Regress JIRA 89, incomplete child removal -->
-<scxml xmlns="http://www.w3.org/2005/07/scxml" xmlns:rad="http://foo/bar" version="1.0" initialstate="assign1">
- <datamodel>
- <data name="source">
- <rad:foo>
- <rad:a>1</rad:a>
- <rad:b>2</rad:b>
- </rad:foo>
- </data>
- <data name="destination">
- <rad:bar>
- <rad:a>3</rad:a>
- <rad:b>4</rad:b>
- </rad:bar>
- </data>
- </datamodel>
- <!-- verify the destination contents -->
- <state id="assign1" final="true">
- <transition cond="Data(destination,'rad:bar/rad:a') eq 3 and Data(destination,'rad:bar/rad:b') eq 4" target="assign2" />
- </state>
- <!-- copy the new contents and verify -->
- <state id="assign2">
- <onentry>
- <assign location="Data(destination,'rad:bar')" expr="Data(source,'rad:foo')" />
- </onentry>
- <transition cond="Data(destination,'rad:bar/rad:a') eq 1 and Data(destination,'rad:bar/rad:b') eq 2" target="assign3" />
- </state>
- <state id="assign3" final="true" />
-</scxml>
diff --git a/test/samples/apache/bar.xml b/test/samples/apache/bar.xml
deleted file mode 100644
index 3901080..0000000
--- a/test/samples/apache/bar.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="bar">
-
- <state id="bar"/>
-
-</scxml>
-
diff --git a/test/samples/apache/custom-hello-world-01.xml b/test/samples/apache/custom-hello-world-01.xml
deleted file mode 100644
index 5d8a348..0000000
--- a/test/samples/apache/custom-hello-world-01.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!-- Used for comparison with hello-world.xml by
- CustomActionTest.java in model package -->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- xmlns:my="http://my.custom-actions.domain/CUSTOM1"
- xmlns:foo="http://my.custom-actions.domain/CUSTOM2"
- version="1.0"
- initialstate="custom">
-
- <state id="custom" final="true">
-
- <onentry>
- <my:hello name="world" />
- <!-- foo:bar also maps to Hello action -->
- <foo:bar name="custom action" />
- </onentry>
-
- </state>
-
-</scxml>
-
diff --git a/test/samples/apache/custom-hello-world-02.xml b/test/samples/apache/custom-hello-world-02.xml
deleted file mode 100644
index 7b27ccf..0000000
--- a/test/samples/apache/custom-hello-world-02.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!-- Used for CustomActionTest.java in model package -->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- xmlns:my="http://my.custom-actions.domain/CUSTOM"
- version="1.0"
- initialstate="custom">
-
- <state id="custom" final="true">
-
- <onentry>
- <my:hello name="child (included) document" />
- </onentry>
-
- </state>
-
-</scxml>
-
diff --git a/test/samples/apache/custom-hello-world-03.xml b/test/samples/apache/custom-hello-world-03.xml
deleted file mode 100644
index c8cfc5e..0000000
--- a/test/samples/apache/custom-hello-world-03.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!-- Used for CustomActionTest.java in model package -->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- xmlns:my="http://my.custom-actions.domain/CUSTOM"
- version="1.0"
- initialstate="custom">
-
- <state id="custom" final="true">
-
- <onentry>
- <my:send name="overridden local name" />
- </onentry>
-
- </state>
-
-</scxml>
-
diff --git a/test/samples/apache/custom-hello-world-04-el.xml b/test/samples/apache/custom-hello-world-04-el.xml
deleted file mode 100644
index 0d5300b..0000000
--- a/test/samples/apache/custom-hello-world-04-el.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!-- Used for CustomActionTest.java in model package -->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- xmlns:my="http://my.custom-actions.domain/CUSTOM"
- version="1.0" initialstate="init">
- <datamodel>
- <data id="helloName1" />
- </datamodel>
-
- <state id="init">
- <onentry>
- <my:hello name="custom04" />
- </onentry>
-
- <transition event="helloevent" target="middle1">
- <assign name="helloName1" expr="${_eventdatamap.helloevent}" />
- </transition>
- </state>
-
- <state id="middle1">
- <transition target="custom" cond="${helloName1 eq 'custom04'}" />
- </state>
-
- <state id="custom" final="true"/>
-
-</scxml>
-
-
diff --git a/test/samples/apache/custom-hello-world-04-jexl.xml b/test/samples/apache/custom-hello-world-04-jexl.xml
deleted file mode 100644
index c44e9b3..0000000
--- a/test/samples/apache/custom-hello-world-04-jexl.xml
+++ /dev/null
@@ -1,62 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!-- Used for CustomActionTest.java in model package -->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- xmlns:my="http://my.custom-actions.domain/CUSTOM"
- version="1.0" initialstate="init">
- <datamodel>
- <data id="helloName1" />
- </datamodel>
-
- <state id="init">
- <onentry>
- <my:hello name="custom04a" />
- </onentry>
-
- <transition event="helloevent" target="middle1">
- <assign name="helloName1" expr="_eventdatamap['helloevent']" />
- </transition>
- </state>
-
- <state id="middle1">
- <transition target="custom1" cond="helloName1 eq 'custom04a'" />
- </state>
-
- <state id="custom1">
- <transition event="custom.next" target="custom2"/>
- </state>
-
- <state id="custom2">
- <onentry>
- <my:hello name="custom04b" />
- </onentry>
-
- <transition event="helloevent" target="custom3">
- <assign name="helloName1" expr="_eventdatamap.helloevent" />
- </transition>
- </state>
-
- <state id="custom3">
- <transition target="end" cond="helloName1 eq 'custom04b'" />
- </state>
-
- <state id="end" final="true"/>
-
-</scxml>
-
-
diff --git a/test/samples/apache/datamodel-01.xml b/test/samples/apache/datamodel-01.xml
deleted file mode 100644
index cc874fb..0000000
--- a/test/samples/apache/datamodel-01.xml
+++ /dev/null
@@ -1,107 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!-- A fictitious state machine used by test cases.
- Meant to illustrate the usage of SCXML <datamodel> element
- and the Commons SCXML Data() function -->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="main">
-
- <!-- Root or document datamodel -->
- <datamodel>
- <data id="docdata">
- <root xmlns="">
- <foo>foo</foo>
- </root>
- </data>
- </datamodel>
-
- <state id="main">
-
- <initial>
- <transition target="ten"/>
- </initial>
-
- <!-- datamodel scoped to state "main" -->
- <datamodel>
- <data id="mainvar" expr="${0}" />
- <data id="maindata">
- <root xmlns="">
- <foo>
- <bar>bar</bar>
- </foo>
- </root>
- </data>
- </datamodel>
-
- <state id="ten">
- <onentry>
- <!-- Assign Usage 1: name is previously defined
- <var> or degenerate <data> (as in this case) -->
- <assign name="mainvar" expr="${10}" />
- </onentry>
- <!-- Commons SCXML defines a Data() function to use in conjunction
- with the Commons EL expression language. The
- first argument is the named XML data tree and the second is
- the XPath expression to a node whose value is to be
- examined -->
- <transition event="ten.done"
- cond="${mainvar eq 10 and Data(maindata,'root/foo/bar') eq 'bar'}"
- target="twenty" />
- <onexit>
- <!-- Assign Usage 2: location must point to an existing
- node -->
- <assign location="${Data(maindata,'root/foo/bar')}" expr="baz" />
- </onexit>
- </state>
-
- <state id="twenty">
- <onentry>
- <assign name="mainvar" expr="${20}" />
- </onentry>
- <transition event="twenty.done"
- cond="${Data(maindata,'root/foo/bar') eq 'baz' and mainvar eq 20}"
- target="thirty" />
- <onexit>
- <!-- Assign Usage 3: location points to an existing
- node, and expr points to an existing node.
- In this case, location adopts expr's child nodes. -->
- <assign location="${Data(docdata,'root/foo')}"
- expr="${Data(maindata,'root/foo')}" />
- <assign location="${Data(docdata,'root/foo/bar')}"
- expr="${10}" />
- </onexit>
- </state>
-
- <state id="thirty">
- <!-- Arithmetic operations are possible with results from
- the Data() function. Note that data "docdata"
- did not have a node at 'root/foo/bar' to begin with,
- the XML tree was manipulated by the <assign> above -->
- <transition event="thirty.done"
- cond="${Data(docdata,'root/foo/bar') gt 5}"
- target="forty" />
- </state>
-
- <state id="forty" final="true" />
-
- </state>
-
-</scxml>
-
-
diff --git a/test/samples/apache/datamodel-02.xml b/test/samples/apache/datamodel-02.xml
deleted file mode 100644
index b719b8b..0000000
--- a/test/samples/apache/datamodel-02.xml
+++ /dev/null
@@ -1,83 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!-- A fictitious state machine used by test cases. Meant to illustrate
- prefixed XPath expressions in the Commons SCXML Data() function -->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="ten">
-
- <!-- Start with a prefixless XPath (see transition cond) -->
- <state id="ten">
-
- <datamodel>
- <data id="data10">
- <root xmlns="">
- <foo>10</foo>
- </root>
- </data>
- </datamodel>
-
- <transition event="ten.done" cond="${Data(data10,'root/foo') eq 10}"
- target="twenty" />
-
- </state>
-
- <!-- Already defined (and identical) prefixes -->
- <state id="twenty" xmlns:ns1="http://namespace.test.domain/1"
- xmlns:ns2="http://namespace.test.domain/2">
-
- <datamodel>
- <!-- Start with a prefixless XPath -->
- <data id="data20">
- <ns1:root>
- <ns2:foo>20</ns2:foo>
- </ns1:root>
- </data>
- </datamodel>
-
- <transition event="twenty.done" cond="${Data(data20,'ns1:root/ns2:foo') eq 20}"
- target="thirty" />
-
- </state>
-
- <!-- Data without prefixes -->
- <state id="thirty">
-
- <datamodel>
- <!-- Start with a prefixless XPath -->
- <data id="data30">
- <root xmlns="http://namespace.test.domain/1">
- <foo xmlns="http://namespace.test.domain/2">30</foo>
- </root>
- </data>
- </datamodel>
-
- <transition event="thirty.done"
- xmlns:ns1="http://namespace.test.domain/1"
- xmlns:ns2="http://namespace.test.domain/2"
- xmlns:ns3="http://namespace.test.domain/3"
- cond="${Data(data30,'ns1:root/ns2:foo') eq 30}"
- target="forty" />
-
- </state>
-
- <state id="forty" final="true" />
-
-</scxml>
-
-
diff --git a/test/samples/apache/datamodel-03.xml b/test/samples/apache/datamodel-03.xml
deleted file mode 100644
index f8a3310..0000000
--- a/test/samples/apache/datamodel-03.xml
+++ /dev/null
@@ -1,259 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!-- A fictitious state machine used by test cases. Meant to illustrate
- prefixed XPath expressions in the Commons SCXML Data() function.
- Used by org.apache.commons.scxml.NamespacePrefixedPathsTest
- Also serves as testing the underlying functionality of the
- underlying parsing technology (here, Digester 1.8) -->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- xmlns:cs="http://commons.apache.org/scxml"
- version="1.0"
- initialstate="ten">
-
- <!-- Root data model -->
- <datamodel>
-
- <!-- We'll use this for XPaths -->
- <data id="rootdata"
- xmlns:ns1="scheme://namespace.test.domain/1"
- xmlns:ns2="scheme://namespace.test.domain/2"
- xmlns:ns3="scheme://namespace.test.domain/3">
- <ns1:root>
- <ns2:foo>
- <ns3:bar>1</ns3:bar>
- </ns2:foo>
- </ns1:root>
- </data>
-
- <!-- We'll use this for the JUnit test
- NamespacePrefixedPathsTest.java (scxml package) -->
- <data id="retval" />
-
- </datamodel>
-
- <!-- State data model -->
- <state id="ten">
-
- <datamodel>
-
- <data id="data10" xmlns:ns4="scheme://namespace.test.domain/1">
- <root xmlns="">
- <ns4:foo>
- <bar>10</bar>
- </ns4:foo>
- </root>
- </data>
-
- </datamodel>
-
- <onentry>
- <cs:var xmlns:pre1="scheme://namespace.test.domain/1"
- xmlns:pre2="scheme://namespace.test.domain/2"
- xmlns:pre3="scheme://namespace.test.domain/3"
- name="tentest"
- expr="${Data(rootdata,'pre1:root/pre2:foo/pre3:bar') + Data(data10,'root/pre1:foo/bar')}" />
- </onentry>
-
- <transition event="ten.done"
- cond="${tentest eq 11}"
- target="twenty" />
-
- <onexit>
- <assign name="retval"
- expr="${tentest}" />
- </onexit>
-
- </state>
-
- <!-- Already defined (and different) prefixes -->
- <state id="twenty" xmlns:ns1="scheme://namespace.test.domain/1"
- xmlns:ns2="scheme://namespace.test.domain/2"
- xmlns:ns3="scheme://namespace.test.domain/3">
-
- <datamodel>
-
- <data id="data20">
- <ns1:root>
- <ns2:foo>20</ns2:foo>
- </ns1:root>
- </data>
-
- </datamodel>
-
- <onentry>
- <assign location="${Data(rootdata,'ns1:root/ns2:foo/ns3:bar')}"
- expr="${2}" />
- </onentry>
-
-
- <!-- Redefine namespace prefixes -->
- <transition event="twenty.done"
- xmlns:ns1="scheme://namespace.test.domain/1"
- xmlns:ns2="scheme://namespace.test.domain/2"
- cond="${Data(data20,'ns1:root/ns2:foo') eq 20 and Data(rootdata,'ns1:root/ns2:foo/ns3:bar') eq 2}"
- target="thirty" />
-
- <onexit>
-
- <!-- Redefine different prefixes bound to above namespaces -->
- <if xmlns:pre1="scheme://namespace.test.domain/1"
- xmlns:pre2="scheme://namespace.test.domain/2"
- cond="${Data(data20,'pre1:root/pre2:foo') lt 20}">
-
- <assign name="retval" expr="Less than 20" />
-
- <elseif cond="${Data(data20,'pre1:root/pre2:foo') eq 20}" />
-
- <assign name="retval" expr="Equal to 20" />
-
- <else/>
-
- <assign name="retval" expr="Greater than 20" />
-
- </if>
-
- </onexit>
-
- </state>
-
- <!-- XPath looking at attribute -->
- <state id="thirty">
-
- <datamodel>
-
- <data id="data30">
- <root xmlns="scheme://namespace.test.domain/1">
- <foo xmlns="scheme://namespace.test.domain/2"
- xmlns:ns1="scheme://namespace.test.domain/3"
- ns1:attfoo="30" attbar="300"/>
- </root>
- </data>
-
- </datamodel>
-
- <transition event="thirty.done"
- xmlns:ns1="scheme://namespace.test.domain/1"
- xmlns:ns2="scheme://namespace.test.domain/2"
- xmlns:ns3="scheme://namespace.test.domain/3"
- cond="${Data(data30,'ns1:root/ns2:foo/@ns3:attfoo') + Data(data30,'ns1:root/ns2:foo/@attbar') eq 330}"
- target="forty" />
-
- </state>
-
- <!-- Multiple data, already defined prefixes -->
- <state id="forty" xmlns:ns1="scheme://namespace.test.domain/1"
- xmlns:ns2="scheme://namespace.test.domain/2"
- xmlns:ns3="scheme://namespace.test.domain/3"
- xmlns:ns4="scheme://namespace.test.domain/4">
-
- <datamodel>
-
- <data id="data40">
- <root xmlns="">
- <ns1:foo ns2:attfoo="40"/>
- </root>
- </data>
-
- <data id="data41">
- <ns3:root>
- <ns4:foo>41</ns4:foo>
- </ns3:root>
- </data>
-
- </datamodel>
-
- <transition event="forty.done"
- cond="${Data(data40,'root/ns1:foo/@ns2:attfoo') + Data(data41,'ns3:root/ns4:foo') eq 81}"
- target="fifty" />
-
- </state>
-
- <!-- Multiple data, prefixes on elements -->
- <state id="fifty">
-
- <datamodel>
-
- <data id="data50" xmlns:ns1="scheme://namespace.test.domain/1"
- xmlns:ns2="scheme://namespace.test.domain/2"
- xmlns:ns3="scheme://namespace.test.domain/3">
- <ns1:root>
- <ns2:foo ns3:attfoo="50"/>
- </ns1:root>
- </data>
-
- <data id="data51" xmlns:ns3="scheme://namespace.test.domain/3"
- xmlns:ns4="scheme://namespace.test.domain/4">
- <ns3:root>
- <ns4:foo attfoo="51"/>
- </ns3:root>
- </data>
-
- </datamodel>
-
- <transition event="fifty.done"
- xmlns:ns1="scheme://namespace.test.domain/1"
- xmlns:ns2="scheme://namespace.test.domain/2"
- xmlns:ns3="scheme://namespace.test.domain/3"
- xmlns:ns4="scheme://namespace.test.domain/4"
- cond="${Data(data50,'ns1:root/ns2:foo/@ns3:attfoo') + Data(rootdata,'ns1:root/ns2:foo/ns3:bar') eq 52}"
- target="sixty" />
-
- </state>
-
- <!-- Multiple data, prefixes on datamodel and transition elements -->
- <state id="sixty">
-
- <datamodel xmlns:ns1="scheme://namespace.test.domain/1"
- xmlns:ns2="scheme://namespace.test.domain/2"
- xmlns:ns3="scheme://namespace.test.domain/3"
- xmlns:ns4="scheme://namespace.test.domain/4">
-
- <data id="data60">
- <root xmlns="">
- <ns1:foo ns2:attfoo="60"/>
- </root>
- </data>
-
- <data id="data61">
- <ns3:root>
- <ns4:foo attfoo="61"/>
- </ns3:root>
- </data>
-
- </datamodel>
-
- <transition event="sixty.done"
- xmlns:pre1="scheme://namespace.test.domain/1"
- xmlns:pre2="scheme://namespace.test.domain/2"
- xmlns:pre3="scheme://namespace.test.domain/3"
- xmlns:pre4="scheme://namespace.test.domain/4"
- cond="${Data(data60,'root/pre1:foo/@pre2:attfoo') + Data(data61,'pre3:root/pre4:foo/@attfoo') eq 121}"
- target="seventy">
-
- <!-- should be 121 -->
- <log expr="${Data(data60,'root/pre1:foo/@pre2:attfoo') + Data(data61,'pre3:root/pre4:foo/@attfoo')}"/>
-
- </transition>
-
- </state>
-
- <state id="seventy" final="true" />
-
-</scxml>
-
-
diff --git a/test/samples/apache/datamodel-04.xml b/test/samples/apache/datamodel-04.xml
deleted file mode 100644
index 503a858..0000000
--- a/test/samples/apache/datamodel-04.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!-- A fictitious state machine used by test cases.
- Meant to illustrate the usage of SCXML <datamodel> element
- to persist some _eventdata -->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="ten">
-
- <!-- Root or document datamodel -->
- <datamodel>
- <data id="payload"/>
- </datamodel>
-
- <state id="ten">
- <transition event="ten.done" target="twenty">
- <assign name="payload" expr="_eventdata" />
- </transition>
- </state>
-
- <state id="twenty">
- <transition event="twenty.done" target="thirty" />
- <onexit>
- <log label="Persisted eventdata.one" expr="payload.one"/>
- <log label="Persisted eventdata.two" expr="payload.two"/>
- </onexit>
- </state>
-
- <state id="thirty" final="true"/>
-
-</scxml>
-
-
diff --git a/test/samples/apache/edit-profile-config.xml b/test/samples/apache/edit-profile-config.xml
deleted file mode 100644
index cdab498..0000000
--- a/test/samples/apache/edit-profile-config.xml
+++ /dev/null
@@ -1,149 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
-
- $Id: edit-profile-config.xml 462838 2006-10-11 16:08:36Z rahul $
-
--->
-
-<!--
-
- Dialog definitions for Shale Use Cases Example Web Application
- written out as SCXML to demonstrate use of Commons SCXML as one
- of Shale's Dialog Manager implementations.
-
- Related artifacts from <dialog name="Edit Profile">...</dialog>
- in original dialogs definition file from Shale nightlies.
-
--->
-
-<scxml xmlns="http://www.w3.org/2005/01/SCXML" version="1.0"
- initialstate="edit">
-
- <state id="edit">
-
- <initial>
- <transition>
- <target next="setup"/>
- </transition>
- </initial>
-
- <!-- global transitions (within state "edit") -->
-
- <transition event="faces.outcome"
- cond="${outcome eq 'cancel'}">
- <target next="cancel"/>
- </transition>
-
- <transition event="faces.outcome"
- cond="${outcome eq 'finish'}">
- <target next="finish"/>
- </transition>
-
- <state id="setup">
-
- <onentry>
- <var name="setupOutcome"
- expr="#{profile$edit.setup}" />
- </onentry>
-
- <transition cond="${setupOutcome eq 'success'}">
- <target next="page1"/>
- </transition>
-
- </state>
-
- <state id="page1">
-
- <transition event="faces.outcome"
- cond="${outcome eq 'next'}">
- <target next="page2"/>
- </transition>
-
- </state>
-
- <state id="page2">
-
- <transition event="faces.outcome"
- cond="${outcome eq 'previous'}">
- <target next="page1"/>
- </transition>
-
- <transition event="faces.outcome"
- cond="${outcome eq 'next'}">
- <target next="page3"/>
- </transition>
-
- </state>
-
- <state id="page3">
-
- <transition event="faces.outcome"
- cond="${outcome eq 'previous'}">
- <target next="page2"/>
- </transition>
-
- <transition event="faces.outcome"
- cond="${outcome eq 'next'}">
- <target next="editExit"/>
- </transition>
-
- </state>
-
- </state>
-
- <state id="cancel">
-
- <onentry>
- <var name="cancelOutcome"
- expr="#{profile$edit.cancel}" />
- </onentry>
-
- <transition cond="${cancelOutcome eq 'success'}">
- <var name="outcome"
- expr="cancel"/>
- <target next="editExit"/>
- </transition>
-
- </state>
-
- <state id="finish">
-
- <onentry>
- <var name="finishOutcome"
- expr="#{profile$edit.finish}" />
- </onentry>
-
- <transition cond="${finishOutcome eq 'username'}">
- <target next="page1"/>
- </transition>
-
- <transition cond="${finishOutcome eq 'password'}">
- <target next="page1"/>
- </transition>
-
- <transition cond="${finishOutcome eq 'success'}">
- <var name="outcome"
- expr="success"/>
- <target next="editExit"/>
- </transition>
-
- </state>
-
- <state id="editExit"
- final="true" />
-
-</scxml>
diff --git a/test/samples/apache/eventdata-01.xml b/test/samples/apache/eventdata-01.xml
deleted file mode 100644
index c07d42d..0000000
--- a/test/samples/apache/eventdata-01.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- datamodel="ecmascript"
- initialstate="state1">
- <state id="state1">
- <transition event="event.foo" cond="_event.data == 2"
- target="state2"/>
- <transition event="event.foo" cond="_event.data == 3"
- target="state3"/>
- <transition event="event.foo">
- <log expr="'event.name: ' + _event.name" />
- </transition>
- </state>
- <state id="state2" final="true"/>
- <state id="state3">
- <transition event="event.bar" target="state4"
- cond="_event.data == 4"/>
- <transition event="event.bar" target="state5"
- cond="_event.data == 5"/>
- <transition event="event.bar" target="state6"
- cond="_event.data == 6"/>
- </state>
- <state id="state4" final="true"/>
- <state id="state5" final="true"/>
- <state id="state6">
- <transition event="event.baz" target="state7"
- cond="_event.data == 7"/>
- </state>
- <state id="state7" final="true"/>
-</scxml>
diff --git a/test/samples/apache/eventdata-02.xml b/test/samples/apache/eventdata-02.xml
deleted file mode 100644
index df130ae..0000000
--- a/test/samples/apache/eventdata-02.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- datamodel="ecmascript"
- initialstate="state0">
- <state id="state0">
- <!-- Payload can be any object, such as a String ... -->
- <transition event="connection.alerting"
- cond="_event.data == 'line1'" target="state1"/>
- <transition event="connection.alerting"
- cond="_event.data == 'line2'" target="state2"/>
- </state>
- <state id="state1" final="true"/>
- <state id="state2">
- <!-- ... or an arbitrary, user defined object. -->
- <transition event="connection.alerting"
- cond="_event.data.line == 3" target="state3"/>
- <transition event="connection.alerting"
- cond="_event.data.line == 4" target="state4"/>
- </state>
- <state id="state3" final="true"/>
- <state id="state4" final="true"/>
-</scxml>
diff --git a/test/samples/apache/eventdata-03.xml b/test/samples/apache/eventdata-03.xml
deleted file mode 100644
index d4c4388..0000000
--- a/test/samples/apache/eventdata-03.xml
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- xmlns:cs="http://commons.apache.org/scxml"
- version="1.0"
- initialstate="ten">
-
- <datamodel>
- <data id="rootdata">
- <root xmlns="">
- <one>1</one>
- <two>2</two>
- </root>
- </data>
- </datamodel>
-
- <state id="ten">
- <transition event="event.foo" target="twenty"/>
- </state>
-
- <state id="twenty">
- <onentry>
- <cs:var name="one" expr="Data(rootdata,'root/one')"/>
- <cs:var name="two" expr="Data(rootdata,'root/two')"/>
- <send event="'event.bar'" namelist="one two"/>
- </onentry>
- <transition event="event.bar"
- cond="_eventdatamap['event.bar'].one + _eventdatamap['event.bar'].two eq 3"
- target="thirty"/>
- </state>
-
- <state id="thirty" final="true"/>
-
-</scxml>
diff --git a/test/samples/apache/eventdata-04.xml b/test/samples/apache/eventdata-04.xml
deleted file mode 100644
index 541d2e9..0000000
--- a/test/samples/apache/eventdata-04.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="start">
-
- <parallel id="start">
-
- <state id="simulatedUser">
- <datamodel>
- <data name="one" expr="1" />
- <data name="two" expr="2" />
- </datamodel>
-
- <onentry>
- <send event="'event.bar'" namelist="one two" delay="'100ms'"/>
- </onentry>
- <transition event="event.bar">
- <log label="'simulatedUser'" expr="_eventdatamap['event.bar'].one + ', ' + _eventdatamap['event.bar'].two"/>
- </transition>
- </state>
-
- <state id="counter">
- <initial>
- <transition target="twenty"/>
- </initial>
-
- <state id="twenty">
- <transition event="event.bar"
- cond="_eventdatamap['event.bar'].one + _eventdatamap['event.bar'].two eq 3"
- target="thirty"/>
- <transition event="event.bar">
- <log label="'event.bar in twenty state'" expr="_eventdatamap['event.bar'].one + ', ' + _eventdatamap['event.bar'].two"/>
- </transition>
- </state>
-
- <state id="thirty" final="true"/>
- </state>
-
- </parallel>
-
-</scxml>
diff --git a/test/samples/apache/external-hello-world.xml b/test/samples/apache/external-hello-world.xml
deleted file mode 100644
index b6d1b9f..0000000
--- a/test/samples/apache/external-hello-world.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!-- Used for testing custom actions in external document pulled in via
- the src attributes by ExternalCustomActionTest.java in model package -->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- xmlns:my="http://my.custom-actions.domain/CUSTOM"
- version="1.0"
- initialstate="external-hello">
-
- <state id="external-hello" final="true" src="custom-hello-world-02.xml">
-
- <onentry>
- <my:hello name="parent document" />
- </onentry>
-
- </state>
-
-</scxml>
diff --git a/test/samples/apache/foo.xml b/test/samples/apache/foo.xml
deleted file mode 100644
index 486d36e..0000000
--- a/test/samples/apache/foo.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="foo">
-
- <state id="foo"/>
-
-</scxml>
-
diff --git a/test/samples/apache/hello-world.xml b/test/samples/apache/hello-world.xml
deleted file mode 100644
index 7647899..0000000
--- a/test/samples/apache/hello-world.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!-- Used for comparison with custom-hello-world.xml by
- CustomActionTest.java in model package -->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="hello">
-
- <state id="hello" final="true">
- <onentry>
- <log expr="'hello world'" />
- </onentry>
- </state>
-
-</scxml>
-
diff --git a/test/samples/apache/history-deep-01.xml b/test/samples/apache/history-deep-01.xml
deleted file mode 100644
index 209a974..0000000
--- a/test/samples/apache/history-deep-01.xml
+++ /dev/null
@@ -1,75 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!--
- This document is an example of using deep history
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0"
- initialstate="flow">
-
- <state id="flow">
- <initial>
- <transition target="phases"/>
- </initial>
-
- <!-- deep history is specified by setting the type attribute
- to "deep" -->
-
- <history id="hist" type="deep">
-
- <!-- This is the transition to be followed if no
- prior history is available -->
-
- <transition target="phases"/>
-
- </history>
-
- <state id="phases">
-
- <initial>
- <transition target="phase1"/>
- </initial>
-
- <state id="phase1">
- <transition event="phase.done" target="phase2"/>
- </state>
-
- <state id="phase2">
- <transition event="phase.done" target="phase3"/>
- </state>
-
- <state id="phase3" final="true" />
-
- </state>
-
- <transition event="flow.pause" target="interrupted"/>
-
- <transition event="flow.terminate" target="terminated"/>
-
- </state>
-
- <state id="interrupted">
-
- <transition event="flow.resume" target="hist"/>
-
- <transition event="flow.terminate" target="terminated"/>
-
- </state>
-
- <state id="terminated" final="true"/>
-
-</scxml>
diff --git a/test/samples/apache/history-default-01.xml b/test/samples/apache/history-default-01.xml
deleted file mode 100644
index cf2f70f..0000000
--- a/test/samples/apache/history-default-01.xml
+++ /dev/null
@@ -1,90 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!--
- This document is an example of specifying default transitions for
- history states (if the parent state has never been visited before)
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0"
- initialstate="state1">
-
- <state id="state1">
- <initial>
- <transition target="history1"/>
- </initial>
-
- <!-- shallow history, explicit default transition -->
-
- <history id="history1">
- <transition next="state11"/>
- </history>
-
- <state id="state11">
- <transition event="state.next" target="state2"/>
- </state>
-
- </state>
-
- <state id="state2">
- <initial>
- <transition target="history2"/>
- </initial>
-
- <!-- deep history, explicit default transition -->
-
- <history id="history2" type="deep">
- <transition next="state211"/>
- </history>
-
- <state id="state21">
-
- <initial>
- <transition target="state212"/>
- </initial>
-
- <state id="state211">
- <transition event="state.next" target="history3"/>
- </state>
-
- <state id="state212">
- <transition event="state.next" target="history3"/>
- </state>
-
- </state>
-
- </state>
-
- <state id="state3">
-
- <initial>
- <transition target="state31"/>
- </initial>
-
- <!-- shallow history, no default transition specified,
- reuse initial as default transition -->
-
- <history id="history3"/>
-
- <state id="state31">
- <transition event="state.next" target="state4"/>
- </state>
-
- </state>
-
- <state id="state4" final="true"/>
-
-</scxml>
diff --git a/test/samples/apache/history-shallow-01.xml b/test/samples/apache/history-shallow-01.xml
deleted file mode 100644
index 20b5bb5..0000000
--- a/test/samples/apache/history-shallow-01.xml
+++ /dev/null
@@ -1,67 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!--
- This document is an example of using shallow history
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0"
- initialstate="flow">
-
- <state id="flow">
- <initial>
- <transition target="phase1"/>
- </initial>
-
- <!-- history defaults to shallow, optionally one can set
- the type attribute to "shallow" for identical results -->
-
- <history id="hist">
-
- <!-- This is the transition to be followed if no
- prior history is available -->
-
- <transition target="phase1"/>
-
- </history>
-
- <state id="phase1">
- <transition event="phase.done" target="phase2"/>
- </state>
-
- <state id="phase2">
- <transition event="phase.done" target="phase3"/>
- </state>
-
- <state id="phase3" final="true"/>
-
- <transition event="flow.pause" target="interrupted"/>
-
- <transition event="flow.terminate" target="terminated"/>
-
- </state>
-
- <state id="interrupted">
-
- <transition event="flow.resume" target="hist"/>
-
- <transition event="flow.terminate" target="terminated"/>
-
- </state>
-
- <state id="terminated" final="true"/>
-
-</scxml>
diff --git a/test/samples/apache/invoked-01.xml b/test/samples/apache/invoked-01.xml
deleted file mode 100644
index a523995..0000000
--- a/test/samples/apache/invoked-01.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="state1">
-
- <state id="state1">
- <onentry>
- <log expr="'foo is ' + foo + ' and bar is ' + bar" />
- </onentry>
- <transition event="invoked.next" target="state2" />
- </state>
-
- <state id="state2" final="true" />
-
-</scxml>
-
diff --git a/test/samples/apache/invoked-02.xml b/test/samples/apache/invoked-02.xml
deleted file mode 100644
index b1b471a..0000000
--- a/test/samples/apache/invoked-02.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="state1">
-
- <state id="state1">
- <onentry>
- <send event="'invoked.next'" />
- </onentry>
- <transition event="invoked.next" target="state2" />
- </state>
-
- <state id="state2" final="true" />
-
-</scxml>
-
diff --git a/test/samples/apache/invoked-03-01.xml b/test/samples/apache/invoked-03-01.xml
deleted file mode 100644
index 3b73a66..0000000
--- a/test/samples/apache/invoked-03-01.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!-- Used by InvokeTest#testInvoke03Sample() -->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="s1">
-
- <state id="s1">
- <onentry>
- <log expr="' Inner invoke ...'"/>
- </onentry>
- <transition event="s1.next" target="s2"/>
- </state>
-
- <state id="s2" final="true"/>
-
-</scxml>
-
diff --git a/test/samples/apache/invoked-03.xml b/test/samples/apache/invoked-03.xml
deleted file mode 100644
index 91244e8..0000000
--- a/test/samples/apache/invoked-03.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!-- Used by InvokeTest#testInvoke03Sample() -->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="state1">
-
- <state id="state1">
- <onentry>
- <log expr="' Outer invoke ...'"/>
- </onentry>
- <invoke type="scxml" src="invoked-03-01.xml"/>
- <transition event="state1.next" target="end1" />
- </state>
-
- <state id="end1" final="true">
- <onentry>
- <log expr="' Inner invoke completed'"/>
- </onentry>
- </state>
-
-</scxml>
diff --git a/test/samples/apache/invoker-01.xml b/test/samples/apache/invoker-01.xml
deleted file mode 100644
index 5355896..0000000
--- a/test/samples/apache/invoker-01.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="invoker">
-
- <state id="invoker">
- <onentry>
- <log expr="'Begin invoke test ...'" />
- </onentry>
- <invoke type="scxml" src="invoked-01.xml">
- <param name="foo" expr="'foo'" />
- <param name="bar" expr="'bar'" />
- <finalize>
- <log expr="'Finalizing ...'" />
- </finalize>
- </invoke>
- <transition event="invoker.invoke.done" target="end" />
- </state>
-
- <state id="end" final="true" />
-
-</scxml>
diff --git a/test/samples/apache/invoker-02.xml b/test/samples/apache/invoker-02.xml
deleted file mode 100644
index a6fb2cb..0000000
--- a/test/samples/apache/invoker-02.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="invoker">
-
- <state id="invoker">
- <invoke type="scxml" src="invoked-02.xml"/>
- <transition event="invoker.invoke.done" target="end" />
- </state>
-
- <state id="end" final="true" />
-
-</scxml>
diff --git a/test/samples/apache/invoker-03.xml b/test/samples/apache/invoker-03.xml
deleted file mode 100644
index be2d1fa..0000000
--- a/test/samples/apache/invoker-03.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!-- Used by InvokeTest#testInvoke03Sample() -->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="invoker">
-
- <state id="invoker">
- <onentry>
- <log expr="'Invoker ...'"/>
- </onentry>
- <invoke type="scxml" src="invoked-03.xml"/>
- <transition event="invoker.invoke.done" target="end">
- <log expr="' Outer invoke completed'"/>
- </transition>
- </state>
-
- <state id="end" final="true">
- <onentry>
- <log expr="'Invoker completed'"/>
- </onentry>
- </state>
-
-</scxml>
diff --git a/test/samples/apache/invoker-04.xml b/test/samples/apache/invoker-04.xml
deleted file mode 100644
index 81c1bb8..0000000
--- a/test/samples/apache/invoker-04.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!-- A fictitious state machine used by test cases.
- Meant to illustrate the usage of SCXML <param> element as part
- of an invocation using a custom invoker -->
-
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="wait">
-
- <datamodel>
- <data id="foo">
- <bar>foo</bar>
- </data>
- </datamodel>
-
- <state id="wait">
- <transition event="test.trigger" target="first"/>
- </state>
-
- <state id="first">
- <invoke src="FirstTestSrc" type="x-test">
- <param name="ding" expr="Data(foo,'node()')"/>
- </invoke>
- <transition event="test.trigger" target="second"/>
- </state>
-
- <state id="second">
- <invoke src="SecondTestSrc" type="x-test">
- <param name="Data(foo,'node()')"/>
- </invoke>
- <transition event="test.trigger" target="third"/>
- </state>
-
- <state id="third">
- <invoke src="ThirdTestSrc" type="x-test">
- <param name="Data(foo,'gibberish')"/>
- </invoke>
- </state>
-</scxml> \ No newline at end of file
diff --git a/test/samples/apache/issue62-01-ext.xml b/test/samples/apache/issue62-01-ext.xml
deleted file mode 100644
index 8c65a78..0000000
--- a/test/samples/apache/issue62-01-ext.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0"
- initialstate="ext">
-
- <state id="ext">
- <transition event="foo">
- <log expr="'Stay transition in issue 62 test'"/>
- </transition>
- </state>
-
-</scxml>
diff --git a/test/samples/apache/issue62-01.xml b/test/samples/apache/issue62-01.xml
deleted file mode 100644
index 3599e5e..0000000
--- a/test/samples/apache/issue62-01.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0"
- initialstate="s1">
-
- <state id="s1">
- <initial>
- <transition target="s1.1" />
- </initial>
- <state id="s1.1" src="issue62-01-ext.xml#ext" />
- <state id="s1.2" src="issue62-01-ext.xml#ext" />
- </state>
-
-</scxml>
diff --git a/test/samples/apache/issue62-02-ext.xml b/test/samples/apache/issue62-02-ext.xml
deleted file mode 100644
index 98da5d6..0000000
--- a/test/samples/apache/issue62-02-ext.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0"
- initialstate="e1">
-
- <state id="e1">
- <initial>
- <transition target="e1.1"/>
- </initial>
- <state id="e1.1">
- <initial>
- <transition target="e1.1.1"/>
- </initial>
- <state id="e1.1.1">
- <transition event="bar" target="e1.1.2"/>
- </state>
- <state id="e1.1.2">
- <transition event="baz" target="e1.2"/>
- </state>
- </state>
- <state id="e1.2" final="true"/>
- </state>
-
-</scxml>
diff --git a/test/samples/apache/issue62-02.xml b/test/samples/apache/issue62-02.xml
deleted file mode 100644
index 8e52e42..0000000
--- a/test/samples/apache/issue62-02.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0"
- initialstate="s1">
-
- <state id="s1">
- <transition event="foo" target="s2" />
- </state>
-
- <state id="s2">
- <initial>
- <transition target="s2.1"/>
- </initial>
- <state id="s2.1" src="issue62-02-ext.xml#e1" />
- <transition event="s2.1.done" target="s3"/>
- </state>
-
- <state id="s3" final="true"/>
-
-</scxml>
diff --git a/test/samples/apache/issue62-03-ext.xml b/test/samples/apache/issue62-03-ext.xml
deleted file mode 100644
index 0168447..0000000
--- a/test/samples/apache/issue62-03-ext.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0"
- initialstate="e1">
-
- <state id="e1">
- <initial>
- <transition target="e1.1"/>
- </initial>
- <state id="e1.1">
- <initial>
- <transition target="e1.1.1"/>
- </initial>
- <state id="e1.1.1">
- <transition event="bar" target="e1.1.2"/>
- </state>
- <state id="e1.1.2">
- <transition event="baz" target="e1.2"/>
- </state>
- </state>
- <final id="e1.2"/>
- </state>
-
-</scxml>
diff --git a/test/samples/apache/issue62-03.xml b/test/samples/apache/issue62-03.xml
deleted file mode 100644
index 46b8991..0000000
--- a/test/samples/apache/issue62-03.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0"
- initialstate="s1">
-
- <state id="s1">
- <transition event="foo" target="s2" />
- </state>
-
- <state id="s2">
- <initial>
- <transition target="s2.1"/>
- </initial>
- <state id="s2.1" src="issue62-03-ext.xml#e1" />
- <transition event="s2.1.done" target="s3"/>
- </state>
-
- <final id="s3"/>
-
-</scxml>
diff --git a/test/samples/apache/issue64-01.xml b/test/samples/apache/issue64-01.xml
deleted file mode 100644
index bb848fe..0000000
--- a/test/samples/apache/issue64-01.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!-- Correct SCXML document -->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="tranbug">
-
- <state id="tranbug">
- <datamodel>
- <data id="dummy" expr="'somedata'"/>
- </datamodel>
- <onentry>
- <log expr="'Begin transition bug test ...'" />
- </onentry>
- <transition event="show.bug" target="end">
- <log expr="dummy" />
- <log expr="'*****' + dummy" />
- </transition>
- </state>
- <state id="end" final="true" />
-
-</scxml>
-
-
diff --git a/test/samples/apache/issue64-02.xml b/test/samples/apache/issue64-02.xml
deleted file mode 100644
index 7e44d30..0000000
--- a/test/samples/apache/issue64-02.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!-- Bad SCXML document, many elements will be ignored with warnings from parser -->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- xmlns:my="http://my.foo.example/"
- version="1.0"
- initialstate="tranbug">
-
- <datamodel>
- <data id="foo">
- <alpha xmlns="">
- <beta/>
- </alpha>
- </data>
- <misplaced/>
- </datamodel>
-
- <state id="tranbug">
- <onentry>
- <log expr="'Begin transition bug test ...'" />
- <foo/>
- <my:bar/>
- </onentry>
- <transition event="show.bug" target="end">
- <!-- For example, FOLLOWING datamodel IS MISPLACED -->
- <datamodel>
- <data id="dummy" expr="'somedata'"/>
- </datamodel>
- <log expr="dummy" />
- <log expr="'*****' + dummy" />
- </transition>
- </state>
-
- <my:baz/>
-
- <state id="end" final="true" />
-
-</scxml>
-
-
diff --git a/test/samples/apache/jsp-rootctx-test.xml b/test/samples/apache/jsp-rootctx-test.xml
deleted file mode 100644
index 6a71579..0000000
--- a/test/samples/apache/jsp-rootctx-test.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- xmlns:cs="http://commons.apache.org/scxml"
- version="1.0"
- initialstate="rootCtxTest">
-
- <state id="rootCtxTest" final="true">
- <onentry>
- <!-- 'foo' must exist in host JSP context -->
- <assign name="foo" expr="${foo+1}" />
- <cs:var name="bar" expr="a brand new value" />
- </onentry>
- </state>
-
-</scxml>
diff --git a/test/samples/apache/log-on-config.xml b/test/samples/apache/log-on-config.xml
deleted file mode 100644
index b57780e..0000000
--- a/test/samples/apache/log-on-config.xml
+++ /dev/null
@@ -1,81 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
-
- $Id: log-on-config.xml 462838 2006-10-11 16:08:36Z rahul $
-
--->
-
-<!--
-
- Dialog definitions for Shale Use Cases Example Web Application
- written out as SCXML to demonstrate use of Commons SCXML as one
- of Shale's Dialog Manager implementations.
-
- Related artifacts from <dialog name="Log On">...</dialog>
- in original dialogs definition file from Shale nightlies.
-
--->
-
-<scxml xmlns="http://www.w3.org/2005/01/SCXML" version="1.0"
- initialstate="checkCookie">
-
-
- <state id="checkCookie">
-
- <onentry>
- <var name="cookieOutcome"
- expr="#{profile$logon.check}" />
- </onentry>
-
- <transition cond="${cookieOutcome eq 'authenticated'}">
- <target next="exit"/>
- </transition>
-
- <transition cond="${cookieOutcome eq 'unauthenticated'}">
- <target next="logon"/>
- </transition>
-
- </state>
-
- <state id="logon">
-
- <transition event="faces.outcome"
- cond="${outcome eq 'authenticated'}">
- <target next="exit"/>
- </transition>
-
- <transition event="faces.outcome"
- cond="${outcome eq 'create'}">
- <target next="createProfile"/>
- </transition>
-
- </state>
-
- <state id="createProfile"
- src="edit-profile-config.xml" >
-
- <transition event="createProfile.done"
- cond="${outcome eq 'success' or outcome eq 'cancel'}">
- <target next="exit"/>
- </transition>
-
- </state>
-
- <state id="exit"
- final="true" />
-
-</scxml>
diff --git a/test/samples/apache/microwave-01.xml b/test/samples/apache/microwave-01.xml
deleted file mode 100644
index 86efa26..0000000
--- a/test/samples/apache/microwave-01.xml
+++ /dev/null
@@ -1,78 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!--
- This document uses JSP 2.0 EL as the expressions language.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- xmlns:cs="http://commons.apache.org/scxml"
- version="1.0"
- initialstate="off">
-
- <!-- trivial microwave oven example -->
- <state id="off">
- <!-- off state -->
- <transition event="turn_on" target="on"/>
- </state>
-
- <state id="on">
- <initial>
- <transition target="idle"/>
- </initial>
-
- <!-- on/pause state -->
- <onentry>
- <!-- we assume the cook_time is passed in as a context parameter -->
- <if cond="${empty cook_time}">
- <!-- default setting -->
- <cs:var name="cook_time" expr="${5}"/>
- </if>
- <!-- again, door_closed should be a part of a global context -->
- <if cond="${empty door_closed}">
- <!-- default setting -->
- <cs:var name="door_closed" expr="${true}"/>
- </if>
- <!-- timer variable -->
- <cs:var name="timer" expr="${0}"/>
- </onentry>
-
- <transition event="turn_off" target="off"/>
-
- <transition cond="${timer ge cook_time}" target="off"/>
-
- <state id="idle">
- <!-- default immediate transition -->
- <transition cond="${door_closed}" target="cooking"/>
-
- <!-- start cooking -->
- <transition event="door_close" target="cooking">
- <assign name="door_closed" expr="${true}"/>
- </transition>
- </state>
-
- <state id="cooking">
- <transition event="door_open" target="idle">
- <assign name="door_closed" expr="${false}"/>
- </transition>
- <transition event="time" target="cooking">
- <assign name="timer" expr="${timer + 1}"/>
- </transition>
- </state>
-
- </state>
-
-</scxml>
diff --git a/test/samples/apache/microwave-02-legacy.xml b/test/samples/apache/microwave-02-legacy.xml
deleted file mode 100644
index eaeb14a..0000000
--- a/test/samples/apache/microwave-02-legacy.xml
+++ /dev/null
@@ -1,87 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!--
- This document uses JSP 2.0 EL as the expressions language.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0"
- initialstate="microwave">
-
- <!-- trivial microwave oven example -->
- <!-- using parallel and In() predicate -->
-
- <state id="microwave">
- <parallel id="parts">
- <state id="oven">
- <initial>
- <transition target="off"/>
- </initial>
-
- <state id="off">
- <!-- off state -->
- <transition event="turn_on" target="on"/>
- </state>
-
- <state id="on">
- <initial>
- <transition target="idle"/>
- </initial>
-
- <!-- on/pause state -->
- <onentry>
- <!-- we assume the cook_time is passed in as a context parameter -->
- <if cond="${empty cook_time}">
- <!-- default setting -->
- <var name="cook_time" expr="${5}"/>
- </if>
- <!-- timer variable -->
- <var name="timer" expr="${0}"/>
- </onentry>
-
- <transition event="turn_off" target="off"/>
-
- <transition cond="${timer ge cook_time}" target="off"/>
-
- <state id="idle">
- <transition cond="${In('closed')}" target="cooking"/>
- </state>
-
- <state id="cooking">
- <transition cond="${not In('closed')}" target="idle"/>
-
- <transition event="time" target="cooking">
- <assign name="timer" expr="${timer + 1}"/>
- </transition>
- </state>
- </state>
- </state>
-
- <state id="door">
- <initial>
- <transition target="closed"/>
- </initial>
- <state id="closed">
- <transition event="door_open" target="open"/>
- </state>
- <state id="open">
- <transition event="door_close" target="closed"/>
- </state>
- </state>
- </parallel>
- </state>
-
-</scxml>
diff --git a/test/samples/apache/microwave-02.xml b/test/samples/apache/microwave-02.xml
deleted file mode 100644
index c03fe05..0000000
--- a/test/samples/apache/microwave-02.xml
+++ /dev/null
@@ -1,87 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!--
- This document uses JSP 2.0 EL as the expressions language.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- xmlns:cs="http://commons.apache.org/scxml"
- version="1.0"
- initialstate="microwave">
-
- <!-- trivial microwave oven example -->
- <!-- using parallel and In() predicate -->
-
- <parallel id="microwave">
- <state id="oven">
- <initial>
- <transition target="off"/>
- </initial>
-
- <state id="off">
- <!-- off state -->
- <transition event="turn_on" target="on"/>
- </state>
-
- <state id="on">
- <initial>
- <transition target="idle"/>
- </initial>
-
- <!-- on/pause state -->
- <onentry>
- <!-- we assume the cook_time is passed in as a context parameter -->
- <if cond="${empty cook_time}">
- <!-- default setting -->
- <cs:var name="cook_time" expr="${5}"/>
- </if>
- <!-- timer variable -->
- <cs:var name="timer" expr="${0}"/>
- </onentry>
-
- <transition event="turn_off" target="off"/>
-
- <transition cond="${timer ge cook_time}" target="off"/>
-
- <state id="idle">
- <transition cond="${In('closed')}" target="cooking"/>
- </state>
-
- <state id="cooking">
- <transition cond="${not In('closed')}" target="idle"/>
-
- <transition event="time" target="cooking">
- <assign name="timer" expr="${timer + 1}"/>
- </transition>
- </state>
- </state>
- </state>
-
- <state id="door">
- <initial>
- <transition target="closed"/>
- </initial>
- <state id="closed">
- <transition event="door_open" target="open"/>
- </state>
- <state id="open">
- <transition event="door_close" target="closed"/>
- </state>
- </state>
- </parallel>
-
-</scxml>
diff --git a/test/samples/apache/microwave-03.xml b/test/samples/apache/microwave-03.xml
deleted file mode 100644
index 887b1a6..0000000
--- a/test/samples/apache/microwave-03.xml
+++ /dev/null
@@ -1,79 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!--
- This document uses Commons JEXL as the expressions language.
- Needs SCXMLParser.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- xmlns:cs="http://commons.apache.org/scxml"
- version="1.0"
- initialstate="off">
-
- <!-- trivial microwave oven example -->
- <state id="off">
- <!-- off state -->
- <transition event="turn_on" target="on"/>
- </state>
-
- <state id="on">
- <initial>
- <transition target="idle"/>
- </initial>
-
- <!-- on/pause state -->
- <onentry>
- <!-- we assume the cook_time is passed in as a context parameter -->
- <if cond="empty(cook_time)">
- <!-- default setting -->
- <cs:var name="cook_time" expr="5"/>
- </if>
- <!-- again, door_closed should be a part of a global context -->
- <if cond="empty(door_closed)">
- <!-- default setting -->
- <cs:var name="door_closed" expr="true"/>
- </if>
- <!-- timer variable -->
- <cs:var name="timer" expr="0"/>
- </onentry>
-
- <transition event="turn_off" target="off"/>
-
- <transition cond="timer ge cook_time" target="off"/>
-
- <state id="idle">
- <!-- default immediate transition -->
- <transition cond="door_closed" target="cooking"/>
-
- <!-- start cooking -->
- <transition event="door_close" target="cooking">
- <assign name="door_closed" expr="true"/>
- </transition>
- </state>
-
- <state id="cooking">
- <transition event="door_open" target="idle">
- <assign name="door_closed" expr="false"/>
- </transition>
- <transition event="time" target="cooking">
- <assign name="timer" expr="timer + 1"/>
- </transition>
- </state>
-
- </state>
-
-</scxml>
diff --git a/test/samples/apache/microwave-04.xml b/test/samples/apache/microwave-04.xml
deleted file mode 100644
index 96656dd..0000000
--- a/test/samples/apache/microwave-04.xml
+++ /dev/null
@@ -1,90 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!--
- This document uses Commons JEXL as the expressions language.
- Needs SCXMLParser.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- xmlns:cs="http://commons.apache.org/scxml"
- version="1.0"
- initialstate="microwave">
-
- <!-- trivial microwave oven example -->
- <!-- using parallel and In() predicate -->
-
- <parallel id="microwave">
-
- <state id="oven">
- <initial>
- <transition target="off"/>
- </initial>
-
- <state id="off">
- <!-- off state -->
- <transition event="turn_on" target="on"/>
- </state>
-
- <state id="on">
- <initial>
- <transition target="idle"/>
- </initial>
-
- <!-- on/pause state -->
- <onentry>
- <!-- we assume the cook_time is passed in as a context parameter -->
- <if cond="empty(cook_time)">
- <!-- default setting, note namespace of this custom action -->
- <cs:var name="cook_time" expr="5"/>
- </if>
- <!-- timer variable -->
- <cs:var name="timer" expr="0"/>
- </onentry>
-
- <transition event="turn_off" target="off"/>
-
- <transition cond="timer ge cook_time" target="off"/>
-
- <state id="idle">
- <transition cond="In('closed')" target="cooking"/>
- </state>
-
- <state id="cooking">
- <transition cond="not In('closed')" target="idle"/>
-
- <transition event="time" target="cooking">
- <assign name="timer" expr="timer + 1"/>
- </transition>
- </state>
- </state>
- </state>
-
- <state id="door">
- <initial>
- <transition target="closed"/>
- </initial>
- <state id="closed">
- <transition event="door_open" target="open"/>
- </state>
- <state id="open">
- <transition event="door_close" target="closed"/>
- </state>
- </state>
-
- </parallel>
-
-</scxml>
diff --git a/test/samples/apache/microwave-05.xml b/test/samples/apache/microwave-05.xml
deleted file mode 100644
index 06b9fc9..0000000
--- a/test/samples/apache/microwave-05.xml
+++ /dev/null
@@ -1,98 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!--
- This document uses Commons JEXL as the expressions language.
- Needs SCXMLParser.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- xmlns:cs="http://commons.apache.org/scxml"
- version="1.0"
- initialstate="microwave">
-
- <!-- trivial microwave oven example -->
- <!-- using parallel (part of composite state) and In() predicate -->
-
- <state id="microwave">
-
- <initial>
- <transition target="parts"/>
- </initial>
-
- <parallel id="parts">
-
- <state id="oven">
- <initial>
- <transition target="off"/>
- </initial>
-
- <state id="off">
- <!-- off state -->
- <transition event="turn_on" target="on"/>
- </state>
-
- <state id="on">
- <initial>
- <transition target="idle"/>
- </initial>
-
- <!-- on/pause state -->
- <onentry>
- <!-- we assume the cook_time is passed in as a context parameter -->
- <if cond="empty(cook_time)">
- <!-- default setting, note namespace of this custom action -->
- <cs:var name="cook_time" expr="5"/>
- </if>
- <!-- timer variable -->
- <cs:var name="timer" expr="0"/>
- </onentry>
-
- <transition event="turn_off" target="off"/>
-
- <transition cond="timer ge cook_time" target="off"/>
-
- <state id="idle">
- <transition cond="In('closed')" target="cooking"/>
- </state>
-
- <state id="cooking">
- <transition cond="not In('closed')" target="idle"/>
-
- <transition event="time" target="cooking">
- <assign name="timer" expr="timer + 1"/>
- </transition>
- </state>
- </state>
- </state>
-
- <state id="door">
- <initial>
- <transition target="closed"/>
- </initial>
- <state id="closed">
- <transition event="door_open" target="open"/>
- </state>
- <state id="open">
- <transition event="door_close" target="closed"/>
- </state>
- </state>
-
- </parallel>
-
- </state>
-
-</scxml>
diff --git a/test/samples/apache/parallel-01.xml b/test/samples/apache/parallel-01.xml
deleted file mode 100644
index e822285..0000000
--- a/test/samples/apache/parallel-01.xml
+++ /dev/null
@@ -1,70 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!--
- Needs SCXMLParser
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="para">
-
- <parallel id="para">
-
- <state id="para1">
-
- <initial>
- <transition target="para11"/>
- </initial>
-
- <state id="para11">
- <transition event="foo" target="para12"/>
- </state>
-
- <state id="para12">
- <onexit>
- <log expr="'Exiting para12'" />
- </onexit>
- </state>
-
- </state>
-
- <state id="para2">
-
- <initial>
- <transition target="para21"/>
- </initial>
-
- <state id="para21">
- <transition cond="In('para12')" target="para22"/>
- </state>
-
- <state id="para22">
- <onexit>
- <log expr="'Exiting para22'" />
- </onexit>
-
- <transition target="end"/>
- </state>
-
- </state>
-
- </parallel>
-
- <state id="end" final="true" />
-
-</scxml>
-
diff --git a/test/samples/apache/parallel-02.xml b/test/samples/apache/parallel-02.xml
deleted file mode 100644
index 106fc86..0000000
--- a/test/samples/apache/parallel-02.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!--
- Needs SCXMLParser
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" initialstate="state0">
-
- <parallel id="state0">
- <transition event="event1" target="state1" />
- <!-- dummy regions -->
- <state id="state01"/>
- <state id="state02"/>
- </parallel>
- <final id="state1"/>
-
-</scxml>
diff --git a/test/samples/apache/parallel-03.xml b/test/samples/apache/parallel-03.xml
deleted file mode 100644
index d57196a..0000000
--- a/test/samples/apache/parallel-03.xml
+++ /dev/null
@@ -1,118 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!--
- Needs SCXMLParser
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initial="para">
-
- <datamodel>
- <data id="root">
- <root xmlns="">
- <count>0</count>
- </root>
- </data>
- </datamodel>
-
- <parallel id="para">
-
- <onentry>
- <assign location="Data(root, 'root/count')" expr="Data(root, 'root/count') + 1"/>
- </onentry>
-
- <state id="para1">
-
- <initial>
- <transition target="para11"/>
- </initial>
- <onentry>
- <assign location="Data(root, 'root/count')" expr="Data(root, 'root/count') + 1"/>
- </onentry>
-
- <state id="para11">
- <onentry>
- <assign location="Data(root, 'root/count')" expr="Data(root, 'root/count') + 1"/>
- </onentry>
- <transition event="foo" target="para12"/>
- <onexit>
- <assign location="Data(root, 'root/count')" expr="Data(root, 'root/count') + 1"/>
- </onexit>
- </state>
-
- <final id="para12">
- <onentry>
- <assign location="Data(root, 'root/count')" expr="Data(root, 'root/count') + 1"/>
- </onentry>
- <onexit>
- <assign location="Data(root, 'root/count')" expr="Data(root, 'root/count') + 1"/>
- </onexit>
- </final>
-
- <onexit>
- <assign location="Data(root, 'root/count')" expr="Data(root, 'root/count') + 1"/>
- </onexit>
-
- </state>
-
- <state id="para2">
-
- <initial>
- <transition target="para21"/>
- </initial>
- <onentry>
- <assign location="Data(root, 'root/count')" expr="Data(root, 'root/count') + 1"/>
- </onentry>
-
- <state id="para21">
- <onentry>
- <assign location="Data(root, 'root/count')" expr="Data(root, 'root/count') + 1"/>
- </onentry>
- <transition event="bar" target="para22"/>
- <onexit>
- <assign location="Data(root, 'root/count')" expr="Data(root, 'root/count') + 1"/>
- </onexit>
- </state>
-
- <final id="para22">
- <onentry>
- <assign location="Data(root, 'root/count')" expr="Data(root, 'root/count') + 1"/>
- </onentry>
- <onexit>
- <assign location="Data(root, 'root/count')" expr="Data(root, 'root/count') + 1"/>
- </onexit>
- </final>
-
- <onexit>
- <assign location="Data(root, 'root/count')" expr="Data(root, 'root/count') + 1"/>
- </onexit>
-
- </state>
-
- <transition event="para.done" target="end"/>
-
- <onexit>
- <assign location="Data(root, 'root/count')" expr="Data(root, 'root/count') + 1"/>
- </onexit>
-
- </parallel>
-
- <state id="end" final="true" />
-
-</scxml>
-
diff --git a/test/samples/apache/prefix-01.xml b/test/samples/apache/prefix-01.xml
deleted file mode 100644
index 79cbe69..0000000
--- a/test/samples/apache/prefix-01.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml:scxml xmlns:scxml="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="ten">
-
- <scxml:state id="ten">
- <scxml:transition event="ten.done" target="twenty"/>
- </scxml:state>
-
- <scxml:state id="twenty" final="true" />
-
-</scxml:scxml>
-
diff --git a/test/samples/apache/scxml-initial-attr.xml b/test/samples/apache/scxml-initial-attr.xml
deleted file mode 100644
index 0965653..0000000
--- a/test/samples/apache/scxml-initial-attr.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!-- Used for SrcTest.java in io package -->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initial="foo">
-
- <final id="foo"/>
-
-</scxml>
diff --git a/test/samples/apache/send-01.xml b/test/samples/apache/send-01.xml
deleted file mode 100644
index 4f3cf40..0000000
--- a/test/samples/apache/send-01.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="ten">
-
- <state id="ten">
- <transition event="ten.done" target="twenty">
- <send sendid="send1" delay="'0'"
- target="'http://localhost:8080/VXMLInterpreter'" type="'v3'"
- xmlns:v3="http://foo.bar.com/vxml3"
- xmlns:test="http://my.test.namespace">
- <v3:form id="Confirm">
- <v3:grammar type="application/srgs+xml"
- src="/grammars/boolean.grxml"/>
- <v3:block>
- <v3:prompt>Say yes or no.</v3:prompt>
- </v3:block>
- </v3:form>
- <test:foo id="foo1">
- <test:bar id="bar1" />
- </test:foo>
- <test:foo id="foo2">
- <v3:prompt>This is just an example.</v3:prompt>
- </test:foo>
- </send>
- </transition>
- </state>
-
- <state id="twenty" final="true" />
-
-</scxml>
diff --git a/test/samples/apache/send-02.xml b/test/samples/apache/send-02.xml
deleted file mode 100644
index 9685385..0000000
--- a/test/samples/apache/send-02.xml
+++ /dev/null
@@ -1,89 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!-- Various send usages that fire the events on the existing execution
- engine. -->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="ten">
-
- <!-- We are expected to just fall all the way through down to
- the state "seventy", then hop over and end up in "ninety" -->
- <state id="ten">
- <onentry>
- <send event="'ten.' + 'done'" />
- </onentry>
- <transition event="ten.done" target="twenty" />
- </state>
-
- <state id="twenty">
- <onentry>
- <send event="'twenty.done'" type="'scxml'" />
- </onentry>
- <transition event="twenty.done" target="thirty" />
- </state>
-
- <state id="thirty">
- <onentry>
- <send event="'thirty.done'" type="' sCxML '" />
- </onentry>
- <transition event="thirty.done" target="forty" />
- </state>
-
- <state id="forty">
- <onentry>
- <send event="'forty.done'" type=" " target=" " />
- </onentry>
- <transition event="forty.done" target="fifty" />
- </state>
-
- <state id="fifty">
- <onentry>
- <send event="'fifty.done'" target="' '" />
- </onentry>
- <transition event="fifty.done" target="sixty" />
- </state>
-
- <state id="sixty">
- <onentry>
- <send event="'sixty.done'" type="'scxml'" target=" " />
- </onentry>
- <transition event="sixty.done" target="seventy" />
- </state>
-
- <state id="seventy">
- <onentry>
- <send event="'seventy.done'" type="'scxml'" target="'foo'" />
- </onentry>
-
- <!-- This transition should not be followed since
- target "foo" is unavailable (any target other
- than an empty target is unavailable, empty target
- is current execution i.e. this state machine) -->
- <transition event="seventy.done" target="eighty" />
-
- <!-- Since "foo" it not available, the event
- "error.send.targetunavailable" should be raised -->
- <transition event="error.send.targetunavailable" target="ninety" />
-
- </state>
-
- <state id="eighty" final="true" />
-
- <state id="ninety" final="true" />
-
-</scxml>
diff --git a/test/samples/apache/src-test-1.xml b/test/samples/apache/src-test-1.xml
deleted file mode 100644
index 74e6ce2..0000000
--- a/test/samples/apache/src-test-1.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!-- Used for SrcTest.java in io package -->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="srctest1">
-
- <state id="srctest1" src="src-test-2.xml">
- <transition event="src.test" target="srctest3end"/>
- <transition event="srctest1.done" target="srctest1end"/>
- </state>
-
- <state id="srctest1end" final="true"/>
-
-</scxml>
-
diff --git a/test/samples/apache/src-test-2.xml b/test/samples/apache/src-test-2.xml
deleted file mode 100644
index 16789ab..0000000
--- a/test/samples/apache/src-test-2.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!-- Used for SrcTest.java in io package -->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="srctest2">
-
- <state id="srctest2" src="src-test-3.xml">
- <transition event="srctest2.done" target="srctest2end"/>
- </state>
-
- <state id="srctest2end" final="true"/>
-
-</scxml>
-
diff --git a/test/samples/apache/src-test-3.xml b/test/samples/apache/src-test-3.xml
deleted file mode 100644
index d675687..0000000
--- a/test/samples/apache/src-test-3.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!-- Used for SrcTest.java in io package -->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="srctest3">
-
- <state id="srctest3"/>
-
- <state id="srctest3end" final="true"/>
-
-</scxml>
-
diff --git a/test/samples/apache/src-test-4.xml b/test/samples/apache/src-test-4.xml
deleted file mode 100644
index 4fe18e5..0000000
--- a/test/samples/apache/src-test-4.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!-- Used for SrcTest.java in io package -->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="srctest1">
-
- <state id="srctest1" src="bad-document-404.xml">
- <transition event="srctest1.done" target="srctest1end"/>
- </state>
-
- <state id="srctest1end" final="true"/>
-
-</scxml>
-
diff --git a/test/samples/apache/src-test-5.xml b/test/samples/apache/src-test-5.xml
deleted file mode 100644
index a36e112..0000000
--- a/test/samples/apache/src-test-5.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!-- Used for SrcTest.java in io package -->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="srctest1">
-
- <state id="srctest1" src="src-test-3.xml#badstateid404">
- <transition event="srctest1.done" target="srctest1end"/>
- </state>
-
- <state id="srctest1end" final="true"/>
-
-</scxml>
-
diff --git a/test/samples/apache/state-01.xml b/test/samples/apache/state-01.xml
deleted file mode 100644
index 22a9018..0000000
--- a/test/samples/apache/state-01.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" initial="s1">
-
- <state id="s1" initial="s11">
- <final id="s11"/>
- </state>
-
-</scxml>
diff --git a/test/samples/apache/stateless-01.xml b/test/samples/apache/stateless-01.xml
deleted file mode 100644
index 1229b8f..0000000
--- a/test/samples/apache/stateless-01.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="main">
-
- <state id="main">
-
- <initial>
- <transition target="ten"/>
- </initial>
-
- <onentry>
- <var name="instancevar" expr="${20}" />
- </onentry>
-
- <state id="ten">
- <transition event="ten.done" cond="${instancevar eq 20}"
- target="twenty" />
- <onexit>
- <assign name="instancevar" expr="${30}" />
- </onexit>
- </state>
-
- <state id="twenty">
- <transition event="twenty.done" cond="${instancevar eq 30}"
- target="thirty" />
- </state>
-
- <state id="thirty" final="true" />
-
- </state>
-
-</scxml>
-
diff --git a/test/samples/apache/stateless-parallel-01.xml b/test/samples/apache/stateless-parallel-01.xml
deleted file mode 100644
index f2e9017..0000000
--- a/test/samples/apache/stateless-parallel-01.xml
+++ /dev/null
@@ -1,54 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="main">
-
- <state id="main">
-
- <parallel id="main.parallel">
-
- <state id="state1">
- <initial>
- <transition target="state1.init"/>
- </initial>
- <state id="state1.init">
- <transition event="state1.event" target="state1.final" />
- </state>
- <state id="state1.final" final="true" />
- </state>
-
- <state id="state2">
- <initial>
- <transition target="state2.init"/>
- </initial>
- <state id="state2.init">
- <transition event="state2.event" target="state2.final" />
- </state>
- <state id="state2.final" final="true" />
- </state>
-
- </parallel>
-
- <transition event="main.parallel.done" target="next" />
-
- </state>
-
- <state id="next" final="true"/>
-
-</scxml>
diff --git a/test/samples/apache/static-method.xml b/test/samples/apache/static-method.xml
deleted file mode 100644
index 7ad034a..0000000
--- a/test/samples/apache/static-method.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!-- Example of invoking a static method when using JEXL, for example:
- (public static) java.lang.System#currentTimeMillis()
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="static">
-
- <state id="static" final="true">
- <onentry>
- <log expr="'Current time millis: ' + System.currentTimeMillis()" />
- </onentry>
- </state>
-
-</scxml>
-
diff --git a/test/samples/apache/stopwatch.xml b/test/samples/apache/stopwatch.xml
deleted file mode 100644
index 57572a1..0000000
--- a/test/samples/apache/stopwatch.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="reset">
-
- <state id="reset">
- <transition event="watch.start" target="running"/>
- </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">
- <transition event="watch.reset" target="reset"/>
- </state>
-
-</scxml>
-
diff --git a/test/samples/apache/tie-breaker-01.xml b/test/samples/apache/tie-breaker-01.xml
deleted file mode 100644
index 7cff894..0000000
--- a/test/samples/apache/tie-breaker-01.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!--
- Used by TieBreakerTest
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="ten">
- <state id="ten">
- <!-- twenty should win, document order -->
- <transition event="ten.done" target="twenty" />
- <transition event="ten.done" target="thirty" />
- </state>
-
- <state id="twenty" final="true" />
-
- <state id="thirty" final="true" />
-
-</scxml>
-
diff --git a/test/samples/apache/tie-breaker-02.xml b/test/samples/apache/tie-breaker-02.xml
deleted file mode 100644
index 62118dd..0000000
--- a/test/samples/apache/tie-breaker-02.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!--
- Used by TieBreakerTest
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="ten">
-
- <state id="ten">
- <initial>
- <transition target="eleven"/>
- </initial>
-
- <transition event="ten.done" target="twenty" />
-
- <state id="eleven">
- <!-- thirty wins since eleven trumps
- ten in the state heirarchy -->
- <transition event="ten.done" target="thirty" />
- </state>
-
- </state>
-
- <state id="twenty" final="true" />
-
- <state id="thirty" final="true" />
-
-</scxml>
-
diff --git a/test/samples/apache/tie-breaker-03.xml b/test/samples/apache/tie-breaker-03.xml
deleted file mode 100644
index d850865..0000000
--- a/test/samples/apache/tie-breaker-03.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!--
- Used by TieBreakerTest
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="ten">
-
- <state id="ten">
- <initial>
- <transition target="eleven"/>
- </initial>
-
- <transition event="ten.done" target="twenty" />
-
- <transition event="ten.done" target="thirty" />
-
- <state id="eleven">
-
- <!-- forty wins due to document order and the fact
- that since eleven trumps ten in the state
- heirarchy -->
- <transition event="ten.done" target="forty" />
-
- <transition event="ten.done" target="fifty" />
-
- </state>
-
- </state>
-
- <state id="twenty" final="true" />
-
- <state id="thirty" final="true" />
-
- <state id="forty" final="true" />
-
- <state id="fifty" final="true" />
-
-</scxml>
-
diff --git a/test/samples/apache/tie-breaker-04.xml b/test/samples/apache/tie-breaker-04.xml
deleted file mode 100644
index df87e63..0000000
--- a/test/samples/apache/tie-breaker-04.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" initialstate="s1">
-
- <state id="s1">
- <initial>
- <transition target="s11"/>
- </initial>
-
- <transition event="event_1"/>
-
- <transition event="event_2" target="s1"/>
-
- <state id="s11">
- <transition event="event_1"/>
- <transition event="event_2" target="s11"/>
- </state>
- </state>
-
- <state id="s2" final="true" />
-</scxml>
diff --git a/test/samples/apache/tie-breaker-05.xml b/test/samples/apache/tie-breaker-05.xml
deleted file mode 100644
index 1fcbd35..0000000
--- a/test/samples/apache/tie-breaker-05.xml
+++ /dev/null
@@ -1,64 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" initialstate="para">
-
-<!--
- Testing dispute resolution in regions
- {s11,s2111,s212} -event1-> {s12,s2112,s212}
--->
-
- <parallel id="para"> <!-- Outer parallel -->
-
- <state id="s1">
- <initial>
- <transition target="s11"/>
- </initial>
- <state id="s11">
- <transition event="event1" target="s12"/>
- <transition event="event1" target="s13"/>
- </state>
- <state id="s12"/>
- <state id="s13"/>
- </state>
-
- <state id="s2">
- <initial>
- <transition target="para1"/>
- </initial>
-
- <parallel id="para1"> <!-- Inner parallel -->
- <state id="s211">
- <initial>
- <transition target="s2111"/>
- </initial>
- <state id="s2111">
- <transition event="event1" target="s2112"/>
- <transition event="event1" target="s2113"/>
- </state>
- <state id="s2112"/>
- <state id="s2113"/>
- </state>
- <state id="s212"/>
- </parallel>
-
- <state id="s22"/>
- </state>
-
- </parallel>
-
-</scxml>
diff --git a/test/samples/apache/tie-breaker-06.xml b/test/samples/apache/tie-breaker-06.xml
deleted file mode 100644
index a7f26ff..0000000
--- a/test/samples/apache/tie-breaker-06.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!-- A fictitious state machine used by test cases.
- <send>s in the same executable content block -->
-<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" initialstate="main">
-
- <state id="main">
-
- <onentry>
- <event name="internal_event1"/>
- <event name="internal_event2"/>
- </onentry>
-
- <transition event="internal_event1">
- <log label="Expected"
- expr="'Transition for first event (internal_event1) followed'"/>
- </transition>
- <transition event="internal_event2">
- <log label="Unexpected"
- expr="'Transition for second event (internal_event2) followed'"/>
- </transition>
-
- </state>
-
-</scxml>
diff --git a/test/samples/apache/transitions-01-legacy.xml b/test/samples/apache/transitions-01-legacy.xml
deleted file mode 100644
index f46bc74..0000000
--- a/test/samples/apache/transitions-01-legacy.xml
+++ /dev/null
@@ -1,140 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="ten">
-
- <!-- Start with a simple state -->
- <state id="ten">
- <transition event="ten.done" target="twenty" />
- </state>
-
- <!-- Follow up with a composite state -->
- <state id="twenty">
-
- <initial>
- <transition target="twenty_one"/>
- </initial>
-
- <onentry>
- <log expr="'In twenty'" />
- </onentry>
-
- <state id="twenty_one">
- <transition event="twenty_one.done" target="twenty_two"/>
- </state>
-
- <state id="twenty_two">
- <transition event="twenty_two.done" target="thirty"/>
- </state>
-
- </state>
-
- <!-- Finally, try an orthogonal state -->
- <state id="thirty">
-
- <parallel id="thirties_parallel">
-
- <!-- The first (of three) regions in thirties_parallel -->
- <state id="thirty_one">
-
- <initial>
- <transition target="thirty_one_child_one"/>
- </initial>
- <onentry>
- <log expr="'Entering thirty_one'" />
- </onentry>
- <transition event="thirty_one.done" target="forty"/>
-
- <state id="thirty_one_child_one">
- <onexit>
- <log expr="'Exiting thirty_one_child_one'" />
- </onexit>
- <transition event="thirty_one_child_one.done"
- target="thirty_one_child_two"/>
- </state>
-
- <state id="thirty_one_child_two">
- <onexit>
- <log expr="'Exiting thirty_one_child_two'" />
- </onexit>
- </state>
-
- </state>
-
- <!-- The second (of three) regions in thirties_parallel -->
- <state id="thirty_two">
-
- <initial>
- <transition target="thirty_two_child_one"/>
- </initial>
- <onentry>
- <log expr="'Entering thirty_two'" />
- </onentry>
-
- <state id="thirty_two_child_one">
- <onexit>
- <log expr="'Exiting thirty_two_child_one'" />
- </onexit>
- <transition event="thirty_two_child_one.done"
- target="thirty_two_child_two"/>
- </state>
-
- <state id="thirty_two_child_two">
- <onexit>
- <log expr="'Exiting thirty_two_child_two'" />
- </onexit>
- </state>
-
- </state>
-
- <!-- The third (of three) regions in thirties_parallel -->
- <state id="thirty_three">
-
- <initial>
- <transition target="thirty_three_child_one"/>
- </initial>
- <onentry>
- <log expr="'Entering thirty_three'" />
- </onentry>
-
- <state id="thirty_three_child_one">
- <onexit>
- <log expr="'Exiting thirty_three_child_one'" />
- </onexit>
- <transition event="thirty_three_child_one.done"
- target="thirty_three_child_two"/>
- </state>
-
- <state id="thirty_three_child_two">
- <onexit>
- <log expr="'Exiting thirty_three_child_two'" />
- </onexit>
- </state>
-
- </state>
-
- </parallel>
-
- </state>
-
- <!-- Declare victory -->
- <state id="forty" final="true" />
-
-</scxml>
-
diff --git a/test/samples/apache/transitions-01.xml b/test/samples/apache/transitions-01.xml
deleted file mode 100644
index ee5133f..0000000
--- a/test/samples/apache/transitions-01.xml
+++ /dev/null
@@ -1,136 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml
- version="1.0"
- initial="ten">
-
- <!-- Start with a simple state -->
- <state id="ten">
- <transition event="ten.done" target="twenty" />
- </state>
-
- <!-- Follow up with a composite state -->
- <state id="twenty">
-
- <initial>
- <transition target="twenty_one"/>
- </initial>
-
- <onentry>
- <log expr="'In twenty'" />
- </onentry>
-
- <state id="twenty_one">
- <transition event="twenty_one.done" target="twenty_two"/>
- </state>
-
- <state id="twenty_two">
- <transition event="twenty_two.done" target="thirty"/>
- </state>
-
- </state>
-
- <!-- Finally, try an orthogonal state -->
- <parallel id="thirty">
-
- <!-- The first (of three) regions in thirties_parallel -->
- <state id="thirty_one">
-
- <initial>
- <transition target="thirty_one_child_one"/>
- </initial>
- <onentry>
- <log expr="'Entering thirty_one'" />
- </onentry>
- <transition event="thirty_one.done" target="forty"/>
-
- <state id="thirty_one_child_one">
- <onexit>
- <log expr="'Exiting thirty_one_child_one'" />
- </onexit>
- <transition event="thirty_one_child_one.done"
- target="thirty_one_child_two"/>
- </state>
-
- <state id="thirty_one_child_two">
- <onexit>
- <log expr="'Exiting thirty_one_child_two'" />
- </onexit>
- </state>
-
- </state>
-
- <!-- The second (of three) regions in thirties_parallel -->
- <state id="thirty_two">
-
- <initial>
- <transition target="thirty_two_child_one"/>
- </initial>
- <onentry>
- <log expr="'Entering thirty_two'" />
- </onentry>
-
- <state id="thirty_two_child_one">
- <onexit>
- <log expr="'Exiting thirty_two_child_one'" />
- </onexit>
- <transition event="thirty_two_child_one.done"
- target="thirty_two_child_two"/>
- </state>
-
- <state id="thirty_two_child_two">
- <onexit>
- <log expr="'Exiting thirty_two_child_two'" />
- </onexit>
- </state>
-
- </state>
-
- <!-- The third (of three) regions in thirties_parallel -->
- <state id="thirty_three">
-
- <initial>
- <transition target="thirty_three_child_one"/>
- </initial>
- <onentry>
- <log expr="'Entering thirty_three'" />
- </onentry>
-
- <state id="thirty_three_child_one">
- <onexit>
- <log expr="'Exiting thirty_three_child_one'" />
- </onexit>
- <transition event="thirty_three_child_one.done"
- target="thirty_three_child_two"/>
- </state>
-
- <state id="thirty_three_child_two">
- <onexit>
- <log expr="'Exiting thirty_three_child_two'" />
- </onexit>
- </state>
-
- </state>
-
- </parallel>
-
- <!-- Declare victory -->
- <state id="forty" final="true" />
-
-</scxml>
-
diff --git a/test/samples/apache/transitions-02.xml b/test/samples/apache/transitions-02.xml
deleted file mode 100644
index 7c1dcf5..0000000
--- a/test/samples/apache/transitions-02.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- xmlns:cs="http://commons.apache.org/scxml"
- version="1.0"
- initialstate="ten">
-
- <state id="ten">
-
- <onentry>
- <cs:var name="foo" expr="1" />
- <log expr="'Foo is:' + foo" />
- </onentry>
-
- <!-- stay transition -->
- <transition event="ten.stay">
- <assign name="foo" expr="foo + 1" />
- <log expr="'Foo is:' + foo" />
- </transition>
-
- <!-- self transition -->
- <transition event="ten.self" target="ten">
- <assign name="foo" expr="foo + 1" />
- <log expr="'Foo is:' + foo" />
- </transition>
-
- <!-- "regular" transition -->
- <transition event="ten.done" target="twenty">
- <assign name="foo" expr="foo + 1" />
- <log expr="'Foo is:' + foo" />
- </transition>
-
- </state>
-
- <state id="twenty" final="true" />
-
-</scxml>
-
diff --git a/test/samples/apache/transitions-03.xml b/test/samples/apache/transitions-03.xml
deleted file mode 100644
index 303d673..0000000
--- a/test/samples/apache/transitions-03.xml
+++ /dev/null
@@ -1,88 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="ten">
-
- <state id="ten">
- <transition event="ten.done"
- target="twenty_one_2 twenty_two_2 twenty_three_2" />
- </state>
-
- <parallel id="twenty">
-
- <state id="twenty_one">
-
- <initial>
- <transition target="twenty_one_1"/>
- </initial>
-
- <state id="twenty_one_1">
- <transition event="foo" target="twenty_one_2"/>
- </state>
-
- <state id="twenty_one_2">
- <onexit>
- <log expr="'Exiting twenty_two_2'" />
- </onexit>
- </state>
-
- </state>
-
- <state id="twenty_two">
-
- <initial>
- <transition target="twenty_two_1"/>
- </initial>
-
- <state id="twenty_two_1">
- <transition event="foo" target="twenty_two_2"/>
- </state>
-
- <state id="twenty_two_2">
- <onexit>
- <log expr="'Exiting twenty_two_2'" />
- </onexit>
- </state>
-
- </state>
-
- <state id="twenty_three">
-
- <initial>
- <transition target="twenty_three_1"/>
- </initial>
-
- <state id="twenty_three_1">
- <transition event="foo" target="twenty_three_2"/>
- </state>
-
- <state id="twenty_three_2">
- <onexit>
- <log expr="'Exiting twenty_three_2'" />
- </onexit>
- </state>
-
- </state>
-
- </parallel>
-
- <state id="thirty" final="true" />
-
-</scxml>
-
diff --git a/test/samples/apache/transitions-04.xml b/test/samples/apache/transitions-04.xml
deleted file mode 100644
index 547b702..0000000
--- a/test/samples/apache/transitions-04.xml
+++ /dev/null
@@ -1,93 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<!--
- Needs SCXMLParser
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="ten">
-
- <state id="ten">
- <transition event="ten.done"
- target="twenty" />
- </state>
-
- <parallel id="twenty">
-
- <state id="twenty_one">
-
- <initial>
- <transition target="twenty_one_1"/>
- </initial>
-
- <transition event="bar" target="thirty"/>
-
- <state id="twenty_one_1">
- <transition event="foo" target="twenty_one_2"/>
- </state>
-
- <state id="twenty_one_2">
- <onexit>
- <log expr="'Exiting twenty_two_2'" />
- </onexit>
- </state>
-
- </state>
-
- <state id="twenty_two">
-
- <initial>
- <transition target="twenty_two_1"/>
- </initial>
-
- <state id="twenty_two_1">
- <transition event="foo" target="twenty_two_2"/>
- </state>
-
- <state id="twenty_two_2">
- <onexit>
- <log expr="'Exiting twenty_two_2'" />
- </onexit>
- </state>
-
- </state>
-
- <state id="twenty_three">
-
- <initial>
- <transition target="twenty_three_1"/>
- </initial>
-
- <state id="twenty_three_1">
- <transition event="foo" target="twenty_three_2"/>
- </state>
-
- <state id="twenty_three_2">
- <onexit>
- <log expr="'Exiting twenty_three_2'" />
- </onexit>
- </state>
-
- </state>
-
- </parallel>
-
- <state id="thirty" final="true" />
-
-</scxml>
-
diff --git a/test/samples/apache/transitions-05.xml b/test/samples/apache/transitions-05.xml
deleted file mode 100644
index 7400359..0000000
--- a/test/samples/apache/transitions-05.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" initial="init">
- <state id="init">
- <transition event="start" target="onetwo" />
- </state>
- <parallel id="onetwo">
- <transition event="onetwo_three" target="three" />
- <state id="one">
- </state>
- <state id="two">
- <transition event="two_four" target="four" />
- </state>
- </parallel>
- <state id="three">
- <transition event="three_one" target="one" />
- <transition event="three_four" target="four" />
- </state>
- <state id="four">
- <transition event="four_onetwo" target="onetwo" />
- <transition event="four_three" target="three" />
- </state>
-</scxml>
diff --git a/test/samples/apache/travel-dialog.xml b/test/samples/apache/travel-dialog.xml
deleted file mode 100644
index 08ebc99..0000000
--- a/test/samples/apache/travel-dialog.xml
+++ /dev/null
@@ -1,54 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/01/SCXML"
- version="1.0"
- initialstate="tripType">
-
- <state id="tripType">
- <transition event="tripType.done">
- <target next="departureCity"/>
- </transition>
- </state>
-
- <state id="departureCity">
- <transition event="departureCity.done">
- <target next="arrivalCity"/>
- </transition>
- </state>
-
- <state id="arrivalCity">
- <transition event="arrivalCity.done">
- <target next="departureDate"/>
- </transition>
- </state>
-
- <state id="departureDate">
- <transition event="departureDate.done"
- cond="${tripType == 'round'}">
- <target next="arrivalDate"/>
- </transition>
- <transition event="departureDate.done"
- cond="${tripType == '1way'}">
- <exit />
- </transition>
- </state>
-
- <state id="arrivalDate"
- final="true" />
-
-</scxml>
diff --git a/test/samples/apache/wildcard-01.xml b/test/samples/apache/wildcard-01.xml
deleted file mode 100644
index 9f7ddc3..0000000
--- a/test/samples/apache/wildcard-01.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- xmlns:cs="http://commons.apache.org/scxml"
- version="1.0"
- initialstate="state1">
- <state id="state1">
- <onentry>
- <cs:var name="switch" expr="4" />
- </onentry>
- <!-- We'll trigger 'foo.bar.baz' event,
- and therefore, must end up in state4 -->
- <transition event="*" cond="switch eq 2" target="state2"/>
- <transition event="foo.*" cond="switch eq 3" target="state3"/>
- <transition event="foo.bar.*" cond="switch eq 4" target="state4"/>
- </state>
- <state id="state2" final="true"/>
- <state id="state3" final="true"/>
- <state id="state4" final="true"/>
-</scxml>
diff --git a/test/samples/apache/wildcard-02.xml b/test/samples/apache/wildcard-02.xml
deleted file mode 100644
index d039f69..0000000
--- a/test/samples/apache/wildcard-02.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="state1">
-
- <state id="state1">
- <onentry>
- <event name="success.start"/>
- </onentry>
- <transition event="success.*" target="state2"/>
- </state>
-
- <state id="state2"/>
-
-</scxml>
-
diff --git a/test/samples/apache/wizard-01.xml b/test/samples/apache/wizard-01.xml
deleted file mode 100644
index 87492a6..0000000
--- a/test/samples/apache/wizard-01.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="state1">
- <state id="state1">
- <transition event="event2" target="state2"/>
- <transition event="event3" target="state3"/>
- <transition event="event4" target="state4"/>
- </state>
- <state id="state2">
- <transition event="event1" target="state1"/>
- <transition event="event3" target="state3"/>
- <transition event="event4" target="state4"/>
- </state>
- <state id="state3">
- <transition event="event1" target="state1"/>
- <transition event="event2" target="state2"/>
- <transition event="event4" target="state4"/>
- </state>
- <state id="state4">
- <transition event="event1" target="state1"/>
- <transition event="event2" target="state2"/>
- <transition event="event3" target="state3"/>
- </state>
-</scxml>
diff --git a/test/samples/apache/wizard-02.xml b/test/samples/apache/wizard-02.xml
deleted file mode 100644
index 924b83f..0000000
--- a/test/samples/apache/wizard-02.xml
+++ /dev/null
@@ -1,65 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
--->
-<scxml xmlns="http://www.w3.org/2005/07/scxml"
- version="1.0"
- initialstate="state1">
- <state id="state1">
- <onentry>
- <!-- Send without a type causes the
- default to be chosen as "scxml".
- This will cause the first transition
- to state2 to be immediately followed. -->
- <send event="'event2'" />
- </onentry>
- <transition event="event2" target="state2"/>
- <transition event="event3" target="state3"/>
- <transition event="event4" target="state4"/>
- </state>
- <state id="state2">
- <onentry>
- <var name="aValue" expr="2"/>
- <!-- Send with a non-empty (and not "scxml")
- type causes the callback on the
- EventDispatcher implementation. See
- testWizard02Sample() in WizardsTest
- (org.apache.commons.scxml test package) -->
- <send namelist="aValue" type="'foo'" />
- </onentry>
- <transition event="event1" target="state1"/>
- <transition event="event3" target="state3"/>
- <transition event="event4" target="state4"/>
- </state>
- <state id="state3">
- <onentry>
- <var name="aValue" expr="3"/>
- <send namelist="aValue" type="'foo'" />
- </onentry>
- <transition event="event1" target="state1"/>
- <transition event="event2" target="state2"/>
- <transition event="event4" target="state4"/>
- </state>
- <state id="state4">
- <onentry>
- <var name="aValue" expr="4"/>
- <send namelist="aValue" type="'foo'" />
- </onentry>
- <transition event="event1" target="state1"/>
- <transition event="event2" target="state2"/>
- <transition event="event3" target="state3"/>
- </state>
-</scxml> \ No newline at end of file