@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,138 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"../../../../contexts/core.jsonld",
|
|
4
|
+
{
|
|
5
|
+
"@base": "https://example.org/models/link-event/"
|
|
6
|
+
}
|
|
7
|
+
],
|
|
8
|
+
"@graph": [
|
|
9
|
+
{
|
|
10
|
+
"id": "Process_Fulfilment",
|
|
11
|
+
"type": "Process",
|
|
12
|
+
"name": "Fulfilment process",
|
|
13
|
+
"flowElements": [
|
|
14
|
+
{
|
|
15
|
+
"id": "OrderReceived",
|
|
16
|
+
"type": "StartEvent",
|
|
17
|
+
"name": "Order received"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"id": "StockCheck",
|
|
21
|
+
"type": "ExclusiveGateway",
|
|
22
|
+
"name": "In stock?",
|
|
23
|
+
"default": "Flow_Backorder"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"id": "PickItems",
|
|
27
|
+
"type": "UserTask",
|
|
28
|
+
"name": "Pick items"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": "Backorder",
|
|
32
|
+
"type": "UserTask",
|
|
33
|
+
"name": "Backorder items"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": "ToShipping_Picked",
|
|
37
|
+
"type": "IntermediateThrowEvent",
|
|
38
|
+
"name": "Continue with shipping",
|
|
39
|
+
"eventDefinitions": [
|
|
40
|
+
{
|
|
41
|
+
"id": "LinkThrow_Picked",
|
|
42
|
+
"type": "LinkEventDefinition",
|
|
43
|
+
"name": "Shipping",
|
|
44
|
+
"target": "LinkCatch_Shipping"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "ToShipping_Backordered",
|
|
50
|
+
"type": "IntermediateThrowEvent",
|
|
51
|
+
"name": "Continue with shipping",
|
|
52
|
+
"eventDefinitions": [
|
|
53
|
+
{
|
|
54
|
+
"id": "LinkThrow_Backordered",
|
|
55
|
+
"type": "LinkEventDefinition",
|
|
56
|
+
"name": "Shipping",
|
|
57
|
+
"target": "LinkCatch_Shipping"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"id": "FromFulfilment",
|
|
63
|
+
"type": "IntermediateCatchEvent",
|
|
64
|
+
"name": "Continue with shipping",
|
|
65
|
+
"eventDefinitions": [
|
|
66
|
+
{
|
|
67
|
+
"id": "LinkCatch_Shipping",
|
|
68
|
+
"type": "LinkEventDefinition",
|
|
69
|
+
"name": "Shipping",
|
|
70
|
+
"source": [
|
|
71
|
+
"LinkThrow_Picked",
|
|
72
|
+
"LinkThrow_Backordered"
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"id": "Ship",
|
|
79
|
+
"type": "UserTask",
|
|
80
|
+
"name": "Ship order"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"id": "OrderShipped",
|
|
84
|
+
"type": "EndEvent",
|
|
85
|
+
"name": "Order shipped"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"id": "Flow_1",
|
|
89
|
+
"type": "SequenceFlow",
|
|
90
|
+
"sourceRef": "OrderReceived",
|
|
91
|
+
"targetRef": "StockCheck"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"id": "Flow_InStock",
|
|
95
|
+
"type": "SequenceFlow",
|
|
96
|
+
"name": "Yes",
|
|
97
|
+
"sourceRef": "StockCheck",
|
|
98
|
+
"targetRef": "PickItems",
|
|
99
|
+
"conditionExpression": {
|
|
100
|
+
"type": "FormalExpression",
|
|
101
|
+
"body": "stock"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"id": "Flow_Backorder",
|
|
106
|
+
"type": "SequenceFlow",
|
|
107
|
+
"name": "No",
|
|
108
|
+
"sourceRef": "StockCheck",
|
|
109
|
+
"targetRef": "Backorder"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"id": "Flow_2",
|
|
113
|
+
"type": "SequenceFlow",
|
|
114
|
+
"sourceRef": "PickItems",
|
|
115
|
+
"targetRef": "ToShipping_Picked"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"id": "Flow_3",
|
|
119
|
+
"type": "SequenceFlow",
|
|
120
|
+
"sourceRef": "Backorder",
|
|
121
|
+
"targetRef": "ToShipping_Backordered"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"id": "Flow_4",
|
|
125
|
+
"type": "SequenceFlow",
|
|
126
|
+
"sourceRef": "FromFulfilment",
|
|
127
|
+
"targetRef": "Ship"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"id": "Flow_5",
|
|
131
|
+
"type": "SequenceFlow",
|
|
132
|
+
"sourceRef": "Ship",
|
|
133
|
+
"targetRef": "OrderShipped"
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
]
|
|
138
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"../../../../contexts/core.jsonld",
|
|
4
|
+
{ "@base": "https://example.org/models/loop/" }
|
|
5
|
+
],
|
|
6
|
+
"id": "Process_Document",
|
|
7
|
+
"type": "Process",
|
|
8
|
+
"name": "Document review loop",
|
|
9
|
+
"flowElements": [
|
|
10
|
+
{ "id": "StartEvent_Assigned", "type": "StartEvent", "name": "Document assigned" },
|
|
11
|
+
{ "id": "ExclusiveGateway_Entry", "type": "ExclusiveGateway", "gatewayDirection": "Converging" },
|
|
12
|
+
{ "id": "Task_Revise", "type": "UserTask", "name": "Revise document" },
|
|
13
|
+
{ "id": "Task_Review", "type": "UserTask", "name": "Review document" },
|
|
14
|
+
{ "id": "ExclusiveGateway_Accepted", "type": "ExclusiveGateway", "name": "Accepted?", "gatewayDirection": "Diverging", "default": "Flow_Retry" },
|
|
15
|
+
{ "id": "EndEvent_Published", "type": "EndEvent", "name": "Document published" },
|
|
16
|
+
{ "id": "Flow_Assigned", "type": "SequenceFlow", "sourceRef": "StartEvent_Assigned", "targetRef": "ExclusiveGateway_Entry" },
|
|
17
|
+
{ "id": "Flow_Enter", "type": "SequenceFlow", "sourceRef": "ExclusiveGateway_Entry", "targetRef": "Task_Revise" },
|
|
18
|
+
{ "id": "Flow_Revised", "type": "SequenceFlow", "sourceRef": "Task_Revise", "targetRef": "Task_Review" },
|
|
19
|
+
{ "id": "Flow_Reviewed", "type": "SequenceFlow", "sourceRef": "Task_Review", "targetRef": "ExclusiveGateway_Accepted" },
|
|
20
|
+
{
|
|
21
|
+
"id": "Flow_Accept",
|
|
22
|
+
"type": "SequenceFlow",
|
|
23
|
+
"name": "Yes",
|
|
24
|
+
"sourceRef": "ExclusiveGateway_Accepted",
|
|
25
|
+
"targetRef": "EndEvent_Published",
|
|
26
|
+
"conditionExpression": { "type": "FormalExpression", "language": "https://262.ecma-international.org/", "body": "accepted === true" }
|
|
27
|
+
},
|
|
28
|
+
{ "id": "Flow_Retry", "type": "SequenceFlow", "name": "No", "sourceRef": "ExclusiveGateway_Accepted", "targetRef": "ExclusiveGateway_Entry" }
|
|
29
|
+
]
|
|
30
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"../../../../contexts/core.jsonld",
|
|
4
|
+
{
|
|
5
|
+
"@base": "https://example.org/models/message/"
|
|
6
|
+
}
|
|
7
|
+
],
|
|
8
|
+
"@graph": [
|
|
9
|
+
{ "id": "Message_Confirmation", "type": "Message", "name": "Order confirmation" },
|
|
10
|
+
{ "id": "Message_Order", "type": "Message", "name": "Order" },
|
|
11
|
+
{
|
|
12
|
+
"id": "Collaboration_1",
|
|
13
|
+
"type": "Collaboration",
|
|
14
|
+
"participants": [
|
|
15
|
+
{ "id": "Participant_Customer", "type": "Participant", "name": "Customer", "processRef": "Process_Customer" },
|
|
16
|
+
{ "id": "Participant_Shop", "type": "Participant", "name": "Shop", "processRef": "Process_Shop" }
|
|
17
|
+
],
|
|
18
|
+
"messageFlows": [
|
|
19
|
+
{ "id": "MessageFlow_Order", "type": "MessageFlow", "name": "Order", "sourceRef": "SendOrder", "targetRef": "OrderReceived", "messageRef": "Message_Order" },
|
|
20
|
+
{ "id": "MessageFlow_Confirmation", "type": "MessageFlow", "name": "Confirmation", "sourceRef": "SendConfirmation", "targetRef": "ConfirmationReceived", "messageRef": "Message_Confirmation" }
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "Process_Customer",
|
|
25
|
+
"type": "Process",
|
|
26
|
+
"name": "Customer process",
|
|
27
|
+
"flowElements": [
|
|
28
|
+
{ "id": "CustomerStart", "type": "StartEvent", "name": "Wants to order" },
|
|
29
|
+
{ "id": "SendOrder", "type": "SendTask", "name": "Send order" },
|
|
30
|
+
{
|
|
31
|
+
"id": "ConfirmationReceived",
|
|
32
|
+
"type": "IntermediateCatchEvent",
|
|
33
|
+
"name": "Confirmation received",
|
|
34
|
+
"eventDefinitions": [{ "id": "ConfirmationDefinition", "type": "MessageEventDefinition", "messageRef": "Message_Confirmation" }]
|
|
35
|
+
},
|
|
36
|
+
{ "id": "CustomerEnd", "type": "EndEvent", "name": "Order confirmed" },
|
|
37
|
+
{ "id": "CustomerFlow_1", "type": "SequenceFlow", "sourceRef": "CustomerStart", "targetRef": "SendOrder" },
|
|
38
|
+
{ "id": "CustomerFlow_2", "type": "SequenceFlow", "sourceRef": "SendOrder", "targetRef": "ConfirmationReceived" },
|
|
39
|
+
{ "id": "CustomerFlow_3", "type": "SequenceFlow", "sourceRef": "ConfirmationReceived", "targetRef": "CustomerEnd" }
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "Process_Shop",
|
|
44
|
+
"type": "Process",
|
|
45
|
+
"name": "Shop process",
|
|
46
|
+
"flowElements": [
|
|
47
|
+
{
|
|
48
|
+
"id": "OrderReceived",
|
|
49
|
+
"type": "StartEvent",
|
|
50
|
+
"name": "Order received",
|
|
51
|
+
"eventDefinitions": [{ "id": "OrderDefinition", "type": "MessageEventDefinition", "messageRef": "Message_Order" }]
|
|
52
|
+
},
|
|
53
|
+
{ "id": "SendConfirmation", "type": "SendTask", "name": "Send confirmation" },
|
|
54
|
+
{ "id": "ShopEnd", "type": "EndEvent", "name": "Order handled" },
|
|
55
|
+
{ "id": "ShopFlow_1", "type": "SequenceFlow", "sourceRef": "OrderReceived", "targetRef": "SendConfirmation" },
|
|
56
|
+
{ "id": "ShopFlow_2", "type": "SequenceFlow", "sourceRef": "SendConfirmation", "targetRef": "ShopEnd" }
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"../../../../contexts/core.jsonld",
|
|
4
|
+
{ "@base": "https://example.org/models/order-approval/" }
|
|
5
|
+
],
|
|
6
|
+
"id": "Process_OrderApproval",
|
|
7
|
+
"type": "Process",
|
|
8
|
+
"name": "Order approval",
|
|
9
|
+
"flowElements": [
|
|
10
|
+
{ "id": "StartEvent_OrderReceived", "type": "StartEvent", "name": "Order received" },
|
|
11
|
+
{ "id": "UserTask_ReviewOrder", "type": "UserTask", "name": "Review order" },
|
|
12
|
+
{ "id": "ExclusiveGateway_Approved", "type": "ExclusiveGateway", "name": "Approved?", "default": "Flow_Rejected" },
|
|
13
|
+
{ "id": "ServiceTask_ShipOrder", "type": "ServiceTask", "name": "Ship order" },
|
|
14
|
+
{ "id": "EndEvent_Shipped", "type": "EndEvent", "name": "Order shipped" },
|
|
15
|
+
{ "id": "EndEvent_Rejected", "type": "EndEvent", "name": "Order rejected" },
|
|
16
|
+
{ "id": "Flow_Received", "type": "SequenceFlow", "sourceRef": "StartEvent_OrderReceived", "targetRef": "UserTask_ReviewOrder" },
|
|
17
|
+
{ "id": "Flow_Reviewed", "type": "SequenceFlow", "sourceRef": "UserTask_ReviewOrder", "targetRef": "ExclusiveGateway_Approved" },
|
|
18
|
+
{
|
|
19
|
+
"id": "Flow_Approved",
|
|
20
|
+
"type": "SequenceFlow",
|
|
21
|
+
"name": "Yes",
|
|
22
|
+
"sourceRef": "ExclusiveGateway_Approved",
|
|
23
|
+
"targetRef": "ServiceTask_ShipOrder",
|
|
24
|
+
"conditionExpression": { "type": "FormalExpression", "language": "https://262.ecma-international.org/", "body": "approved === true" }
|
|
25
|
+
},
|
|
26
|
+
{ "id": "Flow_Rejected", "type": "SequenceFlow", "name": "No", "sourceRef": "ExclusiveGateway_Approved", "targetRef": "EndEvent_Rejected" },
|
|
27
|
+
{ "id": "Flow_Shipped", "type": "SequenceFlow", "sourceRef": "ServiceTask_ShipOrder", "targetRef": "EndEvent_Shipped" }
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -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,150 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"../../../../contexts/core.jsonld",
|
|
4
|
+
{
|
|
5
|
+
"@base": "https://example.org/models/signal/"
|
|
6
|
+
}
|
|
7
|
+
],
|
|
8
|
+
"@graph": [
|
|
9
|
+
{
|
|
10
|
+
"id": "Signal_Cancelled",
|
|
11
|
+
"type": "Signal",
|
|
12
|
+
"name": "Order cancelled"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"id": "Signal_Shipped",
|
|
16
|
+
"type": "Signal",
|
|
17
|
+
"name": "Goods shipped"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"id": "Collaboration_1",
|
|
21
|
+
"type": "Collaboration",
|
|
22
|
+
"participants": [
|
|
23
|
+
{
|
|
24
|
+
"id": "Participant_Warehouse",
|
|
25
|
+
"type": "Participant",
|
|
26
|
+
"name": "Warehouse",
|
|
27
|
+
"processRef": "Process_Warehouse"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"id": "Participant_Billing",
|
|
31
|
+
"type": "Participant",
|
|
32
|
+
"name": "Billing",
|
|
33
|
+
"processRef": "Process_Billing"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": "Process_Billing",
|
|
39
|
+
"type": "Process",
|
|
40
|
+
"name": "Billing process",
|
|
41
|
+
"flowElements": [
|
|
42
|
+
{
|
|
43
|
+
"id": "ShippedCaught",
|
|
44
|
+
"type": "StartEvent",
|
|
45
|
+
"name": "Goods shipped",
|
|
46
|
+
"eventDefinitions": [
|
|
47
|
+
{
|
|
48
|
+
"id": "ShippedCatchDefinition",
|
|
49
|
+
"type": "SignalEventDefinition",
|
|
50
|
+
"signalRef": "Signal_Shipped"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"id": "SendInvoice",
|
|
56
|
+
"type": "UserTask",
|
|
57
|
+
"name": "Send invoice"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"id": "CancelledCaught",
|
|
61
|
+
"type": "BoundaryEvent",
|
|
62
|
+
"name": "Order cancelled",
|
|
63
|
+
"attachedToRef": "SendInvoice",
|
|
64
|
+
"eventDefinitions": [
|
|
65
|
+
{
|
|
66
|
+
"type": "SignalEventDefinition",
|
|
67
|
+
"signalRef": "Signal_Cancelled"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"id": "BillingEnd",
|
|
73
|
+
"type": "EndEvent",
|
|
74
|
+
"name": "Invoice sent"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"id": "BillingCancelled",
|
|
78
|
+
"type": "EndEvent",
|
|
79
|
+
"name": "Billing stopped"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"id": "BillingFlow_1",
|
|
83
|
+
"type": "SequenceFlow",
|
|
84
|
+
"sourceRef": "ShippedCaught",
|
|
85
|
+
"targetRef": "SendInvoice"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"id": "BillingFlow_2",
|
|
89
|
+
"type": "SequenceFlow",
|
|
90
|
+
"sourceRef": "SendInvoice",
|
|
91
|
+
"targetRef": "BillingEnd"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"id": "BillingFlow_3",
|
|
95
|
+
"type": "SequenceFlow",
|
|
96
|
+
"sourceRef": "CancelledCaught",
|
|
97
|
+
"targetRef": "BillingCancelled"
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"id": "Process_Warehouse",
|
|
103
|
+
"type": "Process",
|
|
104
|
+
"name": "Warehouse process",
|
|
105
|
+
"flowElements": [
|
|
106
|
+
{
|
|
107
|
+
"id": "WarehouseStart",
|
|
108
|
+
"type": "StartEvent",
|
|
109
|
+
"name": "Order picked"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"id": "ShippedThrown",
|
|
113
|
+
"type": "IntermediateThrowEvent",
|
|
114
|
+
"name": "Announce shipment",
|
|
115
|
+
"eventDefinitions": [
|
|
116
|
+
{
|
|
117
|
+
"id": "ShippedThrowDefinition",
|
|
118
|
+
"type": "SignalEventDefinition",
|
|
119
|
+
"signalRef": "Signal_Shipped"
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"id": "WarehouseEnd",
|
|
125
|
+
"type": "EndEvent",
|
|
126
|
+
"name": "Order handed over",
|
|
127
|
+
"eventDefinitions": [
|
|
128
|
+
{
|
|
129
|
+
"id": "CancelledThrowDefinition",
|
|
130
|
+
"type": "SignalEventDefinition",
|
|
131
|
+
"signalRef": "Signal_Cancelled"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"id": "WarehouseFlow_1",
|
|
137
|
+
"type": "SequenceFlow",
|
|
138
|
+
"sourceRef": "WarehouseStart",
|
|
139
|
+
"targetRef": "ShippedThrown"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"id": "WarehouseFlow_2",
|
|
143
|
+
"type": "SequenceFlow",
|
|
144
|
+
"sourceRef": "ShippedThrown",
|
|
145
|
+
"targetRef": "WarehouseEnd"
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
]
|
|
150
|
+
}
|
|
@@ -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/targeted-compensation/" }
|
|
5
|
+
],
|
|
6
|
+
"@graph": [
|
|
7
|
+
{
|
|
8
|
+
"id": "Process_Trip",
|
|
9
|
+
"type": "Process",
|
|
10
|
+
"name": "Cancel a 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
|
+
}
|