diff --git a/bpmn/test-cases/cycle-start-timer/cycle-start-timer.bpmn b/bak/cycle-start-timer/cycle-start-timer.bpmn
similarity index 100%
rename from bpmn/test-cases/cycle-start-timer/cycle-start-timer.bpmn
rename to bak/cycle-start-timer/cycle-start-timer.bpmn
diff --git a/bpmn/test-cases/madhu-timer/getname.json b/bak/madhu-timer/getname.json
similarity index 100%
rename from bpmn/test-cases/madhu-timer/getname.json
rename to bak/madhu-timer/getname.json
diff --git a/bpmn/test-cases/madhu-timer/madhutimertask.bpmn b/bak/madhu-timer/madhutimertask.bpmn
similarity index 100%
rename from bpmn/test-cases/madhu-timer/madhutimertask.bpmn
rename to bak/madhu-timer/madhutimertask.bpmn
diff --git a/bpmn/test-cases/simple-dmn/simple_dmn.dmn b/bak/simple-dmn/simple_dmn.dmn
similarity index 100%
rename from bpmn/test-cases/simple-dmn/simple_dmn.dmn
rename to bak/simple-dmn/simple_dmn.dmn
diff --git a/bpmn/test-cases/start-timer1/start-timer1.bpmn b/bak/start-timer1/start-timer1.bpmn
similarity index 100%
rename from bpmn/test-cases/start-timer1/start-timer1.bpmn
rename to bak/start-timer1/start-timer1.bpmn
diff --git a/bpmn/test-cases/terminate/errors/err_activity.bpmn b/bak/terminate/errors/err_activity.bpmn
similarity index 100%
rename from bpmn/test-cases/terminate/errors/err_activity.bpmn
rename to bak/terminate/errors/err_activity.bpmn
diff --git a/bpmn/test-cases/terminate/errors/err_subprocess.bpmn b/bak/terminate/errors/err_subprocess.bpmn
similarity index 100%
rename from bpmn/test-cases/terminate/errors/err_subprocess.bpmn
rename to bak/terminate/errors/err_subprocess.bpmn
diff --git a/bpmn/test-cases/terminate/errors/errors.bpmn b/bak/terminate/errors/errors.bpmn
similarity index 100%
rename from bpmn/test-cases/terminate/errors/errors.bpmn
rename to bak/terminate/errors/errors.bpmn
diff --git a/bpmn/test-cases/terminate/terminate/terminate.bpmn b/bak/terminate/terminate/terminate.bpmn
similarity index 100%
rename from bpmn/test-cases/terminate/terminate/terminate.bpmn
rename to bak/terminate/terminate/terminate.bpmn
diff --git a/bpmn/test-cases/terminate/terminate/terminate_wrapper.bpmn b/bak/terminate/terminate/terminate_wrapper.bpmn
similarity index 100%
rename from bpmn/test-cases/terminate/terminate/terminate_wrapper.bpmn
rename to bak/terminate/terminate/terminate_wrapper.bpmn
diff --git a/bpmn/test-cases/terminate/terminate/transaction.bpmn b/bak/terminate/terminate/transaction.bpmn
similarity index 100%
rename from bpmn/test-cases/terminate/terminate/transaction.bpmn
rename to bak/terminate/terminate/transaction.bpmn
diff --git a/bpmn/test-cases/countries-and-cities/country_cities.bpmn b/bpmn/test-cases/countries-and-cities/country_cities.bpmn
deleted file mode 100644
index 3320c7d..0000000
--- a/bpmn/test-cases/countries-and-cities/country_cities.bpmn
+++ /dev/null
@@ -1,210 +0,0 @@
-
-
-
-
- Flow_1jxxr3o
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Flow_1jxxr3o
- Flow_0pm7q65
-
-
- Flow_0w7qf95
-
-
-
-
-
-
-
- {
- "countries_list": {
- "data": [
- {
- "dialCode": "880",
- "name": "Bangladesh",
- "unicodeFlag": "🇧🇩"
- },
- {
- "dialCode": "32",
- "name": "Belgium",
- "unicodeFlag": "🇧🇪"
- },
- {
- "dialCode": "226",
- "name": "Burkina Faso",
- "unicodeFlag": "🇧🇫"
- }
- ],
- "error": false,
- "msg": "countries details: 'unicodeFlag,dialCode' have been retrieved"
- }
-}
- {
- "countries_list": {
- "data": [
- {
- "dialCode": "880",
- "name": "Bangladesh",
- "unicodeFlag": "🇧🇩"
- },
- {
- "dialCode": "32",
- "name": "Belgium",
- "unicodeFlag": "🇧🇪"
- },
- {
- "dialCode": "226",
- "name": "Burkina Faso",
- "unicodeFlag": "🇧🇫"
- }
- ],
- "error": false,
- "msg": "countries details: 'unicodeFlag,dialCode' have been retrieved"
- },
- "countries": [
- "Bangladesh",
- "Belgium",
- "Burkina Faso"
- ]
-}
-
-
- {
- "countries_list": {
- "error": true,
- "msg": "you must specify data to fetch e.g ?returns=unicodeFlag,currency,image"
- }
-}
- {
- "countries_list": {
- "error": true,
- "msg": "you must specify data to fetch e.g ?returns=unicodeFlag,currency,image"
- },
- "countries": []
-}
-
-
-
- Flow_0pm7q65
- Flow_1jkcapv
- # if the api returns an error we return an empty list
-countries_data = countries_list.get("data", [])
-number_of_countries = len(countries_data)
-countries = sorted([d["name"] for d in countries_data])
-del countries_data
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Flow_1jkcapv
- Flow_16ese23
-
-
-
-
-
-
- {
- "cities_in_a_country": {
- "data": [
- "Aba",
- "Abakaliki",
- "Abeokuta"
- ]
- }
-}
- {
- "cities_in_a_country": {
- "data": [
- "Aba",
- "Abakaliki",
- "Abeokuta"
- ]
- },
- "cities": [
- "Aba",
- "Abakaliki",
- "Abeokuta"
- ]
-}
-
-
- {}
- {}
-
-
-
- Flow_16ese23
- Flow_0w7qf95
- # if the api returns an error we return an empty list
-cities = sorted(cities_in_a_country.get("data", []))
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/bpmn/test.bpmn b/bpmn/test.bpmn
deleted file mode 100644
index b3b0f91..0000000
--- a/bpmn/test.bpmn
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
-
- Flow1_1768231245864
-
-
- Flow2_1768231245864
-
-
-
-
- Flow1_1768231245864
- Flow2_1768231245864
- x = 11
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/bpmn/test-cases/simple-call-activity/simple_call_activity.bpmn b/examples/call_activity.bpmn
similarity index 100%
rename from bpmn/test-cases/simple-call-activity/simple_call_activity.bpmn
rename to examples/call_activity.bpmn
diff --git a/bpmn/test-cases/call-activity-with-manual-tasks/call_manual_tasks.bpmn b/examples/call_manual_tasks.bpmn
similarity index 100%
rename from bpmn/test-cases/call-activity-with-manual-tasks/call_manual_tasks.bpmn
rename to examples/call_manual_tasks.bpmn
diff --git a/examples/dict_test.bpmn b/examples/dict_test.bpmn
index aa97e56..c14d44d 100644
--- a/examples/dict_test.bpmn
+++ b/examples/dict_test.bpmn
@@ -54,7 +54,7 @@ spiff_testResult = test()
Flow_0k87bc6
-
+
{{ spiff_testResult["output"] }}
@@ -95,6 +95,7 @@ spiff_testResult = test()
+
diff --git a/bpmn/test-cases/simple-gateway/simple-gateway.bpmn b/examples/gateway.bpmn
similarity index 99%
rename from bpmn/test-cases/simple-gateway/simple-gateway.bpmn
rename to examples/gateway.bpmn
index 25af0fb..94d9f2b 100644
--- a/bpmn/test-cases/simple-gateway/simple-gateway.bpmn
+++ b/examples/gateway.bpmn
@@ -28,7 +28,6 @@
This should not have run.
-
Flow_188lqer
Flow_1oml9os
@@ -47,6 +46,9 @@
+
+
+
@@ -65,9 +67,6 @@
-
-
-
diff --git a/examples/gateway_test.bpmn b/examples/gateway_test.bpmn
new file mode 100644
index 0000000..8462ce4
--- /dev/null
+++ b/examples/gateway_test.bpmn
@@ -0,0 +1,127 @@
+
+
+
+
+ Flow1_1770640981219
+
+
+ Flow_0q230p6
+
+
+
+
+ Flow1_1770640981219
+ Flow2_1770640981219
+
+
+
+ Flow_1u1o29t
+ Flow_1dca24a
+ Flow_183z691
+
+
+ spiff_testResult["wasSuccessful"]
+
+
+
+ Flow_1dca24a
+ Flow_1v09rzb
+ Flow_0q230p6
+
+
+
+
+
+ {{ spiff_testResult["output"] }}
+
+ Flow_183z691
+ Flow_1v09rzb
+
+
+ Flow2_1770640981219
+ Flow_1u1o29t
+ def runTests(tests):
+ import io
+ import unittest
+
+ suite = unittest.TestSuite()
+ suite.addTests(tests)
+ stream = io.StringIO()
+ result = unittest.TextTestRunner(stream=stream).run(suite)
+
+ return {
+ "testsRun": result.testsRun,
+ "wasSuccessful": result.wasSuccessful(),
+ "output": stream.getvalue(),
+ }
+
+def test():
+ import unittest
+
+ class TestTaskData(unittest.TestCase):
+ def runTest(self):
+ self.assertEqual(happy_path, 1)
+
+ return runTests([TestTaskData()])
+
+spiff_testResult = test()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/bpmn/test-cases/inclusive-gateway/inclusive-gateway.bpmn b/examples/inclusive_gateway.bpmn
similarity index 100%
rename from bpmn/test-cases/inclusive-gateway/inclusive-gateway.bpmn
rename to examples/inclusive_gateway.bpmn
diff --git a/bpmn/test-cases/multiple-call-activities/multiple_call_activities.bpmn b/examples/multiple_call_activities.bpmn
similarity index 97%
rename from bpmn/test-cases/multiple-call-activities/multiple_call_activities.bpmn
rename to examples/multiple_call_activities.bpmn
index da1b84c..718a67d 100644
--- a/bpmn/test-cases/multiple-call-activities/multiple_call_activities.bpmn
+++ b/examples/multiple_call_activities.bpmn
@@ -5,7 +5,7 @@
Flow_0b6y930
-
+
Flow_0b6y930
Flow_0eaeoas
diff --git a/bpmn/test-cases/nested-call-activities/nested_call_activity.bpmn b/examples/nested_call_activity.bpmn
similarity index 100%
rename from bpmn/test-cases/nested-call-activities/nested_call_activity.bpmn
rename to examples/nested_call_activity.bpmn
diff --git a/bpmn/test-cases/no-tasks/no-tasks.bpmn b/examples/no_tasks.bpmn
similarity index 100%
rename from bpmn/test-cases/no-tasks/no-tasks.bpmn
rename to examples/no_tasks.bpmn
diff --git a/bpmn/test-cases/simple-subprocess/simple_subprocess.bpmn b/examples/simple_subprocess.bpmn
similarity index 100%
rename from bpmn/test-cases/simple-subprocess/simple_subprocess.bpmn
rename to examples/simple_subprocess.bpmn
diff --git a/bpmn/test-cases/single-task/single_task.bpmn b/examples/single_task.bpmn
similarity index 100%
rename from bpmn/test-cases/single-task/single_task.bpmn
rename to examples/single_task.bpmn
diff --git a/examples/ut-exampledata.json b/examples/user_task-exampledata.json
similarity index 100%
rename from examples/ut-exampledata.json
rename to examples/user_task-exampledata.json
diff --git a/examples/ut-schema.json b/examples/user_task-schema.json
similarity index 100%
rename from examples/ut-schema.json
rename to examples/user_task-schema.json
diff --git a/examples/ut-uischema.json b/examples/user_task-uischema.json
similarity index 100%
rename from examples/ut-uischema.json
rename to examples/user_task-uischema.json
diff --git a/examples/ut.bpmn b/examples/user_task.bpmn
similarity index 100%
rename from examples/ut.bpmn
rename to examples/user_task.bpmn
diff --git a/examples/ut_test.bpmn b/examples/user_task_test.bpmn
similarity index 100%
rename from examples/ut_test.bpmn
rename to examples/user_task_test.bpmn