diff --git a/Dockerfile b/Dockerfile
deleted file mode 100644
index b5c847d..0000000
--- a/Dockerfile
+++ /dev/null
@@ -1,11 +0,0 @@
-FROM python:alpine AS build
-
-WORKDIR /app
-
-RUN python -m pip install --upgrade pip
-
-COPY requirements.txt .
-
-RUN pip install --no-cache-dir -r requirements.txt
-
-CMD ["python", "scripts/gen.py"]
diff --git a/Makefile b/Makefile
deleted file mode 100644
index ef38873..0000000
--- a/Makefile
+++ /dev/null
@@ -1,46 +0,0 @@
-
-MY_USER := $(shell id -u)
-MY_GROUP := $(shell id -g)
-ME := $(MY_USER):$(MY_GROUP)
-
-SPIFF_ARENA_DIR := ../../sartography/spiff-arena
-BPMN_SPEC_DIR := $(shell pwd)/bpmn
-
-DOCKER_IMG := process-models
-IN_DEV := docker run -it -v .:/app $(DOCKER_IMG)
-
-all: img-start
-
-img:
- docker build -t $(DOCKER_IMG) .
-
-start:
- $(IN_DEV) python scripts/gen.py
-
-img-start: img start
- @/bin/true
-
-sh:
- $(IN_DEV) /bin/sh
-
-take-ownership:
- sudo chown -R $(ME) .
-
-check-ownership:
- find . ! -user $(MY_USER) ! -group $(MY_GROUP)
-
-run-editor: stop-editor
- cd $(SPIFF_ARENA_DIR) && \
- SPIFF_EDITOR_URL_PATH=/process-groups/test-cases \
- ./bin/run_editor $(BPMN_SPEC_DIR)
-
-stop-editor:
- cd $(SPIFF_ARENA_DIR) && ./bin/stop_editor
-
-update-editor:
- cd $(SPIFF_ARENA_DIR) && ./bin/update_editor
-
-.PHONY: img start img-start \
- sh \
- take-ownership check-ownership \
- run-editor stop-editor update-editor
diff --git a/bpmn/process_group.json b/bpmn/process_group.json
deleted file mode 100644
index fca08c5..0000000
--- a/bpmn/process_group.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "admin": false,
- "description": "Test cases used in various projects",
- "display_name": "Test Cases",
- "display_order": 0,
- "parent_groups": null,
- "process_groups": [],
- "process_models": []
-}
\ No newline at end of file
diff --git a/bpmn/test-cases/call-activity-with-manual-tasks/process_model.json b/bpmn/test-cases/call-activity-with-manual-tasks/process_model.json
deleted file mode 100644
index 9b3387a..0000000
--- a/bpmn/test-cases/call-activity-with-manual-tasks/process_model.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "description": "",
- "display_name": "call activity with manual tasks",
- "display_order": 0,
- "exception_notification_addresses": [],
- "fault_or_suspend_on_exception": "fault",
- "files": [],
- "metadata_extraction_paths": null,
- "primary_file_name": "call_manual_tasks.bpmn",
- "primary_process_id": "Process_048urbd"
-}
\ No newline at end of file
diff --git a/bpmn/test-cases/countries-and-cities/process_model.json b/bpmn/test-cases/countries-and-cities/process_model.json
deleted file mode 100644
index 215d6d6..0000000
--- a/bpmn/test-cases/countries-and-cities/process_model.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "description": "",
- "display_name": "Countries and Cities",
- "display_order": 0,
- "exception_notification_addresses": [],
- "fault_or_suspend_on_exception": "fault",
- "files": [],
- "metadata_extraction_paths": null,
- "primary_file_name": "country_cities.bpmn",
- "primary_process_id": "Process_sypm122"
-}
\ No newline at end of file
diff --git a/bpmn/test-cases/cycle-start-timer/process_model.json b/bpmn/test-cases/cycle-start-timer/process_model.json
deleted file mode 100644
index 08958e0..0000000
--- a/bpmn/test-cases/cycle-start-timer/process_model.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "description": "",
- "display_name": "Cycle start timer",
- "display_order": 0,
- "exception_notification_addresses": [],
- "fault_or_suspend_on_exception": "fault",
- "files": [],
- "metadata_extraction_paths": null,
- "primary_file_name": "cycle-start-timer.bpmn",
- "primary_process_id": "Process_fwplcm1"
-}
\ No newline at end of file
diff --git a/bpmn/test-cases/dict-tests/process_model.json b/bpmn/test-cases/dict-tests/process_model.json
deleted file mode 100644
index 1906efd..0000000
--- a/bpmn/test-cases/dict-tests/process_model.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "description": "",
- "display_name": "Dict Tests",
- "exception_notification_addresses": [],
- "fault_or_suspend_on_exception": "fault",
- "metadata_extraction_paths": null,
- "primary_file_name": "dict-tests.bpmn",
- "primary_process_id": "dict_tests"
-}
\ No newline at end of file
diff --git a/bpmn/test-cases/http-v2-connector-test/process_model.json b/bpmn/test-cases/http-v2-connector-test/process_model.json
deleted file mode 100644
index a7986e1..0000000
--- a/bpmn/test-cases/http-v2-connector-test/process_model.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "description": "",
- "display_name": "http v2 connector test",
- "display_order": 0,
- "exception_notification_addresses": [],
- "fault_or_suspend_on_exception": "fault",
- "files": [],
- "metadata_extraction_paths": null,
- "primary_file_name": "httpv2.bpmn",
- "primary_process_id": "coin-gecko_simple-price"
-}
\ No newline at end of file
diff --git a/bpmn/test-cases/inclusive-gateway/process_model.json b/bpmn/test-cases/inclusive-gateway/process_model.json
deleted file mode 100644
index 718705b..0000000
--- a/bpmn/test-cases/inclusive-gateway/process_model.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "description": "",
- "display_name": "Inclusive Gateway",
- "exception_notification_addresses": [],
- "fault_or_suspend_on_exception": "fault",
- "metadata_extraction_paths": null,
- "primary_file_name": "inclusive-gateway.bpmn",
- "primary_process_id": "Process_ynixgwm"
-}
\ No newline at end of file
diff --git a/bpmn/test-cases/madhu-timer/process_model.json b/bpmn/test-cases/madhu-timer/process_model.json
deleted file mode 100644
index 96ddce4..0000000
--- a/bpmn/test-cases/madhu-timer/process_model.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "description": "",
- "display_name": "madhu timer",
- "display_order": 0,
- "exception_notification_addresses": [],
- "fault_or_suspend_on_exception": "fault",
- "files": [],
- "metadata_extraction_paths": null,
- "primary_file_name": "madhutimertask.bpmn",
- "primary_process_id": "Process_w13g1wd"
-}
\ No newline at end of file
diff --git a/bpmn/test-cases/manual-tasks/process_model.json b/bpmn/test-cases/manual-tasks/process_model.json
deleted file mode 100644
index fb84700..0000000
--- a/bpmn/test-cases/manual-tasks/process_model.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "description": "",
- "display_name": "Manual Tasks",
- "exception_notification_addresses": [],
- "fault_or_suspend_on_exception": "fault",
- "metadata_extraction_paths": null,
- "primary_file_name": "manual_tasks.bpmn",
- "primary_process_id": "Process_diu8ta2"
-}
\ No newline at end of file
diff --git a/bpmn/test-cases/multiple-call-activities/process_model.json b/bpmn/test-cases/multiple-call-activities/process_model.json
deleted file mode 100644
index 811d483..0000000
--- a/bpmn/test-cases/multiple-call-activities/process_model.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "description": "",
- "display_name": "multiple call activities",
- "display_order": 0,
- "exception_notification_addresses": [],
- "fault_or_suspend_on_exception": "fault",
- "files": [],
- "metadata_extraction_paths": null,
- "primary_file_name": "multiple_call_activities.bpmn",
- "primary_process_id": "Process_90mmqlw"
-}
diff --git a/bpmn/test-cases/nested-call-activities/process_model.json b/bpmn/test-cases/nested-call-activities/process_model.json
deleted file mode 100644
index 0c04fe2..0000000
--- a/bpmn/test-cases/nested-call-activities/process_model.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "description": "",
- "display_name": "Nested Call Activities",
- "display_order": 0,
- "exception_notification_addresses": [],
- "fault_or_suspend_on_exception": "fault",
- "files": [],
- "metadata_extraction_paths": null,
- "primary_file_name": "nested_call_activity.bpmn",
- "primary_process_id": "Process_cqu23d1"
-}
\ No newline at end of file
diff --git a/bpmn/test-cases/no-tasks/process_model.json b/bpmn/test-cases/no-tasks/process_model.json
deleted file mode 100644
index dbddaf9..0000000
--- a/bpmn/test-cases/no-tasks/process_model.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "description": "Just start and end events",
- "display_name": "No Tasks",
- "display_order": 0,
- "exception_notification_addresses": [],
- "fault_or_suspend_on_exception": "fault",
- "files": [],
- "metadata_extraction_paths": null,
- "primary_file_name": "no-tasks.bpmn",
- "primary_process_id": "no_tasks"
-}
\ No newline at end of file
diff --git a/bpmn/test-cases/process_group.json b/bpmn/test-cases/process_group.json
deleted file mode 100644
index fcb0a19..0000000
--- a/bpmn/test-cases/process_group.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "description": "",
- "display_name": "Test Cases"
-}
\ No newline at end of file
diff --git a/bpmn/test-cases/simple-call-activity/process_model.json b/bpmn/test-cases/simple-call-activity/process_model.json
deleted file mode 100644
index aa7fb10..0000000
--- a/bpmn/test-cases/simple-call-activity/process_model.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "description": "",
- "display_name": "Simple Call Activity",
- "display_order": 0,
- "exception_notification_addresses": [],
- "fault_or_suspend_on_exception": "fault",
- "files": [],
- "metadata_extraction_paths": null,
- "primary_file_name": "simple_call_activity.bpmn",
- "primary_process_id": "Process_p4pfxhq"
-}
\ No newline at end of file
diff --git a/bpmn/test-cases/simple-dmn/process_model.json b/bpmn/test-cases/simple-dmn/process_model.json
deleted file mode 100644
index 3b74508..0000000
--- a/bpmn/test-cases/simple-dmn/process_model.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "description": "",
- "display_name": "Simple DMN",
- "display_order": 0,
- "exception_notification_addresses": [],
- "fault_or_suspend_on_exception": "fault",
- "files": [],
- "metadata_extraction_paths": null,
- "primary_file_name": null,
- "primary_process_id": null
-}
\ No newline at end of file
diff --git a/bpmn/test-cases/simple-gateway/process_model.json b/bpmn/test-cases/simple-gateway/process_model.json
deleted file mode 100644
index 6982a6d..0000000
--- a/bpmn/test-cases/simple-gateway/process_model.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "description": "",
- "display_name": "Simple Gateway",
- "exception_notification_addresses": [],
- "fault_or_suspend_on_exception": "fault",
- "metadata_extraction_paths": null,
- "primary_file_name": "simple-gateway.bpmn",
- "primary_process_id": "simple_gateway"
-}
\ No newline at end of file
diff --git a/bpmn/test-cases/simple-subprocess/process_model.json b/bpmn/test-cases/simple-subprocess/process_model.json
deleted file mode 100644
index 15bfbdd..0000000
--- a/bpmn/test-cases/simple-subprocess/process_model.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "description": "",
- "display_name": "Simple Subprocess",
- "display_order": 0,
- "exception_notification_addresses": [],
- "fault_or_suspend_on_exception": "fault",
- "files": [],
- "metadata_extraction_paths": null,
- "primary_file_name": "simple_subprocess.bpmn",
- "primary_process_id": "Process_vv0fdgv"
-}
\ No newline at end of file
diff --git a/bpmn/test-cases/single-task/process_model.json b/bpmn/test-cases/single-task/process_model.json
deleted file mode 100644
index f0a8112..0000000
--- a/bpmn/test-cases/single-task/process_model.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "description": "",
- "display_name": "Single Task",
- "display_order": 0,
- "exception_notification_addresses": [],
- "fault_or_suspend_on_exception": "fault",
- "files": [],
- "metadata_extraction_paths": null,
- "primary_file_name": "single_task.bpmn",
- "primary_process_id": "SingleTask_Process"
-}
\ No newline at end of file
diff --git a/bpmn/test-cases/start-timer1/process_model.json b/bpmn/test-cases/start-timer1/process_model.json
deleted file mode 100644
index 826a0d5..0000000
--- a/bpmn/test-cases/start-timer1/process_model.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "description": "",
- "display_name": "start-timer1",
- "display_order": 0,
- "exception_notification_addresses": [],
- "fault_or_suspend_on_exception": "fault",
- "files": [],
- "metadata_extraction_paths": null,
- "primary_file_name": "start-timer1.bpmn",
- "primary_process_id": "Process_84evfap"
-}
\ No newline at end of file
diff --git a/bpmn/test-cases/terminate/errors/process_model.json b/bpmn/test-cases/terminate/errors/process_model.json
deleted file mode 100644
index 6894da2..0000000
--- a/bpmn/test-cases/terminate/errors/process_model.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "description": "",
- "display_name": "errors",
- "display_order": 0,
- "exception_notification_addresses": [],
- "fault_or_suspend_on_exception": "fault",
- "files": [],
- "metadata_extraction_paths": null,
- "primary_file_name": "err_subprocess.bpmn",
- "primary_process_id": "Process_x7dm5oq"
-}
\ No newline at end of file
diff --git a/bpmn/test-cases/terminate/message/process_model.json b/bpmn/test-cases/terminate/message/process_model.json
deleted file mode 100644
index 322eddd..0000000
--- a/bpmn/test-cases/terminate/message/process_model.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "description": "",
- "display_name": "message",
- "display_order": 0,
- "exception_notification_addresses": [],
- "fault_or_suspend_on_exception": "fault",
- "files": [],
- "metadata_extraction_paths": null,
- "primary_file_name": null,
- "primary_process_id": null
-}
\ No newline at end of file
diff --git a/bpmn/test-cases/terminate/process_group.json b/bpmn/test-cases/terminate/process_group.json
deleted file mode 100644
index a9c9185..0000000
--- a/bpmn/test-cases/terminate/process_group.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "admin": false,
- "description": "",
- "display_name": "terminate",
- "display_order": 0,
- "parent_groups": null,
- "process_groups": [],
- "process_models": []
-}
\ No newline at end of file
diff --git a/bpmn/test-cases/terminate/terminate/process_model.json b/bpmn/test-cases/terminate/terminate/process_model.json
deleted file mode 100644
index e7e3b67..0000000
--- a/bpmn/test-cases/terminate/terminate/process_model.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "description": "",
- "display_name": "terminate",
- "display_order": 0,
- "exception_notification_addresses": [],
- "fault_or_suspend_on_exception": "fault",
- "files": [],
- "metadata_extraction_paths": null,
- "primary_file_name": "transaction.bpmn",
- "primary_process_id": "Process_d6hl5yg"
-}
\ No newline at end of file
diff --git a/bpmn/test-cases/dict-tests/dict-tests.bpmn b/examples/dict.bpmn
similarity index 100%
rename from bpmn/test-cases/dict-tests/dict-tests.bpmn
rename to examples/dict.bpmn
diff --git a/bpmn/test-cases/dict-tests/test.bpmn b/examples/dict_test.bpmn
similarity index 100%
rename from bpmn/test-cases/dict-tests/test.bpmn
rename to examples/dict_test.bpmn
diff --git a/bpmn/test-cases/http-v2-connector-test/httpv2.bpmn b/examples/httpv2.bpmn
similarity index 100%
rename from bpmn/test-cases/http-v2-connector-test/httpv2.bpmn
rename to examples/httpv2.bpmn
diff --git a/bpmn/test-cases/http-v2-connector-test/test_get.bpmn b/examples/httpv2_test.bpmn
similarity index 100%
rename from bpmn/test-cases/http-v2-connector-test/test_get.bpmn
rename to examples/httpv2_test.bpmn
diff --git a/bpmn/test-cases/manual-tasks/manual_tasks.bpmn b/examples/manual_tasks.bpmn
similarity index 100%
rename from bpmn/test-cases/manual-tasks/manual_tasks.bpmn
rename to examples/manual_tasks.bpmn
diff --git a/bpmn/test-cases/manual-tasks/test-mt.bpmn b/examples/manual_tasks_test.bpmn
similarity index 100%
rename from bpmn/test-cases/manual-tasks/test-mt.bpmn
rename to examples/manual_tasks_test.bpmn
diff --git a/bpmn/test-cases/ut/ut-exampledata.json b/examples/ut-exampledata.json
similarity index 100%
rename from bpmn/test-cases/ut/ut-exampledata.json
rename to examples/ut-exampledata.json
diff --git a/bpmn/test-cases/ut/ut-schema.json b/examples/ut-schema.json
similarity index 100%
rename from bpmn/test-cases/ut/ut-schema.json
rename to examples/ut-schema.json
diff --git a/bpmn/test-cases/ut/ut-uischema.json b/examples/ut-uischema.json
similarity index 100%
rename from bpmn/test-cases/ut/ut-uischema.json
rename to examples/ut-uischema.json
diff --git a/bpmn/test-cases/ut/ut.bpmn b/examples/ut.bpmn
similarity index 100%
rename from bpmn/test-cases/ut/ut.bpmn
rename to examples/ut.bpmn
diff --git a/bpmn/test-cases/ut/test.bpmn b/examples/ut_test.bpmn
similarity index 100%
rename from bpmn/test-cases/ut/test.bpmn
rename to examples/ut_test.bpmn
diff --git a/manifest.json b/manifest.json
deleted file mode 100644
index 30ebc72..0000000
--- a/manifest.json
+++ /dev/null
@@ -1,123 +0,0 @@
-{
- "bpmn_file_by_process_id": {
- "Process_048urbd": "bpmn/test-cases/call-activity-with-manual-tasks/call_manual_tasks.bpmn",
- "Process_84evfap": "bpmn/test-cases/start-timer1/start-timer1.bpmn",
- "Process_90mmqlw": "bpmn/test-cases/multiple-call-activities/multiple_call_activities.bpmn",
- "Process_cqu23d1": "bpmn/test-cases/nested-call-activities/nested_call_activity.bpmn",
- "Process_diu8ta2": "bpmn/test-cases/manual-tasks/manual_tasks.bpmn",
- "Process_fwplcm1": "bpmn/test-cases/cycle-start-timer/cycle-start-timer.bpmn",
- "Process_p4pfxhq": "bpmn/test-cases/simple-call-activity/simple_call_activity.bpmn",
- "Process_sypm122": "bpmn/test-cases/countries-and-cities/country_cities.bpmn",
- "Process_vv0fdgv": "bpmn/test-cases/simple-subprocess/simple_subprocess.bpmn",
- "Process_w13g1wd": "bpmn/test-cases/madhu-timer/madhutimertask.bpmn",
- "Process_ynixgwm": "bpmn/test-cases/inclusive-gateway/inclusive-gateway.bpmn",
- "SingleTask_Process": "bpmn/test-cases/single-task/single_task.bpmn",
- "coin-gecko_simple-price": "bpmn/test-cases/http-v2-connector-test/httpv2.bpmn",
- "dict_tests": "bpmn/test-cases/dict-tests/dict-tests.bpmn",
- "no_tasks": "bpmn/test-cases/no-tasks/no-tasks.bpmn",
- "simple_gateway": "bpmn/test-cases/simple-gateway/simple-gateway.bpmn"
- },
- "called_element_ids_by_process_id": {
- "Process_048urbd": [
- "Process_diu8ta2"
- ],
- "Process_90mmqlw": [
- "Process_diu8ta2",
- "Process_sypm122",
- "SingleTask_Process"
- ],
- "Process_cqu23d1": [
- "Process_p4pfxhq",
- "SingleTask_Process"
- ],
- "Process_p4pfxhq": [
- "SingleTask_Process"
- ]
- },
- "process_id_by_workflow_spec_json": {
- "specs/test-cases/call-activity-with-manual-tasks/call_manual_tasks.json": "Process_048urbd",
- "specs/test-cases/countries-and-cities/country_cities.json": "Process_sypm122",
- "specs/test-cases/cycle-start-timer/cycle-start-timer.json": "Process_fwplcm1",
- "specs/test-cases/dict-tests/dict-tests.json": "dict_tests",
- "specs/test-cases/http-v2-connector-test/httpv2.json": "coin-gecko_simple-price",
- "specs/test-cases/inclusive-gateway/inclusive-gateway.json": "Process_ynixgwm",
- "specs/test-cases/madhu-timer/madhutimertask.json": "Process_w13g1wd",
- "specs/test-cases/manual-tasks/manual_tasks.json": "Process_diu8ta2",
- "specs/test-cases/multiple-call-activities/multiple_call_activities.json": "Process_90mmqlw",
- "specs/test-cases/nested-call-activities/nested_call_activity.json": "Process_cqu23d1",
- "specs/test-cases/no-tasks/no-tasks.json": "no_tasks",
- "specs/test-cases/simple-call-activity/simple_call_activity.json": "Process_p4pfxhq",
- "specs/test-cases/simple-gateway/simple-gateway.json": "simple_gateway",
- "specs/test-cases/simple-subprocess/simple_subprocess.json": "Process_vv0fdgv",
- "specs/test-cases/single-task/single_task.json": "SingleTask_Process",
- "specs/test-cases/start-timer1/start-timer1.json": "Process_84evfap"
- },
- "process_ids_by_bpmn_file": {
- "bpmn/test-cases/call-activity-with-manual-tasks/call_manual_tasks.bpmn": [
- "Process_048urbd"
- ],
- "bpmn/test-cases/countries-and-cities/country_cities.bpmn": [
- "Process_sypm122"
- ],
- "bpmn/test-cases/cycle-start-timer/cycle-start-timer.bpmn": [
- "Process_fwplcm1"
- ],
- "bpmn/test-cases/dict-tests/dict-tests.bpmn": [
- "dict_tests"
- ],
- "bpmn/test-cases/http-v2-connector-test/httpv2.bpmn": [
- "coin-gecko_simple-price"
- ],
- "bpmn/test-cases/inclusive-gateway/inclusive-gateway.bpmn": [
- "Process_ynixgwm"
- ],
- "bpmn/test-cases/madhu-timer/madhutimertask.bpmn": [
- "Process_w13g1wd"
- ],
- "bpmn/test-cases/manual-tasks/manual_tasks.bpmn": [
- "Process_diu8ta2"
- ],
- "bpmn/test-cases/multiple-call-activities/multiple_call_activities.bpmn": [
- "Process_90mmqlw"
- ],
- "bpmn/test-cases/nested-call-activities/nested_call_activity.bpmn": [
- "Process_cqu23d1"
- ],
- "bpmn/test-cases/no-tasks/no-tasks.bpmn": [
- "no_tasks"
- ],
- "bpmn/test-cases/simple-call-activity/simple_call_activity.bpmn": [
- "Process_p4pfxhq"
- ],
- "bpmn/test-cases/simple-gateway/simple-gateway.bpmn": [
- "simple_gateway"
- ],
- "bpmn/test-cases/simple-subprocess/simple_subprocess.bpmn": [
- "Process_vv0fdgv"
- ],
- "bpmn/test-cases/single-task/single_task.bpmn": [
- "SingleTask_Process"
- ],
- "bpmn/test-cases/start-timer1/start-timer1.bpmn": [
- "Process_84evfap"
- ]
- },
- "workflow_spec_json_by_process_id": {
- "Process_048urbd": "specs/test-cases/call-activity-with-manual-tasks/call_manual_tasks.json",
- "Process_84evfap": "specs/test-cases/start-timer1/start-timer1.json",
- "Process_90mmqlw": "specs/test-cases/multiple-call-activities/multiple_call_activities.json",
- "Process_cqu23d1": "specs/test-cases/nested-call-activities/nested_call_activity.json",
- "Process_diu8ta2": "specs/test-cases/manual-tasks/manual_tasks.json",
- "Process_fwplcm1": "specs/test-cases/cycle-start-timer/cycle-start-timer.json",
- "Process_p4pfxhq": "specs/test-cases/simple-call-activity/simple_call_activity.json",
- "Process_sypm122": "specs/test-cases/countries-and-cities/country_cities.json",
- "Process_vv0fdgv": "specs/test-cases/simple-subprocess/simple_subprocess.json",
- "Process_w13g1wd": "specs/test-cases/madhu-timer/madhutimertask.json",
- "Process_ynixgwm": "specs/test-cases/inclusive-gateway/inclusive-gateway.json",
- "SingleTask_Process": "specs/test-cases/single-task/single_task.json",
- "coin-gecko_simple-price": "specs/test-cases/http-v2-connector-test/httpv2.json",
- "dict_tests": "specs/test-cases/dict-tests/dict-tests.json",
- "no_tasks": "specs/test-cases/no-tasks/no-tasks.json",
- "simple_gateway": "specs/test-cases/simple-gateway/simple-gateway.json"
- }
-}
\ No newline at end of file
diff --git a/mi-question.bpmn b/mi-question.bpmn
deleted file mode 100644
index 20fa07b..0000000
--- a/mi-question.bpmn
+++ /dev/null
@@ -1,191 +0,0 @@
-
-
-
-
- Flow1_1754484818260
-
-
- Flow_12d52h3
-
-
-
-
-
- Flow2_1754484818260
- Flow_1pvu4jw
-
-
- Flow_08s1g7o
-
-
- Flow_032clpb
-
-
-
-
- Flow_08s1g7o
- Flow_08kldlo
-
-
-
-
- Flow_0oz6445
- Flow_032clpb
-
-
- Flow_08kldlo
- Flow_0oz6445
-
-
-
-
- Flow_1pvu4jw
- Flow_12d52h3
-
-
- Flow1_1754484818260
- Flow2_1754484818260
-
-
- Receiving correspondence on a data carrier
-
-
-
- Registering on a data carrier
-
-
-
- Registering the letter
-
-
-
- Decree of the letter
-
-
-
- ...and there are many more activities in the process of handling the letter
-
-
-
- Putting the data carrier into the archive
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/new.bpmn b/new.bpmn
deleted file mode 100644
index 617ce04..0000000
--- a/new.bpmn
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
-
-
- Flow1_1768312233031
-
-
- Flow2_1768312233031
-
-
-
-
-
- hi
- x = 1
- y = 2
-
- Flow1_1768312233031
- Flow2_1768312233031
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/requirements.txt b/requirements.txt
deleted file mode 100644
index d6ecb1d..0000000
--- a/requirements.txt
+++ /dev/null
@@ -1 +0,0 @@
-https://github.com/sartography/SpiffWorkflow/archive/e4ceff40d9d8a0d182b19483b9f1e9d8850d5765.tar.gz
diff --git a/scripts/gen.py b/scripts/gen.py
deleted file mode 100644
index ea168cf..0000000
--- a/scripts/gen.py
+++ /dev/null
@@ -1,140 +0,0 @@
-import json
-import os
-import shutil
-
-from dataclasses import dataclass, field
-from glob import glob
-from typing import Any
-
-from SpiffWorkflow.bpmn.serializer.workflow import BpmnWorkflowSerializer
-from SpiffWorkflow.bpmn.workflow import BpmnWorkflow
-from SpiffWorkflow.spiff.parser.process import SpiffBpmnParser
-from SpiffWorkflow.spiff.serializer.config import SPIFF_CONFIG
-from SpiffWorkflow.spiff.specs.defaults import CallActivity
-
-registry = BpmnWorkflowSerializer.configure(SPIFF_CONFIG)
-serializer = BpmnWorkflowSerializer(registry=registry)
-
-@dataclass
-class ParsingContext:
- process_ids_by_bpmn_file: dict[str, list[str]] = field(default_factory=dict)
- bpmn_file_by_process_id: dict[str, str] = field(default_factory=dict)
- process_spec_by_id: dict[str, Any] = field(default_factory=dict)
- called_element_ids_by_process_id: dict[str, list[str]] = field(default_factory=dict)
- process_id_by_json_file: dict[str, str] = field(default_factory=dict)
- json_file_by_process_id: dict[str, str] = field(default_factory=dict)
- subworkflows_by_process_id: dict[str, str] = field(default_factory=dict)
-
-def extend_called_element_ids(ctx):
- resolved = {}
- def extend(ids):
- extended = [*ids]
- for id in ids:
- if id not in resolved:
- resolved[id] = extend(ctx.called_element_ids_by_process_id.get(id, []))
- extended.extend(resolved[id])
- return sorted(list(set(extended)))
-
- for k, v in ctx.called_element_ids_by_process_id.items():
- extended = extend(v)
- ctx.called_element_ids_by_process_id[k] = extended
-
-def find_called_element_ids(process_id, process_spec, ctx):
- called_element_ids = []
- for task_spec in process_spec.task_specs.values():
- if isinstance(task_spec, CallActivity):
- called_element_ids.append(task_spec.spec)
- if len(called_element_ids) > 0:
- ctx.called_element_ids_by_process_id[process_id] = called_element_ids
-
-def parse_bpmn_file(bpmn_file, ctx):
- parser = SpiffBpmnParser()
- parser.add_bpmn_files([bpmn_file])
- process_ids = parser.get_process_ids()
- subworkflows = {k: v for k, v in parser.find_all_specs().items() if k not in process_ids}
- ctx.process_ids_by_bpmn_file[bpmn_file] = process_ids
-
- for process_id in process_ids:
- if process_id in ctx.bpmn_file_by_process_id:
- raise Exception(f"Duplicate process_id: {process_id}")
-
- process_spec = parser.get_spec(process_id, required=False)
-
- ctx.bpmn_file_by_process_id[process_id] = bpmn_file
- ctx.process_spec_by_id[process_id] = process_spec
- ctx.subworkflows_by_process_id[process_id] = subworkflows
- find_called_element_ids(process_id, process_spec, ctx)
-
-def spec_json_filename(bpmn_file, i, specs_dir):
- suffix = f"_{i}" if i > 0 else ""
- common_path = bpmn_file[4:-5]
- return f"{specs_dir}{common_path}{suffix}.json"
-
-def serialize_workflow_specs_for_process_id(process_id, ctx):
- process = ctx.process_spec_by_id[process_id]
- called_element_ids = ctx.called_element_ids_by_process_id.get(process_id, [])
- subprocesses = {id: ctx.process_spec_by_id[id] for id in called_element_ids}
- subprocesses.update(ctx.subworkflows_by_process_id[process_id])
- workflow = BpmnWorkflow(process, subprocesses)
- workflow_dct = serializer.to_dict(workflow)
- workflow_specs_dct = {
- "serializer_version": "jbirddog/process-models",
- "spec": workflow_dct["spec"],
- "subprocess_specs": workflow_dct["subprocess_specs"],
- }
- return json.dumps(workflow_specs_dct, sort_keys=True, indent=2)
-
-def generate_workflow_specs(specs_dir, ctx):
- try:
- shutil.rmtree(specs_dir)
- except FileNotFoundError:
- pass
-
- def write_file(filename, contents):
- os.makedirs(os.path.dirname(filename), exist_ok=True)
- with open(filename, "w") as f:
- f.write(contents)
-
- for bpmn_file, process_ids in ctx.process_ids_by_bpmn_file.items():
- for i, process_id in enumerate(process_ids):
- filename = spec_json_filename(bpmn_file, i, specs_dir)
- workflow_specs_json = serialize_workflow_specs_for_process_id(process_id, ctx)
- write_file(filename, workflow_specs_json)
- ctx.process_id_by_json_file[filename] = process_id
- ctx.json_file_by_process_id[process_id] = filename
-
-def generate_manifest(ctx):
- manifest = {
- "bpmn_file_by_process_id": ctx.bpmn_file_by_process_id,
- "called_element_ids_by_process_id": ctx.called_element_ids_by_process_id,
- "process_id_by_workflow_spec_json": ctx.process_id_by_json_file,
- "process_ids_by_bpmn_file": ctx.process_ids_by_bpmn_file,
- "workflow_spec_json_by_process_id": ctx.json_file_by_process_id,
- }
-
- with open("manifest.json", "w") as f:
- f.write(json.dumps(manifest, sort_keys=True, indent=2))
-
-def generate_specs_mk(ctx):
- lines = []
- for process_id, specs_filename in ctx.json_file_by_process_id.items():
- lines.append(f"SPECS_FILE_{process_id} := {specs_filename}")
-
- with open("specs.mk", "w") as f:
- f.write("\n".join(lines))
-
-
-def generate_output_files(bpmn_files, specs_dir):
- ctx = ParsingContext()
-
- for bpmn_file in bpmn_files:
- parse_bpmn_file(bpmn_file, ctx)
-
- extend_called_element_ids(ctx)
- generate_workflow_specs(specs_dir, ctx)
- generate_manifest(ctx)
- generate_specs_mk(ctx)
-
-if __name__ == "__main__":
- bpmn_files = glob("bpmn/**/**/*.bpmn")
- generate_output_files(bpmn_files, "specs")
diff --git a/specs.mk b/specs.mk
deleted file mode 100644
index 06c1aee..0000000
--- a/specs.mk
+++ /dev/null
@@ -1,16 +0,0 @@
-SPECS_FILE_simple_gateway := specs/test-cases/simple-gateway/simple-gateway.json
-SPECS_FILE_coin-gecko_simple-price := specs/test-cases/http-v2-connector-test/httpv2.json
-SPECS_FILE_Process_p4pfxhq := specs/test-cases/simple-call-activity/simple_call_activity.json
-SPECS_FILE_no_tasks := specs/test-cases/no-tasks/no-tasks.json
-SPECS_FILE_Process_w13g1wd := specs/test-cases/madhu-timer/madhutimertask.json
-SPECS_FILE_Process_sypm122 := specs/test-cases/countries-and-cities/country_cities.json
-SPECS_FILE_Process_90mmqlw := specs/test-cases/multiple-call-activities/multiple_call_activities.json
-SPECS_FILE_Process_vv0fdgv := specs/test-cases/simple-subprocess/simple_subprocess.json
-SPECS_FILE_dict_tests := specs/test-cases/dict-tests/dict-tests.json
-SPECS_FILE_Process_cqu23d1 := specs/test-cases/nested-call-activities/nested_call_activity.json
-SPECS_FILE_Process_84evfap := specs/test-cases/start-timer1/start-timer1.json
-SPECS_FILE_Process_ynixgwm := specs/test-cases/inclusive-gateway/inclusive-gateway.json
-SPECS_FILE_Process_fwplcm1 := specs/test-cases/cycle-start-timer/cycle-start-timer.json
-SPECS_FILE_Process_048urbd := specs/test-cases/call-activity-with-manual-tasks/call_manual_tasks.json
-SPECS_FILE_Process_diu8ta2 := specs/test-cases/manual-tasks/manual_tasks.json
-SPECS_FILE_SingleTask_Process := specs/test-cases/single-task/single_task.json
\ No newline at end of file
diff --git a/specs/test-cases/call-activity-with-manual-tasks/call_manual_tasks.json b/specs/test-cases/call-activity-with-manual-tasks/call_manual_tasks.json
deleted file mode 100644
index 9267de3..0000000
--- a/specs/test-cases/call-activity-with-manual-tasks/call_manual_tasks.json
+++ /dev/null
@@ -1,318 +0,0 @@
-{
- "serializer_version": "jbirddog/process-models",
- "spec": {
- "correlation_keys": {},
- "data_objects": {},
- "description": "Process_048urbd",
- "file": "bpmn/test-cases/call-activity-with-manual-tasks/call_manual_tasks.bpmn",
- "io_specification": null,
- "name": "Process_048urbd",
- "task_specs": {
- "Activity_1vn5kz7": {
- "bpmn_id": "Activity_1vn5kz7",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Call Activity",
- "documentation": null,
- "extensions": {},
- "inputs": [
- "StartEvent_1"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_1vn5kz7",
- "outputs": [
- "Event_0o68lso"
- ],
- "postscript": null,
- "prescript": null,
- "spec": "Process_diu8ta2",
- "typename": "CallActivity"
- },
- "End": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Process_048urbd.EndJoin"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "End",
- "outputs": [],
- "typename": "SimpleBpmnTask"
- },
- "Event_0o68lso": {
- "bpmn_id": "Event_0o68lso",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default End Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Activity_1vn5kz7"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Event_0o68lso",
- "outputs": [
- "Process_048urbd.EndJoin"
- ],
- "typename": "EndEvent"
- },
- "Process_048urbd.EndJoin": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Event_0o68lso"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Process_048urbd.EndJoin",
- "outputs": [
- "End"
- ],
- "typename": "_EndJoin"
- },
- "Start": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Start",
- "outputs": [
- "StartEvent_1"
- ],
- "typename": "BpmnStartTask"
- },
- "StartEvent_1": {
- "bpmn_id": "StartEvent_1",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default Start Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Start"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "StartEvent_1",
- "outputs": [
- "Activity_1vn5kz7"
- ],
- "typename": "StartEvent"
- }
- },
- "typename": "BpmnProcessSpec"
- },
- "subprocess_specs": {
- "Process_diu8ta2": {
- "correlation_keys": {},
- "data_objects": {},
- "description": "Process_diu8ta2",
- "file": "bpmn/test-cases/manual-tasks/manual_tasks.bpmn",
- "io_specification": null,
- "name": "Process_diu8ta2",
- "task_specs": {
- "Activity_1h7gm30": {
- "bpmn_id": "Activity_1h7gm30",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Manual Task",
- "documentation": null,
- "extensions": {
- "instructionsForEndUser": "These are the instructions for the first manual task.",
- "preScript": "pre_script_var = 1"
- },
- "inputs": [
- "StartEvent_1"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": true,
- "name": "Activity_1h7gm30",
- "outputs": [
- "Activity_1n7p3m4"
- ],
- "postscript": null,
- "prescript": "pre_script_var = 1",
- "typename": "ManualTask"
- },
- "Activity_1n7p3m4": {
- "bpmn_id": "Activity_1n7p3m4",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Manual Task",
- "documentation": null,
- "extensions": {
- "postScript": "post_script_var = 2\ndel pre_script_var"
- },
- "inputs": [
- "Activity_1h7gm30"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": true,
- "name": "Activity_1n7p3m4",
- "outputs": [
- "Event_0iozjmo"
- ],
- "postscript": "post_script_var = 2\ndel pre_script_var",
- "prescript": null,
- "typename": "ManualTask"
- },
- "End": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Process_diu8ta2.EndJoin"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "End",
- "outputs": [],
- "typename": "SimpleBpmnTask"
- },
- "Event_0iozjmo": {
- "bpmn_id": "Event_0iozjmo",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default End Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Activity_1n7p3m4"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Event_0iozjmo",
- "outputs": [
- "Process_diu8ta2.EndJoin"
- ],
- "typename": "EndEvent"
- },
- "Process_diu8ta2.EndJoin": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Event_0iozjmo"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Process_diu8ta2.EndJoin",
- "outputs": [
- "End"
- ],
- "typename": "_EndJoin"
- },
- "Start": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Start",
- "outputs": [
- "StartEvent_1"
- ],
- "typename": "BpmnStartTask"
- },
- "StartEvent_1": {
- "bpmn_id": "StartEvent_1",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default Start Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Start"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "StartEvent_1",
- "outputs": [
- "Activity_1h7gm30"
- ],
- "typename": "StartEvent"
- }
- },
- "typename": "BpmnProcessSpec"
- }
- }
-}
\ No newline at end of file
diff --git a/specs/test-cases/countries-and-cities/country_cities.json b/specs/test-cases/countries-and-cities/country_cities.json
deleted file mode 100644
index c2c09fb..0000000
--- a/specs/test-cases/countries-and-cities/country_cities.json
+++ /dev/null
@@ -1,345 +0,0 @@
-{
- "serializer_version": "jbirddog/process-models",
- "spec": {
- "correlation_keys": {},
- "data_objects": {},
- "description": "Process_sypm122",
- "file": "bpmn/test-cases/countries-and-cities/country_cities.bpmn",
- "io_specification": null,
- "name": "Process_sypm122",
- "task_specs": {
- "Activity_09g2tjz": {
- "bpmn_id": "Activity_09g2tjz",
- "bpmn_name": "Just City Names",
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Script Task",
- "documentation": null,
- "extensions": {
- "unitTests": [
- {
- "expectedOutputJson": "{\n \"cities_in_a_country\": {\n \"data\": [\n \"Aba\",\n \"Abakaliki\",\n \"Abeokuta\"\n ]\n },\n \"cities\": [\n \"Aba\",\n \"Abakaliki\",\n \"Abeokuta\"\n ]\n}",
- "id": "ScriptUnitTest_0cvsc3s",
- "inputJson": "{\n \"cities_in_a_country\": {\n \"data\": [\n \"Aba\",\n \"Abakaliki\",\n \"Abeokuta\"\n ]\n }\n}"
- },
- {
- "expectedOutputJson": "{}",
- "id": "ScriptUnitTest_1a2dg9d",
- "inputJson": "{}"
- }
- ]
- },
- "inputs": [
- "Activity_1tccbut"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_09g2tjz",
- "outputs": [
- "Event_1vdcski"
- ],
- "postscript": null,
- "prescript": null,
- "script": "# if the api returns an error we return an empty list\ncities = sorted(cities_in_a_country.get(\"data\", []))",
- "typename": "ScriptTask"
- },
- "Activity_0uyx9zu": {
- "bpmn_id": "Activity_0uyx9zu",
- "bpmn_name": "Get Countries",
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Service Task",
- "documentation": null,
- "extensions": {
- "serviceTaskOperator": {
- "name": "http/GetRequest",
- "parameters": {
- "basic_auth_password": {
- "type": "str",
- "value": "None"
- },
- "basic_auth_username": {
- "type": "str",
- "value": "None"
- },
- "headers": {
- "type": "any",
- "value": "{}"
- },
- "params": {
- "type": "any",
- "value": "{}"
- },
- "url": {
- "type": "str",
- "value": "\"https://countriesnow.space/api/v0.1/countries/capital\""
- }
- },
- "resultVariable": "countries_list"
- }
- },
- "inputs": [
- "StartEvent_1"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_0uyx9zu",
- "operation_name": "http/GetRequest",
- "operation_params": {
- "basic_auth_password": {
- "type": "str",
- "value": "None"
- },
- "basic_auth_username": {
- "type": "str",
- "value": "None"
- },
- "headers": {
- "type": "any",
- "value": "{}"
- },
- "params": {
- "type": "any",
- "value": "{}"
- },
- "url": {
- "type": "str",
- "value": "\"https://countriesnow.space/api/v0.1/countries/capital\""
- }
- },
- "outputs": [
- "Activity_1nlj3tu"
- ],
- "postscript": null,
- "prescript": null,
- "result_variable": "countries_list",
- "typename": "ServiceTask"
- },
- "Activity_1nlj3tu": {
- "bpmn_id": "Activity_1nlj3tu",
- "bpmn_name": "Just Country Names",
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Script Task",
- "documentation": null,
- "extensions": {
- "unitTests": [
- {
- "expectedOutputJson": "{\n \"countries_list\": {\n \"data\": [\n {\n \"dialCode\": \"880\",\n \"name\": \"Bangladesh\",\n \"unicodeFlag\": \"\ud83c\udde7\ud83c\udde9\"\n },\n {\n \"dialCode\": \"32\",\n \"name\": \"Belgium\",\n \"unicodeFlag\": \"\ud83c\udde7\ud83c\uddea\"\n },\n {\n \"dialCode\": \"226\",\n \"name\": \"Burkina Faso\",\n \"unicodeFlag\": \"\ud83c\udde7\ud83c\uddeb\"\n }\n ],\n \"error\": false,\n \"msg\": \"countries details: 'unicodeFlag,dialCode' have been retrieved\"\n },\n \"countries\": [\n \"Bangladesh\",\n \"Belgium\",\n \"Burkina Faso\"\n ]\n}",
- "id": "ScriptUnitTest_001d73t",
- "inputJson": "{\n \"countries_list\": {\n \"data\": [\n {\n \"dialCode\": \"880\",\n \"name\": \"Bangladesh\",\n \"unicodeFlag\": \"\ud83c\udde7\ud83c\udde9\"\n },\n {\n \"dialCode\": \"32\",\n \"name\": \"Belgium\",\n \"unicodeFlag\": \"\ud83c\udde7\ud83c\uddea\"\n },\n {\n \"dialCode\": \"226\",\n \"name\": \"Burkina Faso\",\n \"unicodeFlag\": \"\ud83c\udde7\ud83c\uddeb\"\n }\n ],\n \"error\": false,\n \"msg\": \"countries details: 'unicodeFlag,dialCode' have been retrieved\"\n }\n}"
- },
- {
- "expectedOutputJson": "{\n \"countries_list\": {\n \"error\": true,\n \"msg\": \"you must specify data to fetch e.g ?returns=unicodeFlag,currency,image\"\n },\n \"countries\": []\n}",
- "id": "ScriptUnitTest_0k12ysg",
- "inputJson": "{\n \"countries_list\": {\n \"error\": true,\n \"msg\": \"you must specify data to fetch e.g ?returns=unicodeFlag,currency,image\"\n }\n}"
- }
- ]
- },
- "inputs": [
- "Activity_0uyx9zu"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_1nlj3tu",
- "outputs": [
- "Activity_1tccbut"
- ],
- "postscript": null,
- "prescript": null,
- "script": "# if the api returns an error we return an empty list\ncountries_data = countries_list.get(\"data\", [])\nnumber_of_countries = len(countries_data)\ncountries = sorted([d[\"name\"] for d in countries_data])\ndel countries_data",
- "typename": "ScriptTask"
- },
- "Activity_1tccbut": {
- "bpmn_id": "Activity_1tccbut",
- "bpmn_name": "Cities in a Country",
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Service Task",
- "documentation": null,
- "extensions": {
- "serviceTaskOperator": {
- "name": "http/PostRequest",
- "parameters": {
- "basic_auth_password": {
- "type": "str",
- "value": "None"
- },
- "basic_auth_username": {
- "type": "str",
- "value": "None"
- },
- "data": {
- "type": "any",
- "value": "{\"country\": \"United Arab Emirates\"}"
- },
- "headers": {
- "type": "any",
- "value": "{}"
- },
- "url": {
- "type": "str",
- "value": "\"https://countriesnow.space/api/v0.1/countries/cities\""
- }
- },
- "resultVariable": "cities_in_a_country"
- }
- },
- "inputs": [
- "Activity_1nlj3tu"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_1tccbut",
- "operation_name": "http/PostRequest",
- "operation_params": {
- "basic_auth_password": {
- "type": "str",
- "value": "None"
- },
- "basic_auth_username": {
- "type": "str",
- "value": "None"
- },
- "data": {
- "type": "any",
- "value": "{\"country\": \"United Arab Emirates\"}"
- },
- "headers": {
- "type": "any",
- "value": "{}"
- },
- "url": {
- "type": "str",
- "value": "\"https://countriesnow.space/api/v0.1/countries/cities\""
- }
- },
- "outputs": [
- "Activity_09g2tjz"
- ],
- "postscript": null,
- "prescript": null,
- "result_variable": "cities_in_a_country",
- "typename": "ServiceTask"
- },
- "End": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Process_sypm122.EndJoin"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "End",
- "outputs": [],
- "typename": "SimpleBpmnTask"
- },
- "Event_1vdcski": {
- "bpmn_id": "Event_1vdcski",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default End Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Activity_09g2tjz"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Event_1vdcski",
- "outputs": [
- "Process_sypm122.EndJoin"
- ],
- "typename": "EndEvent"
- },
- "Process_sypm122.EndJoin": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Event_1vdcski"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Process_sypm122.EndJoin",
- "outputs": [
- "End"
- ],
- "typename": "_EndJoin"
- },
- "Start": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Start",
- "outputs": [
- "StartEvent_1"
- ],
- "typename": "BpmnStartTask"
- },
- "StartEvent_1": {
- "bpmn_id": "StartEvent_1",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default Start Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Start"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "StartEvent_1",
- "outputs": [
- "Activity_0uyx9zu"
- ],
- "typename": "StartEvent"
- }
- },
- "typename": "BpmnProcessSpec"
- },
- "subprocess_specs": {}
-}
\ No newline at end of file
diff --git a/specs/test-cases/cycle-start-timer/cycle-start-timer.json b/specs/test-cases/cycle-start-timer/cycle-start-timer.json
deleted file mode 100644
index 90365c6..0000000
--- a/specs/test-cases/cycle-start-timer/cycle-start-timer.json
+++ /dev/null
@@ -1,148 +0,0 @@
-{
- "serializer_version": "jbirddog/process-models",
- "spec": {
- "correlation_keys": {},
- "data_objects": {},
- "description": "Process_fwplcm1",
- "file": "bpmn/test-cases/cycle-start-timer/cycle-start-timer.bpmn",
- "io_specification": null,
- "name": "Process_fwplcm1",
- "task_specs": {
- "Activity_0awhg2k": {
- "bpmn_id": "Activity_0awhg2k",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Script Task",
- "documentation": null,
- "extensions": {},
- "inputs": [
- "StartEvent_1"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_0awhg2k",
- "outputs": [
- "Event_1m6dr12"
- ],
- "postscript": null,
- "prescript": null,
- "script": "x=7",
- "typename": "ScriptTask"
- },
- "End": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Process_fwplcm1.EndJoin"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "End",
- "outputs": [],
- "typename": "SimpleBpmnTask"
- },
- "Event_1m6dr12": {
- "bpmn_id": "Event_1m6dr12",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default End Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Activity_0awhg2k"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Event_1m6dr12",
- "outputs": [
- "Process_fwplcm1.EndJoin"
- ],
- "typename": "EndEvent"
- },
- "Process_fwplcm1.EndJoin": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Event_1m6dr12"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Process_fwplcm1.EndJoin",
- "outputs": [
- "End"
- ],
- "typename": "_EndJoin"
- },
- "Start": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Start",
- "outputs": [
- "StartEvent_1"
- ],
- "typename": "BpmnStartTask"
- },
- "StartEvent_1": {
- "bpmn_id": "StartEvent_1",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Timer Start Event",
- "documentation": null,
- "event_definition": {
- "description": "Timer",
- "expression": "\"R/PT30S\"",
- "name": "StartEvent_1",
- "typename": "CycleTimerEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Start"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "StartEvent_1",
- "outputs": [
- "Activity_0awhg2k"
- ],
- "typename": "StartEvent"
- }
- },
- "typename": "BpmnProcessSpec"
- },
- "subprocess_specs": {}
-}
\ No newline at end of file
diff --git a/specs/test-cases/dict-tests/dict-tests.json b/specs/test-cases/dict-tests/dict-tests.json
deleted file mode 100644
index 5424b59..0000000
--- a/specs/test-cases/dict-tests/dict-tests.json
+++ /dev/null
@@ -1,173 +0,0 @@
-{
- "serializer_version": "jbirddog/process-models",
- "spec": {
- "correlation_keys": {},
- "data_objects": {},
- "description": "dict_tests",
- "file": "bpmn/test-cases/dict-tests/dict-tests.bpmn",
- "io_specification": null,
- "name": "dict_tests",
- "task_specs": {
- "Activity_02ziaqh": {
- "bpmn_id": "Activity_02ziaqh",
- "bpmn_name": "Dict with keys and values",
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Script Task",
- "documentation": null,
- "extensions": {},
- "inputs": [
- "Activity_0rjlb6d"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_02ziaqh",
- "outputs": [
- "EndEvent_1"
- ],
- "postscript": null,
- "prescript": null,
- "script": "kv_dict = {\n \"bob\": 55,\n \"sue\": 23,\n \"joe\": 43,\n}",
- "typename": "ScriptTask"
- },
- "Activity_0rjlb6d": {
- "bpmn_id": "Activity_0rjlb6d",
- "bpmn_name": "Empty dict test",
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Script Task",
- "documentation": null,
- "extensions": {},
- "inputs": [
- "StartEvent_1"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_0rjlb6d",
- "outputs": [
- "Activity_02ziaqh"
- ],
- "postscript": null,
- "prescript": null,
- "script": "empty_dict = {}",
- "typename": "ScriptTask"
- },
- "End": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "dict_tests.EndJoin"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "End",
- "outputs": [],
- "typename": "SimpleBpmnTask"
- },
- "EndEvent_1": {
- "bpmn_id": "EndEvent_1",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default End Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {
- "instructionsForEndUser": "The process instance completed successfully."
- },
- "inputs": [
- "Activity_02ziaqh"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "EndEvent_1",
- "outputs": [
- "dict_tests.EndJoin"
- ],
- "typename": "EndEvent"
- },
- "Start": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Start",
- "outputs": [
- "StartEvent_1"
- ],
- "typename": "BpmnStartTask"
- },
- "StartEvent_1": {
- "bpmn_id": "StartEvent_1",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default Start Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Start"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "StartEvent_1",
- "outputs": [
- "Activity_0rjlb6d"
- ],
- "typename": "StartEvent"
- },
- "dict_tests.EndJoin": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "EndEvent_1"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "dict_tests.EndJoin",
- "outputs": [
- "End"
- ],
- "typename": "_EndJoin"
- }
- },
- "typename": "BpmnProcessSpec"
- },
- "subprocess_specs": {}
-}
\ No newline at end of file
diff --git a/specs/test-cases/http-v2-connector-test/httpv2.json b/specs/test-cases/http-v2-connector-test/httpv2.json
deleted file mode 100644
index 0cc67c3..0000000
--- a/specs/test-cases/http-v2-connector-test/httpv2.json
+++ /dev/null
@@ -1,271 +0,0 @@
-{
- "serializer_version": "jbirddog/process-models",
- "spec": {
- "correlation_keys": {},
- "data_objects": {},
- "description": "Coin Gecko - Simple Price API",
- "file": "bpmn/test-cases/http-v2-connector-test/httpv2.bpmn",
- "io_specification": null,
- "name": "coin-gecko_simple-price",
- "task_specs": {
- "Activity_084esg6": {
- "bpmn_id": "Activity_084esg6",
- "bpmn_name": "post v2",
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Service Task",
- "documentation": null,
- "extensions": {
- "serviceTaskOperator": {
- "name": "http/PostRequestV2",
- "parameters": {
- "basic_auth_password": {
- "type": "str",
- "value": "None"
- },
- "basic_auth_username": {
- "type": "str",
- "value": "None"
- },
- "data": {
- "type": "any",
- "value": "{\"uXXrl\": \"https://api.coingecko.com/api/v3/simple/price\", \"params\": {\"ids\": \"DAI\", \"vs_currencies\": \"USD,ETH\" }}"
- },
- "headers": {
- "type": "any",
- "value": "{}"
- },
- "url": {
- "type": "str",
- "value": "\"http://localhost:5000/v1/do/http/GetRequest\""
- }
- },
- "resultVariable": null
- }
- },
- "inputs": [
- "Activity_17nl8sw"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_084esg6",
- "operation_name": "http/PostRequestV2",
- "operation_params": {
- "basic_auth_password": {
- "type": "str",
- "value": "None"
- },
- "basic_auth_username": {
- "type": "str",
- "value": "None"
- },
- "data": {
- "type": "any",
- "value": "{\"uXXrl\": \"https://api.coingecko.com/api/v3/simple/price\", \"params\": {\"ids\": \"DAI\", \"vs_currencies\": \"USD,ETH\" }}"
- },
- "headers": {
- "type": "any",
- "value": "{}"
- },
- "url": {
- "type": "str",
- "value": "\"http://localhost:5000/v1/do/http/GetRequest\""
- }
- },
- "outputs": [
- "Event_12czlsn"
- ],
- "postscript": null,
- "prescript": null,
- "result_variable": null,
- "typename": "ServiceTask"
- },
- "Activity_17nl8sw": {
- "bpmn_id": "Activity_17nl8sw",
- "bpmn_name": "simple price",
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Service Task",
- "documentation": null,
- "extensions": {
- "serviceTaskOperator": {
- "name": "http/GetRequestV2",
- "parameters": {
- "basic_auth_password": {
- "type": "str",
- "value": "None"
- },
- "basic_auth_username": {
- "type": "str",
- "value": "None"
- },
- "headers": {
- "type": "any",
- "value": "{\"Accept\": \"application/json\"}"
- },
- "params": {
- "type": "any",
- "value": "{\"ids\": \"DAI\", \"vs_currencies\": \"USD,ETH\" }"
- },
- "url": {
- "type": "str",
- "value": "\"https://api.coingecko.com/api/v3/simple/price\""
- }
- },
- "resultVariable": null
- }
- },
- "inputs": [
- "StartEvent_1"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_17nl8sw",
- "operation_name": "http/GetRequestV2",
- "operation_params": {
- "basic_auth_password": {
- "type": "str",
- "value": "None"
- },
- "basic_auth_username": {
- "type": "str",
- "value": "None"
- },
- "headers": {
- "type": "any",
- "value": "{\"Accept\": \"application/json\"}"
- },
- "params": {
- "type": "any",
- "value": "{\"ids\": \"DAI\", \"vs_currencies\": \"USD,ETH\" }"
- },
- "url": {
- "type": "str",
- "value": "\"https://api.coingecko.com/api/v3/simple/price\""
- }
- },
- "outputs": [
- "Activity_084esg6"
- ],
- "postscript": null,
- "prescript": null,
- "result_variable": null,
- "typename": "ServiceTask"
- },
- "End": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "coin-gecko_simple-price.EndJoin"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "End",
- "outputs": [],
- "typename": "SimpleBpmnTask"
- },
- "Event_12czlsn": {
- "bpmn_id": "Event_12czlsn",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default End Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Activity_084esg6"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Event_12czlsn",
- "outputs": [
- "coin-gecko_simple-price.EndJoin"
- ],
- "typename": "EndEvent"
- },
- "Start": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Start",
- "outputs": [
- "StartEvent_1"
- ],
- "typename": "BpmnStartTask"
- },
- "StartEvent_1": {
- "bpmn_id": "StartEvent_1",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default Start Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Start"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "StartEvent_1",
- "outputs": [
- "Activity_17nl8sw"
- ],
- "typename": "StartEvent"
- },
- "coin-gecko_simple-price.EndJoin": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Event_12czlsn"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "coin-gecko_simple-price.EndJoin",
- "outputs": [
- "End"
- ],
- "typename": "_EndJoin"
- }
- },
- "typename": "BpmnProcessSpec"
- },
- "subprocess_specs": {}
-}
\ No newline at end of file
diff --git a/specs/test-cases/inclusive-gateway/inclusive-gateway.json b/specs/test-cases/inclusive-gateway/inclusive-gateway.json
deleted file mode 100644
index 7491a44..0000000
--- a/specs/test-cases/inclusive-gateway/inclusive-gateway.json
+++ /dev/null
@@ -1,289 +0,0 @@
-{
- "serializer_version": "jbirddog/process-models",
- "spec": {
- "correlation_keys": {},
- "data_objects": {},
- "description": "Process_ynixgwm",
- "file": "bpmn/test-cases/inclusive-gateway/inclusive-gateway.bpmn",
- "io_specification": null,
- "name": "Process_ynixgwm",
- "task_specs": {
- "Activity_0dqzvn3": {
- "bpmn_id": "Activity_0dqzvn3",
- "bpmn_name": "x=11",
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Script Task",
- "documentation": null,
- "extensions": {},
- "inputs": [
- "StartEvent_1"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_0dqzvn3",
- "outputs": [
- "Gateway_1wbcybj"
- ],
- "postscript": null,
- "prescript": null,
- "script": "x = 11",
- "typename": "ScriptTask"
- },
- "Activity_0f2h442": {
- "bpmn_id": "Activity_0f2h442",
- "bpmn_name": "arm1",
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Script Task",
- "documentation": null,
- "extensions": {},
- "inputs": [
- "Gateway_1wbcybj"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_0f2h442",
- "outputs": [
- "Gateway_0vvgtmq"
- ],
- "postscript": null,
- "prescript": null,
- "script": "arm1 = True",
- "typename": "ScriptTask"
- },
- "Activity_0jwrb1n": {
- "bpmn_id": "Activity_0jwrb1n",
- "bpmn_name": "arm3",
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Script Task",
- "documentation": null,
- "extensions": {},
- "inputs": [
- "Gateway_1wbcybj"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_0jwrb1n",
- "outputs": [
- "Gateway_0vvgtmq"
- ],
- "postscript": null,
- "prescript": null,
- "script": "arm3 = True",
- "typename": "ScriptTask"
- },
- "Activity_1tdwqkn": {
- "bpmn_id": "Activity_1tdwqkn",
- "bpmn_name": "arm2",
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Script Task",
- "documentation": null,
- "extensions": {
- "instructionsForEndUser": null
- },
- "inputs": [
- "Gateway_1wbcybj"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_1tdwqkn",
- "outputs": [
- "Gateway_0vvgtmq"
- ],
- "postscript": null,
- "prescript": null,
- "script": "arm2 = True",
- "typename": "ScriptTask"
- },
- "End": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Process_ynixgwm.EndJoin"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "End",
- "outputs": [],
- "typename": "SimpleBpmnTask"
- },
- "Event_0pvy5wb": {
- "bpmn_id": "Event_0pvy5wb",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default End Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Gateway_0vvgtmq"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Event_0pvy5wb",
- "outputs": [
- "Process_ynixgwm.EndJoin"
- ],
- "typename": "EndEvent"
- },
- "Gateway_0vvgtmq": {
- "bpmn_id": "Gateway_0vvgtmq",
- "bpmn_name": null,
- "choice": null,
- "cond_task_specs": [
- {
- "condition": null,
- "task_spec": "Event_0pvy5wb"
- }
- ],
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Inclusive Gateway",
- "documentation": null,
- "extensions": {},
- "inputs": [
- "Activity_0f2h442",
- "Activity_1tdwqkn",
- "Activity_0jwrb1n"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Gateway_0vvgtmq",
- "outputs": [
- "Event_0pvy5wb"
- ],
- "typename": "InclusiveGateway"
- },
- "Gateway_1wbcybj": {
- "bpmn_id": "Gateway_1wbcybj",
- "bpmn_name": null,
- "choice": null,
- "cond_task_specs": [
- {
- "condition": "x > 100",
- "task_spec": "Activity_0f2h442"
- },
- {
- "condition": null,
- "task_spec": "Activity_1tdwqkn"
- },
- {
- "condition": "x < 12",
- "task_spec": "Activity_0jwrb1n"
- }
- ],
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Inclusive Gateway",
- "documentation": null,
- "extensions": {},
- "inputs": [
- "Activity_0dqzvn3"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Gateway_1wbcybj",
- "outputs": [
- "Activity_0f2h442",
- "Activity_1tdwqkn",
- "Activity_0jwrb1n"
- ],
- "typename": "InclusiveGateway"
- },
- "Process_ynixgwm.EndJoin": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Event_0pvy5wb"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Process_ynixgwm.EndJoin",
- "outputs": [
- "End"
- ],
- "typename": "_EndJoin"
- },
- "Start": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Start",
- "outputs": [
- "StartEvent_1"
- ],
- "typename": "BpmnStartTask"
- },
- "StartEvent_1": {
- "bpmn_id": "StartEvent_1",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default Start Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Start"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "StartEvent_1",
- "outputs": [
- "Activity_0dqzvn3"
- ],
- "typename": "StartEvent"
- }
- },
- "typename": "BpmnProcessSpec"
- },
- "subprocess_specs": {}
-}
\ No newline at end of file
diff --git a/specs/test-cases/madhu-timer/madhutimertask.json b/specs/test-cases/madhu-timer/madhutimertask.json
deleted file mode 100644
index 9da4b41..0000000
--- a/specs/test-cases/madhu-timer/madhutimertask.json
+++ /dev/null
@@ -1,249 +0,0 @@
-{
- "serializer_version": "jbirddog/process-models",
- "spec": {
- "correlation_keys": {},
- "data_objects": {},
- "description": "Process_w13g1wd",
- "file": "bpmn/test-cases/madhu-timer/madhutimertask.bpmn",
- "io_specification": null,
- "name": "Process_w13g1wd",
- "task_specs": {
- "Activity_0ocbxin": {
- "bpmn_id": "Activity_0ocbxin",
- "bpmn_name": "Show name",
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Manual Task",
- "documentation": null,
- "extensions": {
- "instructionsForEndUser": "{{name}}"
- },
- "inputs": [
- "Activity_1742krl"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": true,
- "name": "Activity_0ocbxin",
- "outputs": [
- "Event_1hm16rp"
- ],
- "postscript": null,
- "prescript": null,
- "typename": "ManualTask"
- },
- "Activity_1742krl": {
- "bpmn_id": "Activity_1742krl",
- "bpmn_name": "Get name",
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "User Task",
- "documentation": null,
- "extensions": {
- "properties": {
- "formJsonSchemaFilename": "getname.json"
- }
- },
- "inputs": [
- "Activity_1742krl.BoundaryEventSplit"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": true,
- "name": "Activity_1742krl",
- "outputs": [
- "Activity_1742krl.BoundaryEventJoin",
- "Activity_0ocbxin"
- ],
- "postscript": null,
- "prescript": null,
- "typename": "UserTask"
- },
- "Activity_1742krl.BoundaryEventJoin": {
- "bpmn_id": null,
- "bpmn_name": null,
- "cancel": true,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Activity_1742krl",
- "Event_12o0kkm"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_1742krl.BoundaryEventJoin",
- "outputs": [],
- "split_task": "Activity_1742krl.BoundaryEventSplit",
- "threshold": null,
- "typename": "BoundaryEventJoin"
- },
- "Activity_1742krl.BoundaryEventSplit": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "StartEvent_1"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_1742krl.BoundaryEventSplit",
- "outputs": [
- "Activity_1742krl",
- "Event_12o0kkm"
- ],
- "typename": "BoundaryEventSplit"
- },
- "End": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Process_w13g1wd.EndJoin"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "End",
- "outputs": [],
- "typename": "SimpleBpmnTask"
- },
- "Event_12o0kkm": {
- "bpmn_id": "Event_12o0kkm",
- "bpmn_name": null,
- "cancel_activity": true,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Interrupting Timer Boundary Event",
- "documentation": null,
- "event_definition": {
- "description": "Timer",
- "expression": "\"PT3000S\"",
- "name": "Event_12o0kkm",
- "typename": "DurationTimerEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Activity_1742krl.BoundaryEventSplit"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Event_12o0kkm",
- "outputs": [
- "Event_1hm16rp",
- "Activity_1742krl.BoundaryEventJoin"
- ],
- "typename": "BoundaryEvent"
- },
- "Event_1hm16rp": {
- "bpmn_id": "Event_1hm16rp",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default End Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Event_12o0kkm",
- "Activity_0ocbxin"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Event_1hm16rp",
- "outputs": [
- "Process_w13g1wd.EndJoin"
- ],
- "typename": "EndEvent"
- },
- "Process_w13g1wd.EndJoin": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Event_1hm16rp"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Process_w13g1wd.EndJoin",
- "outputs": [
- "End"
- ],
- "typename": "_EndJoin"
- },
- "Start": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Start",
- "outputs": [
- "StartEvent_1"
- ],
- "typename": "BpmnStartTask"
- },
- "StartEvent_1": {
- "bpmn_id": "StartEvent_1",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default Start Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Start"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "StartEvent_1",
- "outputs": [
- "Activity_1742krl.BoundaryEventSplit"
- ],
- "typename": "StartEvent"
- }
- },
- "typename": "BpmnProcessSpec"
- },
- "subprocess_specs": {}
-}
\ No newline at end of file
diff --git a/specs/test-cases/manual-tasks/manual_tasks.json b/specs/test-cases/manual-tasks/manual_tasks.json
deleted file mode 100644
index 9b49f0b..0000000
--- a/specs/test-cases/manual-tasks/manual_tasks.json
+++ /dev/null
@@ -1,174 +0,0 @@
-{
- "serializer_version": "jbirddog/process-models",
- "spec": {
- "correlation_keys": {},
- "data_objects": {},
- "description": "Process_diu8ta2",
- "file": "bpmn/test-cases/manual-tasks/manual_tasks.bpmn",
- "io_specification": null,
- "name": "Process_diu8ta2",
- "task_specs": {
- "Activity_1h7gm30": {
- "bpmn_id": "Activity_1h7gm30",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Manual Task",
- "documentation": null,
- "extensions": {
- "instructionsForEndUser": "These are the instructions for the first manual task.",
- "preScript": "pre_script_var = 1"
- },
- "inputs": [
- "StartEvent_1"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": true,
- "name": "Activity_1h7gm30",
- "outputs": [
- "Activity_1n7p3m4"
- ],
- "postscript": null,
- "prescript": "pre_script_var = 1",
- "typename": "ManualTask"
- },
- "Activity_1n7p3m4": {
- "bpmn_id": "Activity_1n7p3m4",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Manual Task",
- "documentation": null,
- "extensions": {
- "postScript": "post_script_var = 2\ndel pre_script_var"
- },
- "inputs": [
- "Activity_1h7gm30"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": true,
- "name": "Activity_1n7p3m4",
- "outputs": [
- "Event_0iozjmo"
- ],
- "postscript": "post_script_var = 2\ndel pre_script_var",
- "prescript": null,
- "typename": "ManualTask"
- },
- "End": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Process_diu8ta2.EndJoin"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "End",
- "outputs": [],
- "typename": "SimpleBpmnTask"
- },
- "Event_0iozjmo": {
- "bpmn_id": "Event_0iozjmo",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default End Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Activity_1n7p3m4"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Event_0iozjmo",
- "outputs": [
- "Process_diu8ta2.EndJoin"
- ],
- "typename": "EndEvent"
- },
- "Process_diu8ta2.EndJoin": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Event_0iozjmo"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Process_diu8ta2.EndJoin",
- "outputs": [
- "End"
- ],
- "typename": "_EndJoin"
- },
- "Start": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Start",
- "outputs": [
- "StartEvent_1"
- ],
- "typename": "BpmnStartTask"
- },
- "StartEvent_1": {
- "bpmn_id": "StartEvent_1",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default Start Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Start"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "StartEvent_1",
- "outputs": [
- "Activity_1h7gm30"
- ],
- "typename": "StartEvent"
- }
- },
- "typename": "BpmnProcessSpec"
- },
- "subprocess_specs": {}
-}
\ No newline at end of file
diff --git a/specs/test-cases/multiple-call-activities/multiple_call_activities.json b/specs/test-cases/multiple-call-activities/multiple_call_activities.json
deleted file mode 100644
index a1ca25b..0000000
--- a/specs/test-cases/multiple-call-activities/multiple_call_activities.json
+++ /dev/null
@@ -1,852 +0,0 @@
-{
- "serializer_version": "jbirddog/process-models",
- "spec": {
- "correlation_keys": {},
- "data_objects": {},
- "description": "Process_90mmqlw",
- "file": "bpmn/test-cases/multiple-call-activities/multiple_call_activities.bpmn",
- "io_specification": null,
- "name": "Process_90mmqlw",
- "task_specs": {
- "Activity_0d5dido": {
- "bpmn_id": "Activity_0d5dido",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Call Activity",
- "documentation": null,
- "extensions": {},
- "inputs": [
- "Activity_0rsppq2"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_0d5dido",
- "outputs": [
- "Event_0yflyfj"
- ],
- "postscript": null,
- "prescript": null,
- "spec": "Process_diu8ta2",
- "typename": "CallActivity"
- },
- "Activity_0rsppq2": {
- "bpmn_id": "Activity_0rsppq2",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Call Activity",
- "documentation": null,
- "extensions": {},
- "inputs": [
- "Activity_185dcnc"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_0rsppq2",
- "outputs": [
- "Activity_0d5dido"
- ],
- "postscript": null,
- "prescript": null,
- "spec": "SingleTask_Process",
- "typename": "CallActivity"
- },
- "Activity_185dcnc": {
- "bpmn_id": "Activity_185dcnc",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Call Activity",
- "documentation": null,
- "extensions": {},
- "inputs": [
- "StartEvent_1"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_185dcnc",
- "outputs": [
- "Activity_0rsppq2"
- ],
- "postscript": null,
- "prescript": null,
- "spec": "Process_sypm122",
- "typename": "CallActivity"
- },
- "End": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Process_90mmqlw.EndJoin"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "End",
- "outputs": [],
- "typename": "SimpleBpmnTask"
- },
- "Event_0yflyfj": {
- "bpmn_id": "Event_0yflyfj",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default End Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Activity_0d5dido"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Event_0yflyfj",
- "outputs": [
- "Process_90mmqlw.EndJoin"
- ],
- "typename": "EndEvent"
- },
- "Process_90mmqlw.EndJoin": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Event_0yflyfj"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Process_90mmqlw.EndJoin",
- "outputs": [
- "End"
- ],
- "typename": "_EndJoin"
- },
- "Start": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Start",
- "outputs": [
- "StartEvent_1"
- ],
- "typename": "BpmnStartTask"
- },
- "StartEvent_1": {
- "bpmn_id": "StartEvent_1",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default Start Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Start"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "StartEvent_1",
- "outputs": [
- "Activity_185dcnc"
- ],
- "typename": "StartEvent"
- }
- },
- "typename": "BpmnProcessSpec"
- },
- "subprocess_specs": {
- "Process_diu8ta2": {
- "correlation_keys": {},
- "data_objects": {},
- "description": "Process_diu8ta2",
- "file": "bpmn/test-cases/manual-tasks/manual_tasks.bpmn",
- "io_specification": null,
- "name": "Process_diu8ta2",
- "task_specs": {
- "Activity_1h7gm30": {
- "bpmn_id": "Activity_1h7gm30",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Manual Task",
- "documentation": null,
- "extensions": {
- "instructionsForEndUser": "These are the instructions for the first manual task.",
- "preScript": "pre_script_var = 1"
- },
- "inputs": [
- "StartEvent_1"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": true,
- "name": "Activity_1h7gm30",
- "outputs": [
- "Activity_1n7p3m4"
- ],
- "postscript": null,
- "prescript": "pre_script_var = 1",
- "typename": "ManualTask"
- },
- "Activity_1n7p3m4": {
- "bpmn_id": "Activity_1n7p3m4",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Manual Task",
- "documentation": null,
- "extensions": {
- "postScript": "post_script_var = 2\ndel pre_script_var"
- },
- "inputs": [
- "Activity_1h7gm30"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": true,
- "name": "Activity_1n7p3m4",
- "outputs": [
- "Event_0iozjmo"
- ],
- "postscript": "post_script_var = 2\ndel pre_script_var",
- "prescript": null,
- "typename": "ManualTask"
- },
- "End": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Process_diu8ta2.EndJoin"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "End",
- "outputs": [],
- "typename": "SimpleBpmnTask"
- },
- "Event_0iozjmo": {
- "bpmn_id": "Event_0iozjmo",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default End Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Activity_1n7p3m4"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Event_0iozjmo",
- "outputs": [
- "Process_diu8ta2.EndJoin"
- ],
- "typename": "EndEvent"
- },
- "Process_diu8ta2.EndJoin": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Event_0iozjmo"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Process_diu8ta2.EndJoin",
- "outputs": [
- "End"
- ],
- "typename": "_EndJoin"
- },
- "Start": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Start",
- "outputs": [
- "StartEvent_1"
- ],
- "typename": "BpmnStartTask"
- },
- "StartEvent_1": {
- "bpmn_id": "StartEvent_1",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default Start Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Start"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "StartEvent_1",
- "outputs": [
- "Activity_1h7gm30"
- ],
- "typename": "StartEvent"
- }
- },
- "typename": "BpmnProcessSpec"
- },
- "Process_sypm122": {
- "correlation_keys": {},
- "data_objects": {},
- "description": "Process_sypm122",
- "file": "bpmn/test-cases/countries-and-cities/country_cities.bpmn",
- "io_specification": null,
- "name": "Process_sypm122",
- "task_specs": {
- "Activity_09g2tjz": {
- "bpmn_id": "Activity_09g2tjz",
- "bpmn_name": "Just City Names",
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Script Task",
- "documentation": null,
- "extensions": {
- "unitTests": [
- {
- "expectedOutputJson": "{\n \"cities_in_a_country\": {\n \"data\": [\n \"Aba\",\n \"Abakaliki\",\n \"Abeokuta\"\n ]\n },\n \"cities\": [\n \"Aba\",\n \"Abakaliki\",\n \"Abeokuta\"\n ]\n}",
- "id": "ScriptUnitTest_0cvsc3s",
- "inputJson": "{\n \"cities_in_a_country\": {\n \"data\": [\n \"Aba\",\n \"Abakaliki\",\n \"Abeokuta\"\n ]\n }\n}"
- },
- {
- "expectedOutputJson": "{}",
- "id": "ScriptUnitTest_1a2dg9d",
- "inputJson": "{}"
- }
- ]
- },
- "inputs": [
- "Activity_1tccbut"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_09g2tjz",
- "outputs": [
- "Event_1vdcski"
- ],
- "postscript": null,
- "prescript": null,
- "script": "# if the api returns an error we return an empty list\ncities = sorted(cities_in_a_country.get(\"data\", []))",
- "typename": "ScriptTask"
- },
- "Activity_0uyx9zu": {
- "bpmn_id": "Activity_0uyx9zu",
- "bpmn_name": "Get Countries",
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Service Task",
- "documentation": null,
- "extensions": {
- "serviceTaskOperator": {
- "name": "http/GetRequest",
- "parameters": {
- "basic_auth_password": {
- "type": "str",
- "value": "None"
- },
- "basic_auth_username": {
- "type": "str",
- "value": "None"
- },
- "headers": {
- "type": "any",
- "value": "{}"
- },
- "params": {
- "type": "any",
- "value": "{}"
- },
- "url": {
- "type": "str",
- "value": "\"https://countriesnow.space/api/v0.1/countries/capital\""
- }
- },
- "resultVariable": "countries_list"
- }
- },
- "inputs": [
- "StartEvent_1"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_0uyx9zu",
- "operation_name": "http/GetRequest",
- "operation_params": {
- "basic_auth_password": {
- "type": "str",
- "value": "None"
- },
- "basic_auth_username": {
- "type": "str",
- "value": "None"
- },
- "headers": {
- "type": "any",
- "value": "{}"
- },
- "params": {
- "type": "any",
- "value": "{}"
- },
- "url": {
- "type": "str",
- "value": "\"https://countriesnow.space/api/v0.1/countries/capital\""
- }
- },
- "outputs": [
- "Activity_1nlj3tu"
- ],
- "postscript": null,
- "prescript": null,
- "result_variable": "countries_list",
- "typename": "ServiceTask"
- },
- "Activity_1nlj3tu": {
- "bpmn_id": "Activity_1nlj3tu",
- "bpmn_name": "Just Country Names",
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Script Task",
- "documentation": null,
- "extensions": {
- "unitTests": [
- {
- "expectedOutputJson": "{\n \"countries_list\": {\n \"data\": [\n {\n \"dialCode\": \"880\",\n \"name\": \"Bangladesh\",\n \"unicodeFlag\": \"\ud83c\udde7\ud83c\udde9\"\n },\n {\n \"dialCode\": \"32\",\n \"name\": \"Belgium\",\n \"unicodeFlag\": \"\ud83c\udde7\ud83c\uddea\"\n },\n {\n \"dialCode\": \"226\",\n \"name\": \"Burkina Faso\",\n \"unicodeFlag\": \"\ud83c\udde7\ud83c\uddeb\"\n }\n ],\n \"error\": false,\n \"msg\": \"countries details: 'unicodeFlag,dialCode' have been retrieved\"\n },\n \"countries\": [\n \"Bangladesh\",\n \"Belgium\",\n \"Burkina Faso\"\n ]\n}",
- "id": "ScriptUnitTest_001d73t",
- "inputJson": "{\n \"countries_list\": {\n \"data\": [\n {\n \"dialCode\": \"880\",\n \"name\": \"Bangladesh\",\n \"unicodeFlag\": \"\ud83c\udde7\ud83c\udde9\"\n },\n {\n \"dialCode\": \"32\",\n \"name\": \"Belgium\",\n \"unicodeFlag\": \"\ud83c\udde7\ud83c\uddea\"\n },\n {\n \"dialCode\": \"226\",\n \"name\": \"Burkina Faso\",\n \"unicodeFlag\": \"\ud83c\udde7\ud83c\uddeb\"\n }\n ],\n \"error\": false,\n \"msg\": \"countries details: 'unicodeFlag,dialCode' have been retrieved\"\n }\n}"
- },
- {
- "expectedOutputJson": "{\n \"countries_list\": {\n \"error\": true,\n \"msg\": \"you must specify data to fetch e.g ?returns=unicodeFlag,currency,image\"\n },\n \"countries\": []\n}",
- "id": "ScriptUnitTest_0k12ysg",
- "inputJson": "{\n \"countries_list\": {\n \"error\": true,\n \"msg\": \"you must specify data to fetch e.g ?returns=unicodeFlag,currency,image\"\n }\n}"
- }
- ]
- },
- "inputs": [
- "Activity_0uyx9zu"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_1nlj3tu",
- "outputs": [
- "Activity_1tccbut"
- ],
- "postscript": null,
- "prescript": null,
- "script": "# if the api returns an error we return an empty list\ncountries_data = countries_list.get(\"data\", [])\nnumber_of_countries = len(countries_data)\ncountries = sorted([d[\"name\"] for d in countries_data])\ndel countries_data",
- "typename": "ScriptTask"
- },
- "Activity_1tccbut": {
- "bpmn_id": "Activity_1tccbut",
- "bpmn_name": "Cities in a Country",
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Service Task",
- "documentation": null,
- "extensions": {
- "serviceTaskOperator": {
- "name": "http/PostRequest",
- "parameters": {
- "basic_auth_password": {
- "type": "str",
- "value": "None"
- },
- "basic_auth_username": {
- "type": "str",
- "value": "None"
- },
- "data": {
- "type": "any",
- "value": "{\"country\": \"United Arab Emirates\"}"
- },
- "headers": {
- "type": "any",
- "value": "{}"
- },
- "url": {
- "type": "str",
- "value": "\"https://countriesnow.space/api/v0.1/countries/cities\""
- }
- },
- "resultVariable": "cities_in_a_country"
- }
- },
- "inputs": [
- "Activity_1nlj3tu"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_1tccbut",
- "operation_name": "http/PostRequest",
- "operation_params": {
- "basic_auth_password": {
- "type": "str",
- "value": "None"
- },
- "basic_auth_username": {
- "type": "str",
- "value": "None"
- },
- "data": {
- "type": "any",
- "value": "{\"country\": \"United Arab Emirates\"}"
- },
- "headers": {
- "type": "any",
- "value": "{}"
- },
- "url": {
- "type": "str",
- "value": "\"https://countriesnow.space/api/v0.1/countries/cities\""
- }
- },
- "outputs": [
- "Activity_09g2tjz"
- ],
- "postscript": null,
- "prescript": null,
- "result_variable": "cities_in_a_country",
- "typename": "ServiceTask"
- },
- "End": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Process_sypm122.EndJoin"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "End",
- "outputs": [],
- "typename": "SimpleBpmnTask"
- },
- "Event_1vdcski": {
- "bpmn_id": "Event_1vdcski",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default End Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Activity_09g2tjz"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Event_1vdcski",
- "outputs": [
- "Process_sypm122.EndJoin"
- ],
- "typename": "EndEvent"
- },
- "Process_sypm122.EndJoin": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Event_1vdcski"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Process_sypm122.EndJoin",
- "outputs": [
- "End"
- ],
- "typename": "_EndJoin"
- },
- "Start": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Start",
- "outputs": [
- "StartEvent_1"
- ],
- "typename": "BpmnStartTask"
- },
- "StartEvent_1": {
- "bpmn_id": "StartEvent_1",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default Start Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Start"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "StartEvent_1",
- "outputs": [
- "Activity_0uyx9zu"
- ],
- "typename": "StartEvent"
- }
- },
- "typename": "BpmnProcessSpec"
- },
- "SingleTask_Process": {
- "correlation_keys": {},
- "data_objects": {},
- "description": "SingleTask_Process",
- "file": "bpmn/test-cases/single-task/single_task.bpmn",
- "io_specification": null,
- "name": "SingleTask_Process",
- "task_specs": {
- "Activity_1mwbqi4": {
- "bpmn_id": "Activity_1mwbqi4",
- "bpmn_name": "x=1",
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Script Task",
- "documentation": null,
- "extensions": {
- "instructionsForEndUser": "hey man, setting x to 1"
- },
- "inputs": [
- "StartEvent_1"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_1mwbqi4",
- "outputs": [
- "Event_1gsb2u0"
- ],
- "postscript": null,
- "prescript": null,
- "script": "x=1",
- "typename": "ScriptTask"
- },
- "End": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "SingleTask_Process.EndJoin"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "End",
- "outputs": [],
- "typename": "SimpleBpmnTask"
- },
- "Event_1gsb2u0": {
- "bpmn_id": "Event_1gsb2u0",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default End Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Activity_1mwbqi4"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Event_1gsb2u0",
- "outputs": [
- "SingleTask_Process.EndJoin"
- ],
- "typename": "EndEvent"
- },
- "SingleTask_Process.EndJoin": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Event_1gsb2u0"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "SingleTask_Process.EndJoin",
- "outputs": [
- "End"
- ],
- "typename": "_EndJoin"
- },
- "Start": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Start",
- "outputs": [
- "StartEvent_1"
- ],
- "typename": "BpmnStartTask"
- },
- "StartEvent_1": {
- "bpmn_id": "StartEvent_1",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default Start Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Start"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "StartEvent_1",
- "outputs": [
- "Activity_1mwbqi4"
- ],
- "typename": "StartEvent"
- }
- },
- "typename": "BpmnProcessSpec"
- }
- }
-}
\ No newline at end of file
diff --git a/specs/test-cases/nested-call-activities/nested_call_activity.json b/specs/test-cases/nested-call-activities/nested_call_activity.json
deleted file mode 100644
index 287bf29..0000000
--- a/specs/test-cases/nested-call-activities/nested_call_activity.json
+++ /dev/null
@@ -1,436 +0,0 @@
-{
- "serializer_version": "jbirddog/process-models",
- "spec": {
- "correlation_keys": {},
- "data_objects": {},
- "description": "Process_cqu23d1",
- "file": "bpmn/test-cases/nested-call-activities/nested_call_activity.bpmn",
- "io_specification": null,
- "name": "Process_cqu23d1",
- "task_specs": {
- "Activity_0ecs1u1": {
- "bpmn_id": "Activity_0ecs1u1",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Call Activity",
- "documentation": null,
- "extensions": {},
- "inputs": [
- "StartEvent_1"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_0ecs1u1",
- "outputs": [
- "Event_16rmzi1"
- ],
- "postscript": null,
- "prescript": null,
- "spec": "Process_p4pfxhq",
- "typename": "CallActivity"
- },
- "End": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Process_cqu23d1.EndJoin"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "End",
- "outputs": [],
- "typename": "SimpleBpmnTask"
- },
- "Event_16rmzi1": {
- "bpmn_id": "Event_16rmzi1",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default End Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Activity_0ecs1u1"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Event_16rmzi1",
- "outputs": [
- "Process_cqu23d1.EndJoin"
- ],
- "typename": "EndEvent"
- },
- "Process_cqu23d1.EndJoin": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Event_16rmzi1"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Process_cqu23d1.EndJoin",
- "outputs": [
- "End"
- ],
- "typename": "_EndJoin"
- },
- "Start": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Start",
- "outputs": [
- "StartEvent_1"
- ],
- "typename": "BpmnStartTask"
- },
- "StartEvent_1": {
- "bpmn_id": "StartEvent_1",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default Start Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Start"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "StartEvent_1",
- "outputs": [
- "Activity_0ecs1u1"
- ],
- "typename": "StartEvent"
- }
- },
- "typename": "BpmnProcessSpec"
- },
- "subprocess_specs": {
- "Process_p4pfxhq": {
- "correlation_keys": {},
- "data_objects": {},
- "description": "Process_p4pfxhq",
- "file": "bpmn/test-cases/simple-call-activity/simple_call_activity.bpmn",
- "io_specification": null,
- "name": "Process_p4pfxhq",
- "task_specs": {
- "Activity_0q1z4d4": {
- "bpmn_id": "Activity_0q1z4d4",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Call Activity",
- "documentation": null,
- "extensions": {},
- "inputs": [
- "StartEvent_1"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_0q1z4d4",
- "outputs": [
- "Event_05ktmeu"
- ],
- "postscript": null,
- "prescript": null,
- "spec": "SingleTask_Process",
- "typename": "CallActivity"
- },
- "End": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Process_p4pfxhq.EndJoin"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "End",
- "outputs": [],
- "typename": "SimpleBpmnTask"
- },
- "Event_05ktmeu": {
- "bpmn_id": "Event_05ktmeu",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default End Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Activity_0q1z4d4"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Event_05ktmeu",
- "outputs": [
- "Process_p4pfxhq.EndJoin"
- ],
- "typename": "EndEvent"
- },
- "Process_p4pfxhq.EndJoin": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Event_05ktmeu"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Process_p4pfxhq.EndJoin",
- "outputs": [
- "End"
- ],
- "typename": "_EndJoin"
- },
- "Start": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Start",
- "outputs": [
- "StartEvent_1"
- ],
- "typename": "BpmnStartTask"
- },
- "StartEvent_1": {
- "bpmn_id": "StartEvent_1",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default Start Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Start"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "StartEvent_1",
- "outputs": [
- "Activity_0q1z4d4"
- ],
- "typename": "StartEvent"
- }
- },
- "typename": "BpmnProcessSpec"
- },
- "SingleTask_Process": {
- "correlation_keys": {},
- "data_objects": {},
- "description": "SingleTask_Process",
- "file": "bpmn/test-cases/single-task/single_task.bpmn",
- "io_specification": null,
- "name": "SingleTask_Process",
- "task_specs": {
- "Activity_1mwbqi4": {
- "bpmn_id": "Activity_1mwbqi4",
- "bpmn_name": "x=1",
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Script Task",
- "documentation": null,
- "extensions": {
- "instructionsForEndUser": "hey man, setting x to 1"
- },
- "inputs": [
- "StartEvent_1"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_1mwbqi4",
- "outputs": [
- "Event_1gsb2u0"
- ],
- "postscript": null,
- "prescript": null,
- "script": "x=1",
- "typename": "ScriptTask"
- },
- "End": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "SingleTask_Process.EndJoin"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "End",
- "outputs": [],
- "typename": "SimpleBpmnTask"
- },
- "Event_1gsb2u0": {
- "bpmn_id": "Event_1gsb2u0",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default End Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Activity_1mwbqi4"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Event_1gsb2u0",
- "outputs": [
- "SingleTask_Process.EndJoin"
- ],
- "typename": "EndEvent"
- },
- "SingleTask_Process.EndJoin": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Event_1gsb2u0"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "SingleTask_Process.EndJoin",
- "outputs": [
- "End"
- ],
- "typename": "_EndJoin"
- },
- "Start": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Start",
- "outputs": [
- "StartEvent_1"
- ],
- "typename": "BpmnStartTask"
- },
- "StartEvent_1": {
- "bpmn_id": "StartEvent_1",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default Start Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Start"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "StartEvent_1",
- "outputs": [
- "Activity_1mwbqi4"
- ],
- "typename": "StartEvent"
- }
- },
- "typename": "BpmnProcessSpec"
- }
- }
-}
\ No newline at end of file
diff --git a/specs/test-cases/no-tasks/no-tasks.json b/specs/test-cases/no-tasks/no-tasks.json
deleted file mode 100644
index eee82d9..0000000
--- a/specs/test-cases/no-tasks/no-tasks.json
+++ /dev/null
@@ -1,123 +0,0 @@
-{
- "serializer_version": "jbirddog/process-models",
- "spec": {
- "correlation_keys": {},
- "data_objects": {},
- "description": "No Tasks",
- "file": "bpmn/test-cases/no-tasks/no-tasks.bpmn",
- "io_specification": null,
- "name": "no_tasks",
- "task_specs": {
- "End": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "no_tasks.EndJoin"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "End",
- "outputs": [],
- "typename": "SimpleBpmnTask"
- },
- "Event_0qq9il3": {
- "bpmn_id": "Event_0qq9il3",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default End Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "StartEvent_1"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Event_0qq9il3",
- "outputs": [
- "no_tasks.EndJoin"
- ],
- "typename": "EndEvent"
- },
- "Start": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Start",
- "outputs": [
- "StartEvent_1"
- ],
- "typename": "BpmnStartTask"
- },
- "StartEvent_1": {
- "bpmn_id": "StartEvent_1",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default Start Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Start"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "StartEvent_1",
- "outputs": [
- "Event_0qq9il3"
- ],
- "typename": "StartEvent"
- },
- "no_tasks.EndJoin": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Event_0qq9il3"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "no_tasks.EndJoin",
- "outputs": [
- "End"
- ],
- "typename": "_EndJoin"
- }
- },
- "typename": "BpmnProcessSpec"
- },
- "subprocess_specs": {}
-}
\ No newline at end of file
diff --git a/specs/test-cases/simple-call-activity/simple_call_activity.json b/specs/test-cases/simple-call-activity/simple_call_activity.json
deleted file mode 100644
index 6e4d316..0000000
--- a/specs/test-cases/simple-call-activity/simple_call_activity.json
+++ /dev/null
@@ -1,293 +0,0 @@
-{
- "serializer_version": "jbirddog/process-models",
- "spec": {
- "correlation_keys": {},
- "data_objects": {},
- "description": "Process_p4pfxhq",
- "file": "bpmn/test-cases/simple-call-activity/simple_call_activity.bpmn",
- "io_specification": null,
- "name": "Process_p4pfxhq",
- "task_specs": {
- "Activity_0q1z4d4": {
- "bpmn_id": "Activity_0q1z4d4",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Call Activity",
- "documentation": null,
- "extensions": {},
- "inputs": [
- "StartEvent_1"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_0q1z4d4",
- "outputs": [
- "Event_05ktmeu"
- ],
- "postscript": null,
- "prescript": null,
- "spec": "SingleTask_Process",
- "typename": "CallActivity"
- },
- "End": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Process_p4pfxhq.EndJoin"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "End",
- "outputs": [],
- "typename": "SimpleBpmnTask"
- },
- "Event_05ktmeu": {
- "bpmn_id": "Event_05ktmeu",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default End Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Activity_0q1z4d4"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Event_05ktmeu",
- "outputs": [
- "Process_p4pfxhq.EndJoin"
- ],
- "typename": "EndEvent"
- },
- "Process_p4pfxhq.EndJoin": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Event_05ktmeu"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Process_p4pfxhq.EndJoin",
- "outputs": [
- "End"
- ],
- "typename": "_EndJoin"
- },
- "Start": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Start",
- "outputs": [
- "StartEvent_1"
- ],
- "typename": "BpmnStartTask"
- },
- "StartEvent_1": {
- "bpmn_id": "StartEvent_1",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default Start Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Start"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "StartEvent_1",
- "outputs": [
- "Activity_0q1z4d4"
- ],
- "typename": "StartEvent"
- }
- },
- "typename": "BpmnProcessSpec"
- },
- "subprocess_specs": {
- "SingleTask_Process": {
- "correlation_keys": {},
- "data_objects": {},
- "description": "SingleTask_Process",
- "file": "bpmn/test-cases/single-task/single_task.bpmn",
- "io_specification": null,
- "name": "SingleTask_Process",
- "task_specs": {
- "Activity_1mwbqi4": {
- "bpmn_id": "Activity_1mwbqi4",
- "bpmn_name": "x=1",
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Script Task",
- "documentation": null,
- "extensions": {
- "instructionsForEndUser": "hey man, setting x to 1"
- },
- "inputs": [
- "StartEvent_1"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_1mwbqi4",
- "outputs": [
- "Event_1gsb2u0"
- ],
- "postscript": null,
- "prescript": null,
- "script": "x=1",
- "typename": "ScriptTask"
- },
- "End": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "SingleTask_Process.EndJoin"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "End",
- "outputs": [],
- "typename": "SimpleBpmnTask"
- },
- "Event_1gsb2u0": {
- "bpmn_id": "Event_1gsb2u0",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default End Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Activity_1mwbqi4"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Event_1gsb2u0",
- "outputs": [
- "SingleTask_Process.EndJoin"
- ],
- "typename": "EndEvent"
- },
- "SingleTask_Process.EndJoin": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Event_1gsb2u0"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "SingleTask_Process.EndJoin",
- "outputs": [
- "End"
- ],
- "typename": "_EndJoin"
- },
- "Start": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Start",
- "outputs": [
- "StartEvent_1"
- ],
- "typename": "BpmnStartTask"
- },
- "StartEvent_1": {
- "bpmn_id": "StartEvent_1",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default Start Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Start"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "StartEvent_1",
- "outputs": [
- "Activity_1mwbqi4"
- ],
- "typename": "StartEvent"
- }
- },
- "typename": "BpmnProcessSpec"
- }
- }
-}
\ No newline at end of file
diff --git a/specs/test-cases/simple-gateway/simple-gateway.json b/specs/test-cases/simple-gateway/simple-gateway.json
deleted file mode 100644
index c6f076d..0000000
--- a/specs/test-cases/simple-gateway/simple-gateway.json
+++ /dev/null
@@ -1,261 +0,0 @@
-{
- "serializer_version": "jbirddog/process-models",
- "spec": {
- "correlation_keys": {},
- "data_objects": {},
- "description": "simple_gateway",
- "file": "bpmn/test-cases/simple-gateway/simple-gateway.bpmn",
- "io_specification": null,
- "name": "simple_gateway",
- "task_specs": {
- "Activity_0lvogdb": {
- "bpmn_id": "Activity_0lvogdb",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Manual Task",
- "documentation": null,
- "extensions": {
- "instructionsForEndUser": "This should not have run.",
- "preScript": null
- },
- "inputs": [
- "Gateway_1h9h8qo"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": true,
- "name": "Activity_0lvogdb",
- "outputs": [
- "Gateway_1bumgmi"
- ],
- "postscript": null,
- "prescript": null,
- "typename": "ManualTask"
- },
- "Activity_0myxqrc": {
- "bpmn_id": "Activity_0myxqrc",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Script Task",
- "documentation": null,
- "extensions": {},
- "inputs": [
- "StartEvent_1"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_0myxqrc",
- "outputs": [
- "Gateway_1h9h8qo"
- ],
- "postscript": null,
- "prescript": null,
- "script": "var_to_test = 11",
- "typename": "ScriptTask"
- },
- "Activity_0xo7xir": {
- "bpmn_id": "Activity_0xo7xir",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Script Task",
- "documentation": null,
- "extensions": {},
- "inputs": [
- "Gateway_1h9h8qo"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_0xo7xir",
- "outputs": [
- "Gateway_1bumgmi"
- ],
- "postscript": null,
- "prescript": null,
- "script": "happy_path = 1",
- "typename": "ScriptTask"
- },
- "End": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "simple_gateway.EndJoin"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "End",
- "outputs": [],
- "typename": "SimpleBpmnTask"
- },
- "Event_0rbgfrc": {
- "bpmn_id": "Event_0rbgfrc",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default End Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Gateway_1bumgmi"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Event_0rbgfrc",
- "outputs": [
- "simple_gateway.EndJoin"
- ],
- "typename": "EndEvent"
- },
- "Gateway_1bumgmi": {
- "bpmn_id": "Gateway_1bumgmi",
- "bpmn_name": null,
- "choice": null,
- "cond_task_specs": [
- {
- "condition": null,
- "task_spec": "Event_0rbgfrc"
- }
- ],
- "data_input_associations": [],
- "data_output_associations": [],
- "default_task_spec": "Event_0rbgfrc",
- "description": "Exclusive Gateway",
- "documentation": null,
- "extensions": {},
- "inputs": [
- "Activity_0xo7xir",
- "Activity_0lvogdb"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Gateway_1bumgmi",
- "outputs": [
- "Event_0rbgfrc"
- ],
- "typename": "ExclusiveGateway"
- },
- "Gateway_1h9h8qo": {
- "bpmn_id": "Gateway_1h9h8qo",
- "bpmn_name": null,
- "choice": null,
- "cond_task_specs": [
- {
- "condition": "var_to_test == 11",
- "task_spec": "Activity_0xo7xir"
- },
- {
- "condition": null,
- "task_spec": "Activity_0lvogdb"
- }
- ],
- "data_input_associations": [],
- "data_output_associations": [],
- "default_task_spec": "Activity_0lvogdb",
- "description": "Exclusive Gateway",
- "documentation": null,
- "extensions": {},
- "inputs": [
- "Activity_0myxqrc"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Gateway_1h9h8qo",
- "outputs": [
- "Activity_0xo7xir",
- "Activity_0lvogdb"
- ],
- "typename": "ExclusiveGateway"
- },
- "Start": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Start",
- "outputs": [
- "StartEvent_1"
- ],
- "typename": "BpmnStartTask"
- },
- "StartEvent_1": {
- "bpmn_id": "StartEvent_1",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default Start Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Start"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "StartEvent_1",
- "outputs": [
- "Activity_0myxqrc"
- ],
- "typename": "StartEvent"
- },
- "simple_gateway.EndJoin": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Event_0rbgfrc"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "simple_gateway.EndJoin",
- "outputs": [
- "End"
- ],
- "typename": "_EndJoin"
- }
- },
- "typename": "BpmnProcessSpec"
- },
- "subprocess_specs": {}
-}
\ No newline at end of file
diff --git a/specs/test-cases/simple-subprocess/simple_subprocess.json b/specs/test-cases/simple-subprocess/simple_subprocess.json
deleted file mode 100644
index fbd8133..0000000
--- a/specs/test-cases/simple-subprocess/simple_subprocess.json
+++ /dev/null
@@ -1,291 +0,0 @@
-{
- "serializer_version": "jbirddog/process-models",
- "spec": {
- "correlation_keys": {},
- "data_objects": {},
- "description": "subprocess_process",
- "file": "bpmn/test-cases/simple-subprocess/simple_subprocess.bpmn",
- "io_specification": null,
- "name": "Process_vv0fdgv",
- "task_specs": {
- "Activity_12x6czg": {
- "bpmn_id": "Activity_12x6czg",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Subprocess",
- "documentation": null,
- "extensions": {},
- "inputs": [
- "StartEvent_1"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_12x6czg",
- "outputs": [
- "Event_0lhuova"
- ],
- "postscript": null,
- "prescript": null,
- "spec": "Activity_12x6czg",
- "typename": "SubWorkflowTask"
- },
- "End": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Process_vv0fdgv.EndJoin"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "End",
- "outputs": [],
- "typename": "SimpleBpmnTask"
- },
- "Event_0lhuova": {
- "bpmn_id": "Event_0lhuova",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default End Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Activity_12x6czg"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Event_0lhuova",
- "outputs": [
- "Process_vv0fdgv.EndJoin"
- ],
- "typename": "EndEvent"
- },
- "Process_vv0fdgv.EndJoin": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Event_0lhuova"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Process_vv0fdgv.EndJoin",
- "outputs": [
- "End"
- ],
- "typename": "_EndJoin"
- },
- "Start": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Start",
- "outputs": [
- "StartEvent_1"
- ],
- "typename": "BpmnStartTask"
- },
- "StartEvent_1": {
- "bpmn_id": "StartEvent_1",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default Start Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Start"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "StartEvent_1",
- "outputs": [
- "Activity_12x6czg"
- ],
- "typename": "StartEvent"
- }
- },
- "typename": "BpmnProcessSpec"
- },
- "subprocess_specs": {
- "Activity_12x6czg": {
- "correlation_keys": {},
- "data_objects": {},
- "description": "Activity_12x6czg",
- "file": "bpmn/test-cases/simple-subprocess/simple_subprocess.bpmn",
- "io_specification": null,
- "name": "Activity_12x6czg",
- "task_specs": {
- "Activity_12x6czg.EndJoin": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Event_0ss9ta1"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_12x6czg.EndJoin",
- "outputs": [
- "End"
- ],
- "typename": "_EndJoin"
- },
- "Activity_1qrv734": {
- "bpmn_id": "Activity_1qrv734",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Script Task",
- "documentation": null,
- "extensions": {},
- "inputs": [
- "Event_14kazuf"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_1qrv734",
- "outputs": [
- "Event_0ss9ta1"
- ],
- "postscript": null,
- "prescript": null,
- "script": "x=1",
- "typename": "ScriptTask"
- },
- "End": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Activity_12x6czg.EndJoin"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "End",
- "outputs": [],
- "typename": "SimpleBpmnTask"
- },
- "Event_0ss9ta1": {
- "bpmn_id": "Event_0ss9ta1",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default End Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Activity_1qrv734"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Event_0ss9ta1",
- "outputs": [
- "Activity_12x6czg.EndJoin"
- ],
- "typename": "EndEvent"
- },
- "Event_14kazuf": {
- "bpmn_id": "Event_14kazuf",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default Start Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Start"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Event_14kazuf",
- "outputs": [
- "Activity_1qrv734"
- ],
- "typename": "StartEvent"
- },
- "Start": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Start",
- "outputs": [
- "Event_14kazuf"
- ],
- "typename": "BpmnStartTask"
- }
- },
- "typename": "BpmnProcessSpec"
- }
- }
-}
\ No newline at end of file
diff --git a/specs/test-cases/single-task/single_task.json b/specs/test-cases/single-task/single_task.json
deleted file mode 100644
index d701c6a..0000000
--- a/specs/test-cases/single-task/single_task.json
+++ /dev/null
@@ -1,149 +0,0 @@
-{
- "serializer_version": "jbirddog/process-models",
- "spec": {
- "correlation_keys": {},
- "data_objects": {},
- "description": "SingleTask_Process",
- "file": "bpmn/test-cases/single-task/single_task.bpmn",
- "io_specification": null,
- "name": "SingleTask_Process",
- "task_specs": {
- "Activity_1mwbqi4": {
- "bpmn_id": "Activity_1mwbqi4",
- "bpmn_name": "x=1",
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Script Task",
- "documentation": null,
- "extensions": {
- "instructionsForEndUser": "hey man, setting x to 1"
- },
- "inputs": [
- "StartEvent_1"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_1mwbqi4",
- "outputs": [
- "Event_1gsb2u0"
- ],
- "postscript": null,
- "prescript": null,
- "script": "x=1",
- "typename": "ScriptTask"
- },
- "End": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "SingleTask_Process.EndJoin"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "End",
- "outputs": [],
- "typename": "SimpleBpmnTask"
- },
- "Event_1gsb2u0": {
- "bpmn_id": "Event_1gsb2u0",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default End Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Activity_1mwbqi4"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Event_1gsb2u0",
- "outputs": [
- "SingleTask_Process.EndJoin"
- ],
- "typename": "EndEvent"
- },
- "SingleTask_Process.EndJoin": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Event_1gsb2u0"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "SingleTask_Process.EndJoin",
- "outputs": [
- "End"
- ],
- "typename": "_EndJoin"
- },
- "Start": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Start",
- "outputs": [
- "StartEvent_1"
- ],
- "typename": "BpmnStartTask"
- },
- "StartEvent_1": {
- "bpmn_id": "StartEvent_1",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default Start Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Start"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "StartEvent_1",
- "outputs": [
- "Activity_1mwbqi4"
- ],
- "typename": "StartEvent"
- }
- },
- "typename": "BpmnProcessSpec"
- },
- "subprocess_specs": {}
-}
\ No newline at end of file
diff --git a/specs/test-cases/start-timer1/start-timer1.json b/specs/test-cases/start-timer1/start-timer1.json
deleted file mode 100644
index d385531..0000000
--- a/specs/test-cases/start-timer1/start-timer1.json
+++ /dev/null
@@ -1,148 +0,0 @@
-{
- "serializer_version": "jbirddog/process-models",
- "spec": {
- "correlation_keys": {},
- "data_objects": {},
- "description": "Process_84evfap",
- "file": "bpmn/test-cases/start-timer1/start-timer1.bpmn",
- "io_specification": null,
- "name": "Process_84evfap",
- "task_specs": {
- "Activity_0ni5otr": {
- "bpmn_id": "Activity_0ni5otr",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Script Task",
- "documentation": null,
- "extensions": {},
- "inputs": [
- "StartEvent_1"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Activity_0ni5otr",
- "outputs": [
- "Event_1ybe9ts"
- ],
- "postscript": null,
- "prescript": null,
- "script": "x=11",
- "typename": "ScriptTask"
- },
- "End": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Process_84evfap.EndJoin"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "End",
- "outputs": [],
- "typename": "SimpleBpmnTask"
- },
- "Event_1ybe9ts": {
- "bpmn_id": "Event_1ybe9ts",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Default End Event",
- "documentation": null,
- "event_definition": {
- "description": "Default",
- "name": null,
- "typename": "NoneEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Activity_0ni5otr"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Event_1ybe9ts",
- "outputs": [
- "Process_84evfap.EndJoin"
- ],
- "typename": "EndEvent"
- },
- "Process_84evfap.EndJoin": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [
- "Event_1ybe9ts"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Process_84evfap.EndJoin",
- "outputs": [
- "End"
- ],
- "typename": "_EndJoin"
- },
- "Start": {
- "bpmn_id": null,
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "BPMN Task",
- "documentation": null,
- "inputs": [],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "Start",
- "outputs": [
- "StartEvent_1"
- ],
- "typename": "BpmnStartTask"
- },
- "StartEvent_1": {
- "bpmn_id": "StartEvent_1",
- "bpmn_name": null,
- "data_input_associations": [],
- "data_output_associations": [],
- "description": "Timer Start Event",
- "documentation": null,
- "event_definition": {
- "description": "Timer",
- "expression": "\"PT15S\"",
- "name": "StartEvent_1",
- "typename": "DurationTimerEventDefinition"
- },
- "extensions": {},
- "inputs": [
- "Start"
- ],
- "io_specification": null,
- "lane": null,
- "lookahead": 2,
- "manual": false,
- "name": "StartEvent_1",
- "outputs": [
- "Activity_0ni5otr"
- ],
- "typename": "StartEvent"
- }
- },
- "typename": "BpmnProcessSpec"
- },
- "subprocess_specs": {}
-}
\ No newline at end of file
diff --git a/test.py b/test.py
index 52d0ac3..5d56a57 100644
--- a/test.py
+++ b/test.py
@@ -10,26 +10,20 @@
import io
import json
+import os
import sys
import unittest
-from spiff_arena_common.runner import advance_workflow, specs_from_xml
-
-files_by_process_id = {
- "Process_diu8ta2": "bpmn/test-cases/manual-tasks/manual_tasks.bpmn",
- "Process_1770128055928": "bpmn/test-cases/ut/ut.bpmn",
- "dict_tests": "bpmn/test-cases/dict-tests/dict-tests.bpmn",
- "coin-gecko_simple-price": "bpmn/test-cases/http-v2-connector-test/httpv2.bpmn",
-}
+from collections import namedtuple
-def slurp(file):
- with open(file) as f:
- return f.read()
+from spiff_arena_common.runner import advance_workflow, specs_from_xml
class BpmnTestCase(unittest.TestCase):
- def __init__(self, name, specs):
- self.name = name
+ def __init__(self, file, specs, specs_by_id):
+ self.file = file
self.specs = specs
+ self.specs_by_id = specs_by_id
+ self.state = {}
self.output = ""
self.testsRun = 0
self.wasSuccessful = False
@@ -38,10 +32,7 @@ def __init__(self, name, specs):
def lazy_load(self, ids):
self.specs = json.loads(self.specs)
for id in ids:
- name = files_by_process_id[id]
- specs, err = specs_from_xml([(name, slurp(name))])
- self.assertIsNone(err)
- specs = json.loads(specs)
+ specs = json.loads(self.specs_by_id[id])
subprocess_specs = self.specs["subprocess_specs"]
subprocess_specs[id] = specs["spec"]
subprocess_specs.update(specs["subprocess_specs"])
@@ -49,11 +40,10 @@ def lazy_load(self, ids):
def runTest(self):
iters = 0
- state = {}
while iters < 100:
iters = iters + 1
- r = json.loads(advance_workflow(self.specs, {}, None, "unittest", None))
- state = r["state"]
+ r = json.loads(advance_workflow(self.specs, self.state, None, "unittest", None))
+ self.state = r["state"]
lazy_loads = r.get("lazy_loads")
if not lazy_loads:
break
@@ -85,22 +75,44 @@ def runTest(self):
self.testsRun = result["testsRun"]
self.wasSuccessful = completed and result["wasSuccessful"]
self.assertTrue(self.wasSuccessful)
+
+###
+
+def files_to_parse(dir):
+ for root, dirs, files in os.walk(dir, topdown=True):
+ dirs[:] = [d for d in dirs if not d.startswith(".")]
+ yield from [os.path.join(root, f) for f in files if f.endswith(".bpmn")] # TODO: dmn
+
+def slurp(file):
+ with open(file) as f:
+ return f.read()
+
+Test = namedtuple("Test", ["file", "specs"])
+TestCtx = namedtuple("TestCtx", ["specs", "tests"])
+
+def index(dir):
+ ctx = TestCtx({}, [])
+ for file in files_to_parse(dir):
+ specs, err = specs_from_xml([(file, slurp(file))])
+ assert not err
+ if file.endswith("_test.bpmn"):
+ ctx.tests.append(Test(file, specs))
+ else:
+ d = json.loads(specs)
+ ctx.specs[d["spec"]["name"]] = specs
+ return ctx
+
+###
if __name__ == "__main__":
+ ctx = index(".")
tests = []
- for name in [
- "bpmn/test-cases/dict-tests/test.bpmn",
- "bpmn/test-cases/manual-tasks/test-mt.bpmn",
- "bpmn/test-cases/ut/test.bpmn",
- "bpmn/test-cases/http-v2-connector-test/test_get.bpmn",
- ]:
- specs, err = specs_from_xml([(name, slurp(name))])
- assert not err
- tests.append(BpmnTestCase(name, specs))
+ for t in ctx.tests:
+ tests.append(BpmnTestCase(t.file, t.specs, ctx.specs))
suite = unittest.TestSuite()
suite.addTests(tests)
stream = io.StringIO()
- result = unittest.TextTestRunner(stream=stream).run(suite)
+ result = unittest.TextTestRunner(stream=stream).run(suite)
output = [t.output for t in tests if not t.wasSuccessful and t.output] + [stream.getvalue()]
print(output[0])
sys.exit(not result.wasSuccessful())