@bpmn-ld/bpmn-ld 0.0.0-stage → 0.1.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 +1 -0
- package/dist/bpmn-ld-cli.js +90 -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/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 +76 -4
- 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,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"../../../../contexts/core.jsonld",
|
|
4
|
+
{ "@base": "https://example.org/models/parallel-branches/" }
|
|
5
|
+
],
|
|
6
|
+
"id": "Process_Fulfilment",
|
|
7
|
+
"type": "Process",
|
|
8
|
+
"name": "Order fulfilment",
|
|
9
|
+
"flowElements": [
|
|
10
|
+
{ "id": "StartEvent_Paid", "type": "StartEvent", "name": "Order paid" },
|
|
11
|
+
{ "id": "ParallelGateway_Split", "type": "ParallelGateway", "gatewayDirection": "Diverging" },
|
|
12
|
+
{ "id": "Task_PickItems", "type": "ManualTask", "name": "Pick items" },
|
|
13
|
+
{ "id": "Task_PrintInvoice", "type": "ServiceTask", "name": "Print invoice" },
|
|
14
|
+
{ "id": "ParallelGateway_Join", "type": "ParallelGateway", "gatewayDirection": "Converging" },
|
|
15
|
+
{ "id": "Task_Dispatch", "type": "UserTask", "name": "Dispatch parcel" },
|
|
16
|
+
{ "id": "EndEvent_Dispatched", "type": "EndEvent", "name": "Parcel dispatched" },
|
|
17
|
+
{ "id": "Flow_Paid", "type": "SequenceFlow", "sourceRef": "StartEvent_Paid", "targetRef": "ParallelGateway_Split" },
|
|
18
|
+
{ "id": "Flow_ToPick", "type": "SequenceFlow", "sourceRef": "ParallelGateway_Split", "targetRef": "Task_PickItems" },
|
|
19
|
+
{ "id": "Flow_ToInvoice", "type": "SequenceFlow", "sourceRef": "ParallelGateway_Split", "targetRef": "Task_PrintInvoice" },
|
|
20
|
+
{ "id": "Flow_PickDone", "type": "SequenceFlow", "sourceRef": "Task_PickItems", "targetRef": "ParallelGateway_Join" },
|
|
21
|
+
{ "id": "Flow_InvoiceDone", "type": "SequenceFlow", "sourceRef": "Task_PrintInvoice", "targetRef": "ParallelGateway_Join" },
|
|
22
|
+
{ "id": "Flow_Joined", "type": "SequenceFlow", "sourceRef": "ParallelGateway_Join", "targetRef": "Task_Dispatch" },
|
|
23
|
+
{ "id": "Flow_Dispatched", "type": "SequenceFlow", "sourceRef": "Task_Dispatch", "targetRef": "EndEvent_Dispatched" }
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"../../../../contexts/core.jsonld",
|
|
4
|
+
{ "@base": "https://example.org/models/process-attributes/" }
|
|
5
|
+
],
|
|
6
|
+
"@graph": [
|
|
7
|
+
{
|
|
8
|
+
"id": "Collaboration_1",
|
|
9
|
+
"type": "Collaboration",
|
|
10
|
+
"isClosed": true,
|
|
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": "SendOrder", "targetRef": "ReceiveOrder" }
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"id": "Process_Customer",
|
|
21
|
+
"type": "Process",
|
|
22
|
+
"name": "Customer process",
|
|
23
|
+
"processType": "Public",
|
|
24
|
+
"isExecutable": false,
|
|
25
|
+
"flowElements": [
|
|
26
|
+
{ "id": "CustomerStart", "type": "StartEvent", "name": "Order needed" },
|
|
27
|
+
{ "id": "SendOrder", "type": "SendTask", "name": "Send order" },
|
|
28
|
+
{ "id": "CustomerEnd", "type": "EndEvent", "name": "Order sent" },
|
|
29
|
+
{ "id": "CustomerFlow_1", "type": "SequenceFlow", "sourceRef": "CustomerStart", "targetRef": "SendOrder" },
|
|
30
|
+
{ "id": "CustomerFlow_2", "type": "SequenceFlow", "sourceRef": "SendOrder", "targetRef": "CustomerEnd" }
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"id": "Process_Shop",
|
|
35
|
+
"type": "Process",
|
|
36
|
+
"name": "Shop process",
|
|
37
|
+
"processType": "Private",
|
|
38
|
+
"isExecutable": true,
|
|
39
|
+
"isClosed": true,
|
|
40
|
+
"flowElements": [
|
|
41
|
+
{ "id": "ReceiveOrder", "type": "StartEvent", "name": "Order received", "eventDefinitions": [{ "type": "MessageEventDefinition" }] },
|
|
42
|
+
{ "id": "HandleOrder", "type": "UserTask", "name": "Handle order" },
|
|
43
|
+
{ "id": "ShopEnd", "type": "EndEvent", "name": "Order handled" },
|
|
44
|
+
{ "id": "ShopFlow_1", "type": "SequenceFlow", "sourceRef": "ReceiveOrder", "targetRef": "HandleOrder" },
|
|
45
|
+
{ "id": "ShopFlow_2", "type": "SequenceFlow", "sourceRef": "HandleOrder", "targetRef": "ShopEnd" }
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"../../../../contexts/core.jsonld",
|
|
4
|
+
{ "@base": "https://example.org/models/script-task/" }
|
|
5
|
+
],
|
|
6
|
+
"id": "Process_Invoice",
|
|
7
|
+
"type": "Process",
|
|
8
|
+
"name": "Invoice totals",
|
|
9
|
+
"flowElements": [
|
|
10
|
+
{ "id": "StartEvent_Received", "type": "StartEvent", "name": "Invoice received" },
|
|
11
|
+
{ "id": "ScriptTask_Total", "type": "ScriptTask", "name": "Compute total", "scriptFormat": "text/javascript", "script": "total = net * 1.2;" },
|
|
12
|
+
{ "id": "UserTask_Approve", "type": "UserTask", "name": "Approve invoice" },
|
|
13
|
+
{ "id": "EndEvent_Approved", "type": "EndEvent", "name": "Invoice approved" },
|
|
14
|
+
{ "id": "Flow_Received", "type": "SequenceFlow", "sourceRef": "StartEvent_Received", "targetRef": "ScriptTask_Total" },
|
|
15
|
+
{ "id": "Flow_Totalled", "type": "SequenceFlow", "sourceRef": "ScriptTask_Total", "targetRef": "UserTask_Approve" },
|
|
16
|
+
{ "id": "Flow_Approved", "type": "SequenceFlow", "sourceRef": "UserTask_Approve", "targetRef": "EndEvent_Approved" }
|
|
17
|
+
]
|
|
18
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"../../../../contexts/core.jsonld",
|
|
4
|
+
{
|
|
5
|
+
"@base": "https://example.org/models/signal-emergency-stop/"
|
|
6
|
+
}
|
|
7
|
+
],
|
|
8
|
+
"@graph": [
|
|
9
|
+
{
|
|
10
|
+
"id": "Signal_EmergencyStop",
|
|
11
|
+
"type": "Signal",
|
|
12
|
+
"name": "Emergency stop"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"id": "Collaboration_Plant",
|
|
16
|
+
"type": "Collaboration",
|
|
17
|
+
"name": "Plant",
|
|
18
|
+
"participants": [
|
|
19
|
+
{
|
|
20
|
+
"id": "Participant_Supervisor",
|
|
21
|
+
"type": "Participant",
|
|
22
|
+
"name": "Supervisor",
|
|
23
|
+
"processRef": "Process_Supervisor"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"id": "Participant_Line",
|
|
27
|
+
"type": "Participant",
|
|
28
|
+
"name": "Production line",
|
|
29
|
+
"processRef": "Process_Line"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"id": "Process_Supervisor",
|
|
35
|
+
"type": "Process",
|
|
36
|
+
"name": "Supervisor process",
|
|
37
|
+
"flowElements": [
|
|
38
|
+
{
|
|
39
|
+
"id": "SupervisorStart",
|
|
40
|
+
"type": "StartEvent",
|
|
41
|
+
"name": "Report received"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"id": "InspectReport",
|
|
45
|
+
"type": "UserTask",
|
|
46
|
+
"name": "Inspect report"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "AnnounceStop",
|
|
50
|
+
"type": "IntermediateThrowEvent",
|
|
51
|
+
"name": "Announce emergency stop",
|
|
52
|
+
"eventDefinitions": [
|
|
53
|
+
{
|
|
54
|
+
"id": "AnnounceStopDefinition",
|
|
55
|
+
"type": "SignalEventDefinition",
|
|
56
|
+
"signalRef": "Signal_EmergencyStop"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"id": "SupervisorEnd",
|
|
62
|
+
"type": "EndEvent",
|
|
63
|
+
"name": "Stop announced"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"id": "SupervisorFlow_1",
|
|
67
|
+
"type": "SequenceFlow",
|
|
68
|
+
"sourceRef": "SupervisorStart",
|
|
69
|
+
"targetRef": "InspectReport"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"id": "SupervisorFlow_2",
|
|
73
|
+
"type": "SequenceFlow",
|
|
74
|
+
"sourceRef": "InspectReport",
|
|
75
|
+
"targetRef": "AnnounceStop"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"id": "SupervisorFlow_3",
|
|
79
|
+
"type": "SequenceFlow",
|
|
80
|
+
"sourceRef": "AnnounceStop",
|
|
81
|
+
"targetRef": "SupervisorEnd"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"id": "Process_Line",
|
|
87
|
+
"type": "Process",
|
|
88
|
+
"name": "Production line process",
|
|
89
|
+
"flowElements": [
|
|
90
|
+
{
|
|
91
|
+
"id": "StopReceived",
|
|
92
|
+
"type": "StartEvent",
|
|
93
|
+
"name": "Emergency stop received",
|
|
94
|
+
"eventDefinitions": [
|
|
95
|
+
{
|
|
96
|
+
"id": "StopReceivedDefinition",
|
|
97
|
+
"type": "SignalEventDefinition",
|
|
98
|
+
"signalRef": "Signal_EmergencyStop"
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "ShutDownLine",
|
|
104
|
+
"type": "ManualTask",
|
|
105
|
+
"name": "Shut down line"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"id": "LineEnd",
|
|
109
|
+
"type": "EndEvent",
|
|
110
|
+
"name": "Line stopped"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"id": "BatchStart",
|
|
114
|
+
"type": "StartEvent",
|
|
115
|
+
"name": "Batch scheduled"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"id": "RunBatch",
|
|
119
|
+
"type": "ManualTask",
|
|
120
|
+
"name": "Run batch"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"id": "BatchAborted",
|
|
124
|
+
"type": "BoundaryEvent",
|
|
125
|
+
"name": "Emergency stop",
|
|
126
|
+
"attachedToRef": "RunBatch",
|
|
127
|
+
"eventDefinitions": [
|
|
128
|
+
{
|
|
129
|
+
"id": "BatchAbortedDefinition",
|
|
130
|
+
"type": "SignalEventDefinition",
|
|
131
|
+
"signalRef": "Signal_EmergencyStop"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"id": "BatchDone",
|
|
137
|
+
"type": "EndEvent",
|
|
138
|
+
"name": "Batch done"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"id": "BatchAbortedEnd",
|
|
142
|
+
"type": "EndEvent",
|
|
143
|
+
"name": "Batch aborted"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"id": "LineFlow_1",
|
|
147
|
+
"type": "SequenceFlow",
|
|
148
|
+
"sourceRef": "StopReceived",
|
|
149
|
+
"targetRef": "ShutDownLine"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"id": "LineFlow_2",
|
|
153
|
+
"type": "SequenceFlow",
|
|
154
|
+
"sourceRef": "ShutDownLine",
|
|
155
|
+
"targetRef": "LineEnd"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"id": "LineFlow_3",
|
|
159
|
+
"type": "SequenceFlow",
|
|
160
|
+
"sourceRef": "BatchStart",
|
|
161
|
+
"targetRef": "RunBatch"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"id": "LineFlow_4",
|
|
165
|
+
"type": "SequenceFlow",
|
|
166
|
+
"sourceRef": "RunBatch",
|
|
167
|
+
"targetRef": "BatchDone"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"id": "LineFlow_5",
|
|
171
|
+
"type": "SequenceFlow",
|
|
172
|
+
"sourceRef": "BatchAborted",
|
|
173
|
+
"targetRef": "BatchAbortedEnd"
|
|
174
|
+
}
|
|
175
|
+
]
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"../../../../contexts/core.jsonld",
|
|
4
|
+
{ "@base": "https://example.org/models/sub-process/" }
|
|
5
|
+
],
|
|
6
|
+
"id": "Process_Onboarding",
|
|
7
|
+
"type": "Process",
|
|
8
|
+
"name": "Employee onboarding",
|
|
9
|
+
"flowElements": [
|
|
10
|
+
{ "id": "StartEvent_Hired", "type": "StartEvent", "name": "Employee hired" },
|
|
11
|
+
{
|
|
12
|
+
"id": "SubProcess_Equipment",
|
|
13
|
+
"type": "SubProcess",
|
|
14
|
+
"name": "Provide equipment",
|
|
15
|
+
"flowElements": [
|
|
16
|
+
{ "id": "StartEvent_EquipmentNeeded", "type": "StartEvent", "name": "Equipment needed" },
|
|
17
|
+
{ "id": "Task_OrderLaptop", "type": "UserTask", "name": "Order laptop" },
|
|
18
|
+
{ "id": "Task_ConfigureLaptop", "type": "ServiceTask", "name": "Configure laptop" },
|
|
19
|
+
{ "id": "EndEvent_EquipmentReady", "type": "EndEvent", "name": "Equipment ready" },
|
|
20
|
+
{ "id": "Flow_EquipmentNeeded", "type": "SequenceFlow", "sourceRef": "StartEvent_EquipmentNeeded", "targetRef": "Task_OrderLaptop" },
|
|
21
|
+
{ "id": "Flow_Ordered", "type": "SequenceFlow", "sourceRef": "Task_OrderLaptop", "targetRef": "Task_ConfigureLaptop" },
|
|
22
|
+
{ "id": "Flow_Configured", "type": "SequenceFlow", "sourceRef": "Task_ConfigureLaptop", "targetRef": "EndEvent_EquipmentReady" }
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
{ "id": "Task_Welcome", "type": "UserTask", "name": "Welcome employee" },
|
|
26
|
+
{ "id": "EndEvent_Onboarded", "type": "EndEvent", "name": "Employee onboarded" },
|
|
27
|
+
{ "id": "Flow_Hired", "type": "SequenceFlow", "sourceRef": "StartEvent_Hired", "targetRef": "SubProcess_Equipment" },
|
|
28
|
+
{ "id": "Flow_EquipmentDone", "type": "SequenceFlow", "sourceRef": "SubProcess_Equipment", "targetRef": "Task_Welcome" },
|
|
29
|
+
{ "id": "Flow_Welcomed", "type": "SequenceFlow", "sourceRef": "Task_Welcome", "targetRef": "EndEvent_Onboarded" }
|
|
30
|
+
]
|
|
31
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"../../../../contexts/core.jsonld",
|
|
4
|
+
{ "@base": "https://example.org/models/trip-cancellation/" }
|
|
5
|
+
],
|
|
6
|
+
"@graph": [
|
|
7
|
+
{
|
|
8
|
+
"id": "Process_Trip",
|
|
9
|
+
"type": "Process",
|
|
10
|
+
"name": "Cancel a booked trip",
|
|
11
|
+
"flowElements": [
|
|
12
|
+
{ "id": "TripRequested", "type": "StartEvent", "name": "Trip requested" },
|
|
13
|
+
{ "id": "BookHotel", "type": "ServiceTask", "name": "Book hotel" },
|
|
14
|
+
{
|
|
15
|
+
"id": "UndoBooking",
|
|
16
|
+
"type": "BoundaryEvent",
|
|
17
|
+
"name": "Booking undone",
|
|
18
|
+
"attachedToRef": "BookHotel",
|
|
19
|
+
"eventDefinitions": [{ "id": "UndoBookingDefinition", "type": "CompensateEventDefinition" }]
|
|
20
|
+
},
|
|
21
|
+
{ "id": "CancelHotel", "type": "ServiceTask", "name": "Cancel hotel", "isForCompensation": true },
|
|
22
|
+
{ "id": "ReviewItinerary", "type": "UserTask", "name": "Review itinerary" },
|
|
23
|
+
{
|
|
24
|
+
"id": "UndoHotelBooking",
|
|
25
|
+
"type": "IntermediateThrowEvent",
|
|
26
|
+
"name": "Undo hotel booking",
|
|
27
|
+
"eventDefinitions": [{ "id": "UndoHotelBookingDefinition", "type": "CompensateEventDefinition", "activityRef": "BookHotel", "waitForCompletion": true }]
|
|
28
|
+
},
|
|
29
|
+
{ "id": "TripCancelled", "type": "EndEvent", "name": "Trip cancelled" },
|
|
30
|
+
{ "id": "Flow_1", "type": "SequenceFlow", "sourceRef": "TripRequested", "targetRef": "BookHotel" },
|
|
31
|
+
{ "id": "Flow_2", "type": "SequenceFlow", "sourceRef": "BookHotel", "targetRef": "ReviewItinerary" },
|
|
32
|
+
{ "id": "Flow_3", "type": "SequenceFlow", "sourceRef": "ReviewItinerary", "targetRef": "UndoHotelBooking" },
|
|
33
|
+
{ "id": "Flow_4", "type": "SequenceFlow", "sourceRef": "UndoHotelBooking", "targetRef": "TripCancelled" }
|
|
34
|
+
],
|
|
35
|
+
"artifacts": [
|
|
36
|
+
{ "id": "Compensation_1", "type": "Association", "sourceRef": "UndoBooking", "targetRef": "CancelHotel", "associationDirection": "One" }
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"../../../../contexts/core.jsonld",
|
|
4
|
+
{ "@base": "https://example.org/models/task-implementation/" }
|
|
5
|
+
],
|
|
6
|
+
"id": "Process_Order",
|
|
7
|
+
"type": "Process",
|
|
8
|
+
"name": "Order handling",
|
|
9
|
+
"flowElements": [
|
|
10
|
+
{ "id": "StartEvent_Received", "type": "StartEvent", "name": "Order received" },
|
|
11
|
+
{ "id": "ServiceTask_Stock", "type": "ServiceTask", "name": "Check stock", "implementation": "##WebService" },
|
|
12
|
+
{ "id": "UserTask_Review", "type": "UserTask", "name": "Review order", "implementation": "http://example.org/forms/review" },
|
|
13
|
+
{ "id": "EndEvent_Confirmed", "type": "EndEvent", "name": "Order confirmed" },
|
|
14
|
+
{ "id": "Flow_Received", "type": "SequenceFlow", "sourceRef": "StartEvent_Received", "targetRef": "ServiceTask_Stock" },
|
|
15
|
+
{ "id": "Flow_Checked", "type": "SequenceFlow", "sourceRef": "ServiceTask_Stock", "targetRef": "UserTask_Review" },
|
|
16
|
+
{ "id": "Flow_Confirmed", "type": "SequenceFlow", "sourceRef": "UserTask_Review", "targetRef": "EndEvent_Confirmed" }
|
|
17
|
+
]
|
|
18
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"../../../../contexts/core.jsonld",
|
|
4
|
+
{ "@base": "https://example.org/models/task-message-references/" }
|
|
5
|
+
],
|
|
6
|
+
"@graph": [
|
|
7
|
+
{ "id": "Message_Order", "type": "Message", "name": "Order" },
|
|
8
|
+
{ "id": "Message_Confirmation", "type": "Message", "name": "Order confirmation" },
|
|
9
|
+
{
|
|
10
|
+
"id": "Collaboration_Ordering",
|
|
11
|
+
"type": "Collaboration",
|
|
12
|
+
"name": "Ordering",
|
|
13
|
+
"participants": [
|
|
14
|
+
{ "id": "Participant_Customer", "type": "Participant", "name": "Customer", "processRef": "Process_Customer" },
|
|
15
|
+
{ "id": "Participant_Shop", "type": "Participant", "name": "Shop", "processRef": "Process_Shop" }
|
|
16
|
+
],
|
|
17
|
+
"messageFlows": [
|
|
18
|
+
{ "id": "MessageFlow_Order", "type": "MessageFlow", "name": "Order", "sourceRef": "SendTask_PlaceOrder", "targetRef": "ReceiveTask_Order", "messageRef": "Message_Order" },
|
|
19
|
+
{ "id": "MessageFlow_Confirmation", "type": "MessageFlow", "name": "Confirmation", "sourceRef": "SendTask_Confirm", "targetRef": "ReceiveTask_Confirmation", "messageRef": "Message_Confirmation" }
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": "Process_Customer",
|
|
24
|
+
"type": "Process",
|
|
25
|
+
"name": "Customer process",
|
|
26
|
+
"flowElements": [
|
|
27
|
+
{ "id": "StartEvent_Wants", "type": "StartEvent", "name": "Product needed" },
|
|
28
|
+
{ "id": "SendTask_PlaceOrder", "type": "SendTask", "name": "Place order", "messageRef": "Message_Order" },
|
|
29
|
+
{ "id": "ReceiveTask_Confirmation", "type": "ReceiveTask", "name": "Receive confirmation", "messageRef": "Message_Confirmation" },
|
|
30
|
+
{ "id": "EndEvent_Done", "type": "EndEvent", "name": "Order confirmed" },
|
|
31
|
+
{ "id": "Flow_Wants", "type": "SequenceFlow", "sourceRef": "StartEvent_Wants", "targetRef": "SendTask_PlaceOrder" },
|
|
32
|
+
{ "id": "Flow_Placed", "type": "SequenceFlow", "sourceRef": "SendTask_PlaceOrder", "targetRef": "ReceiveTask_Confirmation" },
|
|
33
|
+
{ "id": "Flow_Confirmed", "type": "SequenceFlow", "sourceRef": "ReceiveTask_Confirmation", "targetRef": "EndEvent_Done" }
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": "Process_Shop",
|
|
38
|
+
"type": "Process",
|
|
39
|
+
"name": "Shop process",
|
|
40
|
+
"flowElements": [
|
|
41
|
+
{ "id": "ReceiveTask_Order", "type": "ReceiveTask", "name": "Receive order", "instantiate": true, "messageRef": "Message_Order" },
|
|
42
|
+
{ "id": "SendTask_Confirm", "type": "SendTask", "name": "Send confirmation", "messageRef": "Message_Confirmation" },
|
|
43
|
+
{ "id": "EndEvent_Handled", "type": "EndEvent", "name": "Order handled" },
|
|
44
|
+
{ "id": "Flow_Received", "type": "SequenceFlow", "sourceRef": "ReceiveTask_Order", "targetRef": "SendTask_Confirm" },
|
|
45
|
+
{ "id": "Flow_Sent", "type": "SequenceFlow", "sourceRef": "SendTask_Confirm", "targetRef": "EndEvent_Handled" }
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"../../../../contexts/core.jsonld",
|
|
4
|
+
{ "@base": "https://example.org/models/transaction/" }
|
|
5
|
+
],
|
|
6
|
+
"@graph": [
|
|
7
|
+
{
|
|
8
|
+
"id": "Process_Order",
|
|
9
|
+
"type": "Process",
|
|
10
|
+
"name": "Order fulfilment",
|
|
11
|
+
"flowElements": [
|
|
12
|
+
{ "id": "OrderReceived", "type": "StartEvent", "name": "Order received" },
|
|
13
|
+
{
|
|
14
|
+
"id": "ChargeAndShip",
|
|
15
|
+
"type": "Transaction",
|
|
16
|
+
"name": "Charge and ship",
|
|
17
|
+
"method": "Compensate",
|
|
18
|
+
"flowElements": [
|
|
19
|
+
{ "id": "TxStart", "type": "StartEvent", "name": "Begin" },
|
|
20
|
+
{ "id": "ChargeCard", "type": "ServiceTask", "name": "Charge card" },
|
|
21
|
+
{ "id": "ShipGoods", "type": "ServiceTask", "name": "Ship goods" },
|
|
22
|
+
{ "id": "TxEnd", "type": "EndEvent", "name": "Done" },
|
|
23
|
+
{ "id": "TxFlow_1", "type": "SequenceFlow", "sourceRef": "TxStart", "targetRef": "ChargeCard" },
|
|
24
|
+
{ "id": "TxFlow_2", "type": "SequenceFlow", "sourceRef": "ChargeCard", "targetRef": "ShipGoods" },
|
|
25
|
+
{ "id": "TxFlow_3", "type": "SequenceFlow", "sourceRef": "ShipGoods", "targetRef": "TxEnd" }
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "ReserveStock",
|
|
30
|
+
"type": "Transaction",
|
|
31
|
+
"name": "Reserve stock",
|
|
32
|
+
"method": "Store",
|
|
33
|
+
"flowElements": [
|
|
34
|
+
{ "id": "StockStart", "type": "StartEvent", "name": "Begin" },
|
|
35
|
+
{ "id": "ReserveItems", "type": "ServiceTask", "name": "Reserve items" },
|
|
36
|
+
{ "id": "StockEnd", "type": "EndEvent", "name": "Reserved" },
|
|
37
|
+
{ "id": "StockFlow_1", "type": "SequenceFlow", "sourceRef": "StockStart", "targetRef": "ReserveItems" },
|
|
38
|
+
{ "id": "StockFlow_2", "type": "SequenceFlow", "sourceRef": "ReserveItems", "targetRef": "StockEnd" }
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
{ "id": "OrderCompleted", "type": "EndEvent", "name": "Order completed" },
|
|
42
|
+
{ "id": "Flow_1", "type": "SequenceFlow", "sourceRef": "OrderReceived", "targetRef": "ChargeAndShip" },
|
|
43
|
+
{ "id": "Flow_2", "type": "SequenceFlow", "sourceRef": "ChargeAndShip", "targetRef": "ReserveStock" },
|
|
44
|
+
{ "id": "Flow_3", "type": "SequenceFlow", "sourceRef": "ReserveStock", "targetRef": "OrderCompleted" }
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|