@bpmn-ld/bpmn-ld 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +125 -2
- package/contexts/combined.jsonld +3 -0
- package/contexts/core.jsonld +170 -0
- package/contexts/di.jsonld +37 -0
- package/dist/analyze/analyze.d.ts +3 -0
- package/dist/analyze/analyze.js +11 -0
- package/dist/analyze/findings.d.ts +8 -0
- package/dist/analyze/findings.js +1 -0
- package/dist/analyze/report.d.ts +3 -0
- package/dist/analyze/report.js +9 -0
- package/dist/analyze/rules/ad-hoc-completion-condition.d.ts +2 -0
- package/dist/analyze/rules/ad-hoc-completion-condition.js +7 -0
- package/dist/analyze/rules/cannot-reach-end.d.ts +2 -0
- package/dist/analyze/rules/cannot-reach-end.js +28 -0
- package/dist/analyze/rules/compensation-association.d.ts +2 -0
- package/dist/analyze/rules/compensation-association.js +13 -0
- package/dist/analyze/rules/dead-end.d.ts +2 -0
- package/dist/analyze/rules/dead-end.js +13 -0
- package/dist/analyze/rules/end-event.d.ts +2 -0
- package/dist/analyze/rules/end-event.js +8 -0
- package/dist/analyze/rules/error-catch.d.ts +2 -0
- package/dist/analyze/rules/error-catch.js +14 -0
- package/dist/analyze/rules/escalation-catch.d.ts +2 -0
- package/dist/analyze/rules/escalation-catch.js +14 -0
- package/dist/analyze/rules/gateway-cardinality.d.ts +3 -0
- package/dist/analyze/rules/gateway-cardinality.js +17 -0
- package/dist/analyze/rules/index.d.ts +4 -0
- package/dist/analyze/rules/index.js +21 -0
- package/dist/analyze/rules/instantiating-gateway.d.ts +2 -0
- package/dist/analyze/rules/instantiating-gateway.js +14 -0
- package/dist/analyze/rules/non-interrupting-start.d.ts +2 -0
- package/dist/analyze/rules/non-interrupting-start.js +14 -0
- package/dist/analyze/rules/reachability.d.ts +2 -0
- package/dist/analyze/rules/reachability.js +25 -0
- package/dist/analyze/rules/rule.d.ts +7 -0
- package/dist/analyze/rules/rule.js +1 -0
- package/dist/analyze/rules/signal-catch.d.ts +2 -0
- package/dist/analyze/rules/signal-catch.js +12 -0
- package/dist/analyze/rules/split-join-pairing.d.ts +3 -0
- package/dist/analyze/rules/split-join-pairing.js +50 -0
- package/dist/analyze/rules/start-event.d.ts +2 -0
- package/dist/analyze/rules/start-event.js +8 -0
- package/dist/analyze/rules/task-message-flow.d.ts +2 -0
- package/dist/analyze/rules/task-message-flow.js +19 -0
- package/dist/analyze/scope-graph.d.ts +56 -0
- package/dist/analyze/scope-graph.js +89 -0
- package/dist/analyze-cli.d.ts +1 -0
- package/dist/analyze-cli.js +5 -0
- package/dist/analyze-run.d.ts +12 -0
- package/dist/analyze-run.js +85 -0
- package/dist/bpmn-ld-cli.d.ts +2 -0
- package/dist/bpmn-ld-cli.js +97 -0
- package/dist/build-cli.d.ts +1 -0
- package/dist/build-cli.js +2 -0
- package/dist/build.d.ts +3 -0
- package/dist/build.js +38 -0
- package/dist/cheat-sheet-catalog.d.ts +10 -0
- package/dist/cheat-sheet-catalog.js +72 -0
- package/dist/cheat-sheet-cli.d.ts +1 -0
- package/dist/cheat-sheet-cli.js +7 -0
- package/dist/cheat-sheet-compose.d.ts +13 -0
- package/dist/cheat-sheet-compose.js +107 -0
- package/dist/cheat-sheet-run.d.ts +11 -0
- package/dist/cheat-sheet-run.js +65 -0
- package/dist/cheat-sheet-svg.d.ts +2 -0
- package/dist/cheat-sheet-svg.js +2 -0
- package/dist/cheat-sheet.d.ts +2 -0
- package/dist/cheat-sheet.js +2 -0
- package/dist/check-xml/check.d.ts +3 -0
- package/dist/check-xml/check.js +11 -0
- package/dist/check-xml/lint.d.ts +2 -0
- package/dist/check-xml/lint.js +47 -0
- package/dist/check-xml/moddle.d.ts +6 -0
- package/dist/check-xml/moddle.js +23 -0
- package/dist/check-xml/types.d.ts +20 -0
- package/dist/check-xml/types.js +1 -0
- package/dist/check-xml/xsd.d.ts +2 -0
- package/dist/check-xml/xsd.js +25 -0
- package/dist/check-xml-cli.d.ts +1 -0
- package/dist/check-xml-cli.js +5 -0
- package/dist/check-xml-run.d.ts +10 -0
- package/dist/check-xml-run.js +77 -0
- package/dist/convert/analyze-output.d.ts +3 -0
- package/dist/convert/analyze-output.js +8 -0
- package/dist/convert/convert.d.ts +19 -0
- package/dist/convert/convert.js +96 -0
- package/dist/convert/errors.d.ts +5 -0
- package/dist/convert/errors.js +8 -0
- package/dist/convert/extensions.d.ts +23 -0
- package/dist/convert/extensions.js +103 -0
- package/dist/convert/mapping-check.d.ts +15 -0
- package/dist/convert/mapping-check.js +66 -0
- package/dist/convert/mapping.d.ts +52 -0
- package/dist/convert/mapping.js +273 -0
- package/dist/convert/namespaces.d.ts +2 -0
- package/dist/convert/namespaces.js +19 -0
- package/dist/convert/validate-output.d.ts +2 -0
- package/dist/convert/validate-output.js +28 -0
- package/dist/convert/warnings.d.ts +9 -0
- package/dist/convert/warnings.js +67 -0
- package/dist/convert/xml-reader.d.ts +11 -0
- package/dist/convert/xml-reader.js +84 -0
- package/dist/convert-cli.d.ts +1 -0
- package/dist/convert-cli.js +5 -0
- package/dist/convert-run.d.ts +10 -0
- package/dist/convert-run.js +125 -0
- package/dist/coverage-cli.d.ts +1 -0
- package/dist/coverage-cli.js +8 -0
- package/dist/coverage-mappings.d.ts +3 -0
- package/dist/coverage-mappings.js +34 -0
- package/dist/coverage-scope.d.ts +11 -0
- package/dist/coverage-scope.js +187 -0
- package/dist/coverage-xsd.d.ts +15 -0
- package/dist/coverage-xsd.js +55 -0
- package/dist/coverage.d.ts +35 -0
- package/dist/coverage.js +152 -0
- package/dist/docs-cli.d.ts +1 -0
- package/dist/docs-cli.js +18 -0
- package/dist/docs.d.ts +8 -0
- package/dist/docs.js +136 -0
- package/dist/eval/checks.d.ts +19 -0
- package/dist/eval/checks.js +252 -0
- package/dist/eval/regenerate.d.ts +10 -0
- package/dist/eval/regenerate.js +48 -0
- package/dist/eval-regenerate-cli.d.ts +1 -0
- package/dist/eval-regenerate-cli.js +16 -0
- package/dist/export/data.d.ts +10 -0
- package/dist/export/data.js +127 -0
- package/dist/export/diagram.d.ts +8 -0
- package/dist/export/diagram.js +112 -0
- package/dist/export/element.d.ts +27 -0
- package/dist/export/element.js +175 -0
- package/dist/export/export.d.ts +22 -0
- package/dist/export/export.js +124 -0
- package/dist/export/extensions.d.ts +18 -0
- package/dist/export/extensions.js +122 -0
- package/dist/export/layout-export.d.ts +4 -0
- package/dist/export/layout-export.js +25 -0
- package/dist/export/mapping-check.d.ts +39 -0
- package/dist/export/mapping-check.js +175 -0
- package/dist/export/normalize.d.ts +3 -0
- package/dist/export/normalize.js +67 -0
- package/dist/export-cli.d.ts +1 -0
- package/dist/export-cli.js +5 -0
- package/dist/export-run.d.ts +10 -0
- package/dist/export-run.js +157 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +10 -0
- package/dist/install-skill-run.d.ts +8 -0
- package/dist/install-skill-run.js +30 -0
- package/dist/install-skill.d.ts +23 -0
- package/dist/install-skill.js +76 -0
- package/dist/layout/collaboration.d.ts +36 -0
- package/dist/layout/collaboration.js +152 -0
- package/dist/layout/di.d.ts +15 -0
- package/dist/layout/di.js +52 -0
- package/dist/layout/extract.d.ts +2 -0
- package/dist/layout/extract.js +99 -0
- package/dist/layout/lanes.d.ts +30 -0
- package/dist/layout/lanes.js +112 -0
- package/dist/layout/layering.d.ts +7 -0
- package/dist/layout/layering.js +53 -0
- package/dist/layout/layout.d.ts +12 -0
- package/dist/layout/layout.js +299 -0
- package/dist/layout/model.d.ts +52 -0
- package/dist/layout/model.js +10 -0
- package/dist/layout/placement.d.ts +25 -0
- package/dist/layout/placement.js +256 -0
- package/dist/layout/standalone.d.ts +8 -0
- package/dist/layout/standalone.js +50 -0
- package/dist/layout-cli.d.ts +1 -0
- package/dist/layout-cli.js +5 -0
- package/dist/layout-run.d.ts +9 -0
- package/dist/layout-run.js +105 -0
- package/dist/loader.d.ts +5 -0
- package/dist/loader.js +7 -0
- package/dist/namespace.d.ts +5 -0
- package/dist/namespace.js +5 -0
- package/dist/ontology.d.ts +19 -0
- package/dist/ontology.js +94 -0
- package/dist/paths.d.ts +1 -0
- package/dist/paths.js +2 -0
- package/dist/render/geometry.d.ts +40 -0
- package/dist/render/geometry.js +81 -0
- package/dist/render/renderer.d.ts +31 -0
- package/dist/render/renderer.js +369 -0
- package/dist/render/symbols.d.ts +10 -0
- package/dist/render/symbols.js +26 -0
- package/dist/render/text.d.ts +20 -0
- package/dist/render/text.js +28 -0
- package/dist/render-cli.d.ts +1 -0
- package/dist/render-cli.js +7 -0
- package/dist/render-run.d.ts +9 -0
- package/dist/render-run.js +161 -0
- package/dist/render.d.ts +4 -0
- package/dist/render.js +4 -0
- package/dist/schema-overrides.d.ts +14 -0
- package/dist/schema-overrides.js +36 -0
- package/dist/schema-validate.d.ts +5 -0
- package/dist/schema-validate.js +8 -0
- package/dist/schema.d.ts +6 -0
- package/dist/schema.js +114 -0
- package/dist/shacl.d.ts +15 -0
- package/dist/shacl.js +37 -0
- package/dist/validate-cli.d.ts +1 -0
- package/dist/validate-cli.js +5 -0
- package/dist/validate-run.d.ts +8 -0
- package/dist/validate-run.js +58 -0
- package/dist/validate.d.ts +11 -0
- package/dist/validate.js +94 -0
- package/dist/versioning-cli.d.ts +1 -0
- package/dist/versioning-cli.js +18 -0
- package/dist/versioning.d.ts +17 -0
- package/dist/versioning.js +45 -0
- package/ontology/core.ttl +993 -0
- package/ontology/di.ttl +167 -0
- package/package.json +77 -4
- package/reference/bpmn-xsd/BPMN20.xsd +37 -0
- package/reference/bpmn-xsd/BPMNDI.xsd +100 -0
- package/reference/bpmn-xsd/DC.xsd +29 -0
- package/reference/bpmn-xsd/DI.xsd +100 -0
- package/reference/bpmn-xsd/Semantic.xsd +1562 -0
- package/reference/rospocher/ATTRIBUTION.md +22 -0
- package/reference/rospocher/BPMNOntology.owl +8937 -0
- package/reference/rospocher-verified.json +221 -0
- package/schema/bpmn-ld.schema.json +15230 -0
- package/shapes/core.shapes.ttl +398 -0
- package/skills/bpmn-ld/SKILL.md +154 -0
- package/skills/bpmn-ld/evals/models/order-approval-di.jsonld +296 -0
- package/skills/bpmn-ld/evals/models/refund-di.bpmn +82 -0
- package/skills/bpmn-ld/evals/models/refund.bpmn +18 -0
- package/skills/bpmn-ld/evals/outputs/explain-collaboration.md +22 -0
- package/skills/bpmn-ld/evals/outputs/explain-order-approval.md +24 -0
- package/skills/bpmn-ld/evals/outputs/explain-refund.md +17 -0
- package/skills/bpmn-ld/evals/outputs/generate-activity-compensation.jsonld +39 -0
- package/skills/bpmn-ld/evals/outputs/generate-ad-hoc-sub-process.jsonld +52 -0
- package/skills/bpmn-ld/evals/outputs/generate-boundary-event.jsonld +27 -0
- package/skills/bpmn-ld/evals/outputs/generate-collaboration.jsonld +49 -0
- package/skills/bpmn-ld/evals/outputs/generate-conditions.jsonld +93 -0
- package/skills/bpmn-ld/evals/outputs/generate-diagram-properties.jsonld +340 -0
- package/skills/bpmn-ld/evals/outputs/generate-error.jsonld +217 -0
- package/skills/bpmn-ld/evals/outputs/generate-escalation.jsonld +231 -0
- package/skills/bpmn-ld/evals/outputs/generate-event-definition-ref.jsonld +67 -0
- package/skills/bpmn-ld/evals/outputs/generate-event-sub-process.jsonld +54 -0
- package/skills/bpmn-ld/evals/outputs/generate-exclusive-choice.jsonld +32 -0
- package/skills/bpmn-ld/evals/outputs/generate-instantiating-gateway.jsonld +24 -0
- package/skills/bpmn-ld/evals/outputs/generate-lane-partition.jsonld +46 -0
- package/skills/bpmn-ld/evals/outputs/generate-link-event.expect.json +11 -0
- package/skills/bpmn-ld/evals/outputs/generate-link-event.jsonld +57 -0
- package/skills/bpmn-ld/evals/outputs/generate-loop.jsonld +30 -0
- package/skills/bpmn-ld/evals/outputs/generate-message.jsonld +61 -0
- package/skills/bpmn-ld/evals/outputs/generate-parallel-branches.jsonld +25 -0
- package/skills/bpmn-ld/evals/outputs/generate-process-attributes.jsonld +49 -0
- package/skills/bpmn-ld/evals/outputs/generate-script-task.jsonld +18 -0
- package/skills/bpmn-ld/evals/outputs/generate-signal.jsonld +178 -0
- package/skills/bpmn-ld/evals/outputs/generate-sub-process.jsonld +31 -0
- package/skills/bpmn-ld/evals/outputs/generate-targeted-compensation.jsonld +40 -0
- package/skills/bpmn-ld/evals/outputs/generate-task-implementation.jsonld +18 -0
- package/skills/bpmn-ld/evals/outputs/generate-task-message-references.jsonld +49 -0
- package/skills/bpmn-ld/evals/outputs/generate-transaction.jsonld +48 -0
- package/skills/bpmn-ld/evals/outputs/modify-order-approval.jsonld +376 -0
- package/skills/bpmn-ld/evals/outputs/modify-refund.jsonld +373 -0
- package/skills/bpmn-ld/evals/outputs/order-approval.jsonld +29 -0
- package/skills/bpmn-ld/evals/outputs/refine-order-approval.jsonld +377 -0
- package/skills/bpmn-ld/evals/prompts/explain-collaboration.md +3 -0
- package/skills/bpmn-ld/evals/prompts/explain-order-approval.md +3 -0
- package/skills/bpmn-ld/evals/prompts/explain-refund.md +3 -0
- package/skills/bpmn-ld/evals/prompts/generate-activity-compensation.md +1 -0
- package/skills/bpmn-ld/evals/prompts/generate-ad-hoc-sub-process.md +1 -0
- package/skills/bpmn-ld/evals/prompts/generate-boundary-event.md +1 -0
- package/skills/bpmn-ld/evals/prompts/generate-collaboration.md +1 -0
- package/skills/bpmn-ld/evals/prompts/generate-conditions.md +1 -0
- package/skills/bpmn-ld/evals/prompts/generate-diagram-properties.md +1 -0
- package/skills/bpmn-ld/evals/prompts/generate-error.md +1 -0
- package/skills/bpmn-ld/evals/prompts/generate-escalation.md +1 -0
- package/skills/bpmn-ld/evals/prompts/generate-event-definition-ref.md +1 -0
- package/skills/bpmn-ld/evals/prompts/generate-event-sub-process.md +1 -0
- package/skills/bpmn-ld/evals/prompts/generate-exclusive-choice.md +1 -0
- package/skills/bpmn-ld/evals/prompts/generate-instantiating-gateway.md +1 -0
- package/skills/bpmn-ld/evals/prompts/generate-lane-partition.md +1 -0
- package/skills/bpmn-ld/evals/prompts/generate-link-event.md +1 -0
- package/skills/bpmn-ld/evals/prompts/generate-loop.md +1 -0
- package/skills/bpmn-ld/evals/prompts/generate-message.md +1 -0
- package/skills/bpmn-ld/evals/prompts/generate-parallel-branches.md +1 -0
- package/skills/bpmn-ld/evals/prompts/generate-process-attributes.md +1 -0
- package/skills/bpmn-ld/evals/prompts/generate-script-task.md +1 -0
- package/skills/bpmn-ld/evals/prompts/generate-signal.md +1 -0
- package/skills/bpmn-ld/evals/prompts/generate-sub-process.md +1 -0
- package/skills/bpmn-ld/evals/prompts/generate-targeted-compensation.md +1 -0
- package/skills/bpmn-ld/evals/prompts/generate-task-implementation.md +1 -0
- package/skills/bpmn-ld/evals/prompts/generate-task-message-references.md +1 -0
- package/skills/bpmn-ld/evals/prompts/generate-transaction.md +1 -0
- package/skills/bpmn-ld/evals/prompts/modify-order-approval.md +4 -0
- package/skills/bpmn-ld/evals/prompts/modify-refund.md +4 -0
- package/skills/bpmn-ld/evals/prompts/order-approval.md +1 -0
- package/skills/bpmn-ld/evals/prompts/refine-order-approval.md +8 -0
- package/skills/bpmn-ld/examples/positive/activity-compensation.jsonld +39 -0
- package/skills/bpmn-ld/examples/positive/ad-hoc-sub-process.jsonld +52 -0
- package/skills/bpmn-ld/examples/positive/boundary-event.jsonld +27 -0
- package/skills/bpmn-ld/examples/positive/collaboration.jsonld +49 -0
- package/skills/bpmn-ld/examples/positive/conditions.jsonld +93 -0
- package/skills/bpmn-ld/examples/positive/diagram-properties.jsonld +340 -0
- package/skills/bpmn-ld/examples/positive/error.jsonld +208 -0
- package/skills/bpmn-ld/examples/positive/escalation.jsonld +231 -0
- package/skills/bpmn-ld/examples/positive/event-definition-ref.jsonld +142 -0
- package/skills/bpmn-ld/examples/positive/event-sub-process.jsonld +54 -0
- package/skills/bpmn-ld/examples/positive/exclusive-choice.jsonld +32 -0
- package/skills/bpmn-ld/examples/positive/instantiating-gateway.jsonld +24 -0
- package/skills/bpmn-ld/examples/positive/lane-partition.jsonld +46 -0
- package/skills/bpmn-ld/examples/positive/link-event.expect.json +10 -0
- package/skills/bpmn-ld/examples/positive/link-event.jsonld +138 -0
- package/skills/bpmn-ld/examples/positive/loop.jsonld +30 -0
- package/skills/bpmn-ld/examples/positive/message.jsonld +60 -0
- package/skills/bpmn-ld/examples/positive/order-approval.jsonld +29 -0
- package/skills/bpmn-ld/examples/positive/parallel-branches.jsonld +25 -0
- package/skills/bpmn-ld/examples/positive/process-attributes.jsonld +49 -0
- package/skills/bpmn-ld/examples/positive/script-task.jsonld +18 -0
- package/skills/bpmn-ld/examples/positive/signal.jsonld +150 -0
- package/skills/bpmn-ld/examples/positive/sub-process.jsonld +31 -0
- package/skills/bpmn-ld/examples/positive/targeted-compensation.jsonld +40 -0
- package/skills/bpmn-ld/examples/positive/task-implementation.jsonld +18 -0
- package/skills/bpmn-ld/examples/positive/task-message-references.jsonld +151 -0
- package/skills/bpmn-ld/examples/positive/transaction.jsonld +48 -0
- package/skills/bpmn-ld/references/clarification-and-refinement.md +60 -0
- package/skills/bpmn-ld/references/common-mistakes.md +110 -0
- package/skills/bpmn-ld/references/explain-and-document.md +36 -0
- package/skills/bpmn-ld/references/modify-existing-model.md +49 -0
- package/skills/bpmn-ld/references/patterns.md +292 -0
- package/skills/bpmn-ld/references/render-output.md +1 -0
- package/skills/bpmn-ld/references/rule-catalogue.md +183 -0
- package/skills/bpmn-ld/references/vocabulary-summary.md +65 -0
- package/skills/bpmn-ld/template.jsonld +14 -0
- package/templates/combined.jsonld +3 -0
- package/templates/core.jsonld +170 -0
- package/templates/core.shapes.ttl +398 -0
- package/templates/core.ttl +993 -0
- package/templates/di.jsonld +37 -0
- package/templates/di.ttl +167 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"../../../../contexts/core.jsonld",
|
|
4
|
+
{ "@base": "https://example.org/models/collaboration/" }
|
|
5
|
+
],
|
|
6
|
+
"@graph": [
|
|
7
|
+
{
|
|
8
|
+
"id": "Collaboration_Ordering",
|
|
9
|
+
"type": "Collaboration",
|
|
10
|
+
"name": "Ordering",
|
|
11
|
+
"participants": [
|
|
12
|
+
{ "id": "Participant_Customer", "type": "Participant", "name": "Customer", "processRef": "Process_Customer" },
|
|
13
|
+
{ "id": "Participant_Shop", "type": "Participant", "name": "Shop", "processRef": "Process_Shop" }
|
|
14
|
+
],
|
|
15
|
+
"messageFlows": [
|
|
16
|
+
{ "id": "MessageFlow_Order", "type": "MessageFlow", "name": "Order", "sourceRef": "SendTask_PlaceOrder", "targetRef": "StartEvent_OrderReceived" },
|
|
17
|
+
{ "id": "MessageFlow_Confirmation", "type": "MessageFlow", "name": "Confirmation", "sourceRef": "SendTask_Confirm", "targetRef": "ReceiveTask_AwaitConfirmation" }
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"id": "Process_Customer",
|
|
22
|
+
"type": "Process",
|
|
23
|
+
"name": "Customer",
|
|
24
|
+
"flowElements": [
|
|
25
|
+
{ "id": "StartEvent_Wants", "type": "StartEvent", "name": "Needs product" },
|
|
26
|
+
{ "id": "SendTask_PlaceOrder", "type": "SendTask", "name": "Place order" },
|
|
27
|
+
{ "id": "ReceiveTask_AwaitConfirmation", "type": "ReceiveTask", "name": "Receive confirmation" },
|
|
28
|
+
{ "id": "EndEvent_Confirmed", "type": "EndEvent", "name": "Order confirmed" },
|
|
29
|
+
{ "id": "Flow_Wants", "type": "SequenceFlow", "sourceRef": "StartEvent_Wants", "targetRef": "SendTask_PlaceOrder" },
|
|
30
|
+
{ "id": "Flow_Placed", "type": "SequenceFlow", "sourceRef": "SendTask_PlaceOrder", "targetRef": "ReceiveTask_AwaitConfirmation" },
|
|
31
|
+
{ "id": "Flow_Received", "type": "SequenceFlow", "sourceRef": "ReceiveTask_AwaitConfirmation", "targetRef": "EndEvent_Confirmed" }
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"id": "Process_Shop",
|
|
36
|
+
"type": "Process",
|
|
37
|
+
"name": "Shop",
|
|
38
|
+
"flowElements": [
|
|
39
|
+
{ "id": "StartEvent_OrderReceived", "type": "StartEvent", "name": "Order received", "eventDefinitions": [{ "type": "MessageEventDefinition" }] },
|
|
40
|
+
{ "id": "Task_PrepareOrder", "type": "UserTask", "name": "Prepare order" },
|
|
41
|
+
{ "id": "SendTask_Confirm", "type": "SendTask", "name": "Send confirmation" },
|
|
42
|
+
{ "id": "EndEvent_Done", "type": "EndEvent", "name": "Order handled" },
|
|
43
|
+
{ "id": "Flow_OrderReceived", "type": "SequenceFlow", "sourceRef": "StartEvent_OrderReceived", "targetRef": "Task_PrepareOrder" },
|
|
44
|
+
{ "id": "Flow_Prepared", "type": "SequenceFlow", "sourceRef": "Task_PrepareOrder", "targetRef": "SendTask_Confirm" },
|
|
45
|
+
{ "id": "Flow_Confirmed", "type": "SequenceFlow", "sourceRef": "SendTask_Confirm", "targetRef": "EndEvent_Done" }
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"../../../../contexts/core.jsonld",
|
|
4
|
+
{
|
|
5
|
+
"@base": "https://example.org/models/conditions/"
|
|
6
|
+
}
|
|
7
|
+
],
|
|
8
|
+
"@graph": [
|
|
9
|
+
{
|
|
10
|
+
"id": "Process_Intake",
|
|
11
|
+
"type": "Process",
|
|
12
|
+
"name": "Application intake",
|
|
13
|
+
"flowElements": [
|
|
14
|
+
{
|
|
15
|
+
"id": "ApplicationSubmitted",
|
|
16
|
+
"type": "StartEvent",
|
|
17
|
+
"name": "Application submitted"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"id": "CheckIncome",
|
|
21
|
+
"type": "UserTask",
|
|
22
|
+
"name": "Check income"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"id": "AwaitLimit",
|
|
26
|
+
"type": "IntermediateCatchEvent",
|
|
27
|
+
"name": "Credit limit approved",
|
|
28
|
+
"eventDefinitions": [
|
|
29
|
+
{
|
|
30
|
+
"id": "LimitApprovedCondition",
|
|
31
|
+
"type": "ConditionalEventDefinition",
|
|
32
|
+
"condition": {
|
|
33
|
+
"type": "FormalExpression",
|
|
34
|
+
"language": "https://www.w3.org/TR/xpath20/",
|
|
35
|
+
"body": "applicant/creditLimit > 0"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": "WithdrawnWhileChecking",
|
|
42
|
+
"type": "BoundaryEvent",
|
|
43
|
+
"name": "Application withdrawn",
|
|
44
|
+
"attachedToRef": "CheckIncome",
|
|
45
|
+
"eventDefinitions": [
|
|
46
|
+
{
|
|
47
|
+
"id": "WithdrawnCondition",
|
|
48
|
+
"type": "ConditionalEventDefinition",
|
|
49
|
+
"condition": {
|
|
50
|
+
"type": "FormalExpression",
|
|
51
|
+
"body": "application/withdrawn"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"id": "ApplicationAccepted",
|
|
58
|
+
"type": "EndEvent",
|
|
59
|
+
"name": "Application accepted"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"id": "ApplicationDropped",
|
|
63
|
+
"type": "EndEvent",
|
|
64
|
+
"name": "Application dropped"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"id": "Flow_1",
|
|
68
|
+
"type": "SequenceFlow",
|
|
69
|
+
"sourceRef": "ApplicationSubmitted",
|
|
70
|
+
"targetRef": "CheckIncome"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "Flow_2",
|
|
74
|
+
"type": "SequenceFlow",
|
|
75
|
+
"sourceRef": "CheckIncome",
|
|
76
|
+
"targetRef": "AwaitLimit"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"id": "Flow_3",
|
|
80
|
+
"type": "SequenceFlow",
|
|
81
|
+
"sourceRef": "AwaitLimit",
|
|
82
|
+
"targetRef": "ApplicationAccepted"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"id": "Flow_4",
|
|
86
|
+
"type": "SequenceFlow",
|
|
87
|
+
"sourceRef": "WithdrawnWhileChecking",
|
|
88
|
+
"targetRef": "ApplicationDropped"
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
}
|
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"../../../../contexts/core.jsonld",
|
|
4
|
+
"../../../../contexts/di.jsonld",
|
|
5
|
+
{
|
|
6
|
+
"@base": "https://example.org/models/diagram-properties/"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"@graph": [
|
|
10
|
+
{
|
|
11
|
+
"id": "Collaboration_1",
|
|
12
|
+
"type": "Collaboration",
|
|
13
|
+
"participants": [
|
|
14
|
+
{
|
|
15
|
+
"id": "Participant_Customer",
|
|
16
|
+
"type": "Participant",
|
|
17
|
+
"name": "Customer",
|
|
18
|
+
"processRef": "Process_Customer"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"id": "Participant_Shop",
|
|
22
|
+
"type": "Participant",
|
|
23
|
+
"name": "Shop",
|
|
24
|
+
"processRef": "Process_Shop"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"messageFlows": [
|
|
28
|
+
{
|
|
29
|
+
"id": "MessageFlow_Order",
|
|
30
|
+
"type": "MessageFlow",
|
|
31
|
+
"name": "Order",
|
|
32
|
+
"sourceRef": "SendOrder",
|
|
33
|
+
"targetRef": "ReceiveOrder"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": "MessageFlow_Confirmation",
|
|
37
|
+
"type": "MessageFlow",
|
|
38
|
+
"name": "Confirmation",
|
|
39
|
+
"sourceRef": "Participant_Shop",
|
|
40
|
+
"targetRef": "Participant_Customer"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"id": "Process_Customer",
|
|
46
|
+
"type": "Process",
|
|
47
|
+
"name": "Customer process",
|
|
48
|
+
"flowElements": [
|
|
49
|
+
{
|
|
50
|
+
"id": "CustomerStart",
|
|
51
|
+
"type": "StartEvent",
|
|
52
|
+
"name": "Needs goods"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"id": "SendOrder",
|
|
56
|
+
"type": "SendTask",
|
|
57
|
+
"name": "Send order"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"id": "CustomerEnd",
|
|
61
|
+
"type": "EndEvent",
|
|
62
|
+
"name": "Goods ordered"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"id": "CustomerFlow_1",
|
|
66
|
+
"type": "SequenceFlow",
|
|
67
|
+
"sourceRef": "CustomerStart",
|
|
68
|
+
"targetRef": "SendOrder"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"id": "CustomerFlow_2",
|
|
72
|
+
"type": "SequenceFlow",
|
|
73
|
+
"sourceRef": "SendOrder",
|
|
74
|
+
"targetRef": "CustomerEnd"
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"id": "Process_Shop",
|
|
80
|
+
"type": "Process",
|
|
81
|
+
"name": "Shop process",
|
|
82
|
+
"flowElements": [
|
|
83
|
+
{
|
|
84
|
+
"id": "ShopStart",
|
|
85
|
+
"type": "StartEvent",
|
|
86
|
+
"name": "Shop open"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"id": "ReceiveOrder",
|
|
90
|
+
"type": "ReceiveTask",
|
|
91
|
+
"name": "Receive order"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"id": "ShopEnd",
|
|
95
|
+
"type": "EndEvent",
|
|
96
|
+
"name": "Order accepted"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"id": "ShopFlow_1",
|
|
100
|
+
"type": "SequenceFlow",
|
|
101
|
+
"sourceRef": "ShopStart",
|
|
102
|
+
"targetRef": "ReceiveOrder"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"id": "ShopFlow_2",
|
|
106
|
+
"type": "SequenceFlow",
|
|
107
|
+
"sourceRef": "ReceiveOrder",
|
|
108
|
+
"targetRef": "ShopEnd"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"id": "Diagram_Collaboration_1",
|
|
114
|
+
"type": "BPMNDiagram",
|
|
115
|
+
"name": "Order exchange",
|
|
116
|
+
"resolution": 96,
|
|
117
|
+
"plane": {
|
|
118
|
+
"id": "Plane_Collaboration_1",
|
|
119
|
+
"type": "BPMNPlane",
|
|
120
|
+
"bpmnElement": "Collaboration_1",
|
|
121
|
+
"planeElements": [
|
|
122
|
+
{
|
|
123
|
+
"id": "Shape_Participant_Customer",
|
|
124
|
+
"type": "BPMNShape",
|
|
125
|
+
"bpmnElement": "Participant_Customer",
|
|
126
|
+
"isHorizontal": true,
|
|
127
|
+
"bounds": {
|
|
128
|
+
"type": "Bounds",
|
|
129
|
+
"x": 100,
|
|
130
|
+
"y": 100,
|
|
131
|
+
"width": 362,
|
|
132
|
+
"height": 120
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"id": "Shape_CustomerStart",
|
|
137
|
+
"type": "BPMNShape",
|
|
138
|
+
"bpmnElement": "CustomerStart",
|
|
139
|
+
"bounds": {
|
|
140
|
+
"type": "Bounds",
|
|
141
|
+
"x": 150,
|
|
142
|
+
"y": 142,
|
|
143
|
+
"width": 36,
|
|
144
|
+
"height": 36
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"id": "Shape_SendOrder",
|
|
149
|
+
"type": "BPMNShape",
|
|
150
|
+
"bpmnElement": "SendOrder",
|
|
151
|
+
"bounds": {
|
|
152
|
+
"type": "Bounds",
|
|
153
|
+
"x": 246,
|
|
154
|
+
"y": 120,
|
|
155
|
+
"width": 100,
|
|
156
|
+
"height": 80
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"id": "Shape_CustomerEnd",
|
|
161
|
+
"type": "BPMNShape",
|
|
162
|
+
"bpmnElement": "CustomerEnd",
|
|
163
|
+
"bounds": {
|
|
164
|
+
"type": "Bounds",
|
|
165
|
+
"x": 406,
|
|
166
|
+
"y": 142,
|
|
167
|
+
"width": 36,
|
|
168
|
+
"height": 36
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"id": "Shape_Participant_Shop",
|
|
173
|
+
"type": "BPMNShape",
|
|
174
|
+
"bpmnElement": "Participant_Shop",
|
|
175
|
+
"isHorizontal": true,
|
|
176
|
+
"bounds": {
|
|
177
|
+
"type": "Bounds",
|
|
178
|
+
"x": 100,
|
|
179
|
+
"y": 270,
|
|
180
|
+
"width": 362,
|
|
181
|
+
"height": 120
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"id": "Shape_ShopStart",
|
|
186
|
+
"type": "BPMNShape",
|
|
187
|
+
"bpmnElement": "ShopStart",
|
|
188
|
+
"bounds": {
|
|
189
|
+
"type": "Bounds",
|
|
190
|
+
"x": 150,
|
|
191
|
+
"y": 312,
|
|
192
|
+
"width": 36,
|
|
193
|
+
"height": 36
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"id": "Shape_ReceiveOrder",
|
|
198
|
+
"type": "BPMNShape",
|
|
199
|
+
"bpmnElement": "ReceiveOrder",
|
|
200
|
+
"bounds": {
|
|
201
|
+
"type": "Bounds",
|
|
202
|
+
"x": 246,
|
|
203
|
+
"y": 290,
|
|
204
|
+
"width": 100,
|
|
205
|
+
"height": 80
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"id": "Shape_ShopEnd",
|
|
210
|
+
"type": "BPMNShape",
|
|
211
|
+
"bpmnElement": "ShopEnd",
|
|
212
|
+
"bounds": {
|
|
213
|
+
"type": "Bounds",
|
|
214
|
+
"x": 406,
|
|
215
|
+
"y": 312,
|
|
216
|
+
"width": 36,
|
|
217
|
+
"height": 36
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"id": "Edge_CustomerFlow_1",
|
|
222
|
+
"type": "BPMNEdge",
|
|
223
|
+
"bpmnElement": "CustomerFlow_1",
|
|
224
|
+
"sourceElement": "Shape_CustomerStart",
|
|
225
|
+
"targetElement": "Shape_SendOrder",
|
|
226
|
+
"waypoints": [
|
|
227
|
+
{
|
|
228
|
+
"type": "Point",
|
|
229
|
+
"x": 186,
|
|
230
|
+
"y": 160
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"type": "Point",
|
|
234
|
+
"x": 246,
|
|
235
|
+
"y": 160
|
|
236
|
+
}
|
|
237
|
+
]
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"id": "Edge_CustomerFlow_2",
|
|
241
|
+
"type": "BPMNEdge",
|
|
242
|
+
"bpmnElement": "CustomerFlow_2",
|
|
243
|
+
"sourceElement": "Shape_SendOrder",
|
|
244
|
+
"targetElement": "Shape_CustomerEnd",
|
|
245
|
+
"waypoints": [
|
|
246
|
+
{
|
|
247
|
+
"type": "Point",
|
|
248
|
+
"x": 346,
|
|
249
|
+
"y": 160
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"type": "Point",
|
|
253
|
+
"x": 406,
|
|
254
|
+
"y": 160
|
|
255
|
+
}
|
|
256
|
+
]
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"id": "Edge_ShopFlow_1",
|
|
260
|
+
"type": "BPMNEdge",
|
|
261
|
+
"bpmnElement": "ShopFlow_1",
|
|
262
|
+
"sourceElement": "Shape_ShopStart",
|
|
263
|
+
"targetElement": "Shape_ReceiveOrder",
|
|
264
|
+
"waypoints": [
|
|
265
|
+
{
|
|
266
|
+
"type": "Point",
|
|
267
|
+
"x": 186,
|
|
268
|
+
"y": 330
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"type": "Point",
|
|
272
|
+
"x": 246,
|
|
273
|
+
"y": 330
|
|
274
|
+
}
|
|
275
|
+
]
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"id": "Edge_ShopFlow_2",
|
|
279
|
+
"type": "BPMNEdge",
|
|
280
|
+
"bpmnElement": "ShopFlow_2",
|
|
281
|
+
"sourceElement": "Shape_ReceiveOrder",
|
|
282
|
+
"targetElement": "Shape_ShopEnd",
|
|
283
|
+
"waypoints": [
|
|
284
|
+
{
|
|
285
|
+
"type": "Point",
|
|
286
|
+
"x": 346,
|
|
287
|
+
"y": 330
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"type": "Point",
|
|
291
|
+
"x": 406,
|
|
292
|
+
"y": 330
|
|
293
|
+
}
|
|
294
|
+
]
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"id": "Edge_MessageFlow_Order",
|
|
298
|
+
"type": "BPMNEdge",
|
|
299
|
+
"bpmnElement": "MessageFlow_Order",
|
|
300
|
+
"sourceElement": "Shape_SendOrder",
|
|
301
|
+
"targetElement": "Shape_ReceiveOrder",
|
|
302
|
+
"waypoints": [
|
|
303
|
+
{
|
|
304
|
+
"type": "Point",
|
|
305
|
+
"x": 296,
|
|
306
|
+
"y": 200
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"type": "Point",
|
|
310
|
+
"x": 296,
|
|
311
|
+
"y": 290
|
|
312
|
+
}
|
|
313
|
+
],
|
|
314
|
+
"messageVisibleKind": "initiating"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"id": "Edge_MessageFlow_Confirmation",
|
|
318
|
+
"type": "BPMNEdge",
|
|
319
|
+
"bpmnElement": "MessageFlow_Confirmation",
|
|
320
|
+
"sourceElement": "Shape_Participant_Shop",
|
|
321
|
+
"targetElement": "Shape_Participant_Customer",
|
|
322
|
+
"waypoints": [
|
|
323
|
+
{
|
|
324
|
+
"type": "Point",
|
|
325
|
+
"x": 281,
|
|
326
|
+
"y": 270
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"type": "Point",
|
|
330
|
+
"x": 281,
|
|
331
|
+
"y": 220
|
|
332
|
+
}
|
|
333
|
+
],
|
|
334
|
+
"messageVisibleKind": "non_initiating"
|
|
335
|
+
}
|
|
336
|
+
]
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
]
|
|
340
|
+
}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"../../../../contexts/core.jsonld",
|
|
4
|
+
{
|
|
5
|
+
"@base": "https://example.org/models/error/"
|
|
6
|
+
}
|
|
7
|
+
],
|
|
8
|
+
"@graph": [
|
|
9
|
+
{
|
|
10
|
+
"id": "Error_OutOfStock",
|
|
11
|
+
"type": "Error",
|
|
12
|
+
"name": "Out of stock",
|
|
13
|
+
"errorCode": "OUT_OF_STOCK"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"id": "Error_PaymentFailed",
|
|
17
|
+
"type": "Error",
|
|
18
|
+
"name": "Payment failed",
|
|
19
|
+
"errorCode": "PAYMENT_FAILED"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"id": "Process_Order",
|
|
23
|
+
"type": "Process",
|
|
24
|
+
"name": "Order process",
|
|
25
|
+
"flowElements": [
|
|
26
|
+
{
|
|
27
|
+
"id": "OrderReceived",
|
|
28
|
+
"type": "StartEvent",
|
|
29
|
+
"name": "Order received"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": "FulfilOrder",
|
|
33
|
+
"type": "SubProcess",
|
|
34
|
+
"name": "Fulfil order",
|
|
35
|
+
"flowElements": [
|
|
36
|
+
{
|
|
37
|
+
"id": "FulfilStart",
|
|
38
|
+
"type": "StartEvent",
|
|
39
|
+
"name": "Start fulfilment"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"id": "ChargeCard",
|
|
43
|
+
"type": "UserTask",
|
|
44
|
+
"name": "Charge card"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": "ChargeResult",
|
|
48
|
+
"type": "ExclusiveGateway",
|
|
49
|
+
"name": "Charge result",
|
|
50
|
+
"default": "FulfilFlow_4"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": "PaymentDeclined",
|
|
54
|
+
"type": "EndEvent",
|
|
55
|
+
"name": "Payment declined",
|
|
56
|
+
"eventDefinitions": [
|
|
57
|
+
{
|
|
58
|
+
"id": "PaymentDeclinedDefinition",
|
|
59
|
+
"type": "ErrorEventDefinition",
|
|
60
|
+
"errorRef": "Error_PaymentFailed"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"id": "StockMissing",
|
|
66
|
+
"type": "EndEvent",
|
|
67
|
+
"name": "Stock missing",
|
|
68
|
+
"eventDefinitions": [
|
|
69
|
+
{
|
|
70
|
+
"id": "StockMissingDefinition",
|
|
71
|
+
"type": "ErrorEventDefinition",
|
|
72
|
+
"errorRef": "Error_OutOfStock"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"id": "FulfilEnd",
|
|
78
|
+
"type": "EndEvent",
|
|
79
|
+
"name": "Fulfilled"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"id": "FulfilFlow_1",
|
|
83
|
+
"type": "SequenceFlow",
|
|
84
|
+
"sourceRef": "FulfilStart",
|
|
85
|
+
"targetRef": "ChargeCard"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"id": "FulfilFlow_2",
|
|
89
|
+
"type": "SequenceFlow",
|
|
90
|
+
"sourceRef": "ChargeCard",
|
|
91
|
+
"targetRef": "ChargeResult"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"id": "FulfilFlow_3",
|
|
95
|
+
"type": "SequenceFlow",
|
|
96
|
+
"name": "Declined",
|
|
97
|
+
"sourceRef": "ChargeResult",
|
|
98
|
+
"targetRef": "PaymentDeclined",
|
|
99
|
+
"conditionExpression": {
|
|
100
|
+
"type": "FormalExpression",
|
|
101
|
+
"body": "declined"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"id": "FulfilFlow_4",
|
|
106
|
+
"type": "SequenceFlow",
|
|
107
|
+
"name": "Paid",
|
|
108
|
+
"sourceRef": "ChargeResult",
|
|
109
|
+
"targetRef": "FulfilEnd"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"id": "FulfilFlow_5",
|
|
113
|
+
"type": "SequenceFlow",
|
|
114
|
+
"name": "No stock",
|
|
115
|
+
"sourceRef": "ChargeResult",
|
|
116
|
+
"targetRef": "StockMissing",
|
|
117
|
+
"conditionExpression": {
|
|
118
|
+
"type": "FormalExpression",
|
|
119
|
+
"body": "noStock"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"id": "PaymentCaught",
|
|
126
|
+
"type": "BoundaryEvent",
|
|
127
|
+
"name": "Payment failed",
|
|
128
|
+
"attachedToRef": "FulfilOrder",
|
|
129
|
+
"eventDefinitions": [
|
|
130
|
+
{
|
|
131
|
+
"type": "ErrorEventDefinition",
|
|
132
|
+
"errorRef": "Error_PaymentFailed"
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"id": "OrderFulfilled",
|
|
138
|
+
"type": "EndEvent",
|
|
139
|
+
"name": "Order fulfilled"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"id": "OrderRejected",
|
|
143
|
+
"type": "EndEvent",
|
|
144
|
+
"name": "Order rejected"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"id": "StockHandling",
|
|
148
|
+
"type": "SubProcess",
|
|
149
|
+
"name": "Handle missing stock",
|
|
150
|
+
"triggeredByEvent": true,
|
|
151
|
+
"flowElements": [
|
|
152
|
+
{
|
|
153
|
+
"id": "StockCaught",
|
|
154
|
+
"type": "StartEvent",
|
|
155
|
+
"name": "Out of stock",
|
|
156
|
+
"eventDefinitions": [
|
|
157
|
+
{
|
|
158
|
+
"type": "ErrorEventDefinition",
|
|
159
|
+
"errorRef": "Error_OutOfStock"
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"id": "NotifyCustomer",
|
|
165
|
+
"type": "UserTask",
|
|
166
|
+
"name": "Notify customer"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"id": "StockHandled",
|
|
170
|
+
"type": "EndEvent",
|
|
171
|
+
"name": "Customer notified"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"id": "StockFlow_1",
|
|
175
|
+
"type": "SequenceFlow",
|
|
176
|
+
"sourceRef": "StockCaught",
|
|
177
|
+
"targetRef": "NotifyCustomer"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"id": "StockFlow_2",
|
|
181
|
+
"type": "SequenceFlow",
|
|
182
|
+
"sourceRef": "NotifyCustomer",
|
|
183
|
+
"targetRef": "StockHandled"
|
|
184
|
+
}
|
|
185
|
+
]
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"id": "OrderFlow_1",
|
|
189
|
+
"type": "SequenceFlow",
|
|
190
|
+
"sourceRef": "OrderReceived",
|
|
191
|
+
"targetRef": "FulfilOrder"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"id": "OrderFlow_2",
|
|
195
|
+
"type": "SequenceFlow",
|
|
196
|
+
"sourceRef": "FulfilOrder",
|
|
197
|
+
"targetRef": "OrderFulfilled"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"id": "OrderFlow_3",
|
|
201
|
+
"type": "SequenceFlow",
|
|
202
|
+
"sourceRef": "PaymentCaught",
|
|
203
|
+
"targetRef": "OrderRejected"
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
]
|
|
208
|
+
}
|