@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.
Files changed (339) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +125 -2
  3. package/contexts/combined.jsonld +3 -0
  4. package/contexts/core.jsonld +170 -0
  5. package/contexts/di.jsonld +37 -0
  6. package/dist/analyze/analyze.d.ts +3 -0
  7. package/dist/analyze/analyze.js +11 -0
  8. package/dist/analyze/findings.d.ts +8 -0
  9. package/dist/analyze/findings.js +1 -0
  10. package/dist/analyze/report.d.ts +3 -0
  11. package/dist/analyze/report.js +9 -0
  12. package/dist/analyze/rules/ad-hoc-completion-condition.d.ts +2 -0
  13. package/dist/analyze/rules/ad-hoc-completion-condition.js +7 -0
  14. package/dist/analyze/rules/cannot-reach-end.d.ts +2 -0
  15. package/dist/analyze/rules/cannot-reach-end.js +28 -0
  16. package/dist/analyze/rules/compensation-association.d.ts +2 -0
  17. package/dist/analyze/rules/compensation-association.js +13 -0
  18. package/dist/analyze/rules/dead-end.d.ts +2 -0
  19. package/dist/analyze/rules/dead-end.js +13 -0
  20. package/dist/analyze/rules/end-event.d.ts +2 -0
  21. package/dist/analyze/rules/end-event.js +8 -0
  22. package/dist/analyze/rules/error-catch.d.ts +2 -0
  23. package/dist/analyze/rules/error-catch.js +14 -0
  24. package/dist/analyze/rules/escalation-catch.d.ts +2 -0
  25. package/dist/analyze/rules/escalation-catch.js +14 -0
  26. package/dist/analyze/rules/gateway-cardinality.d.ts +3 -0
  27. package/dist/analyze/rules/gateway-cardinality.js +17 -0
  28. package/dist/analyze/rules/index.d.ts +4 -0
  29. package/dist/analyze/rules/index.js +21 -0
  30. package/dist/analyze/rules/instantiating-gateway.d.ts +2 -0
  31. package/dist/analyze/rules/instantiating-gateway.js +14 -0
  32. package/dist/analyze/rules/non-interrupting-start.d.ts +2 -0
  33. package/dist/analyze/rules/non-interrupting-start.js +14 -0
  34. package/dist/analyze/rules/reachability.d.ts +2 -0
  35. package/dist/analyze/rules/reachability.js +25 -0
  36. package/dist/analyze/rules/rule.d.ts +7 -0
  37. package/dist/analyze/rules/rule.js +1 -0
  38. package/dist/analyze/rules/signal-catch.d.ts +2 -0
  39. package/dist/analyze/rules/signal-catch.js +12 -0
  40. package/dist/analyze/rules/split-join-pairing.d.ts +3 -0
  41. package/dist/analyze/rules/split-join-pairing.js +50 -0
  42. package/dist/analyze/rules/start-event.d.ts +2 -0
  43. package/dist/analyze/rules/start-event.js +8 -0
  44. package/dist/analyze/rules/task-message-flow.d.ts +2 -0
  45. package/dist/analyze/rules/task-message-flow.js +19 -0
  46. package/dist/analyze/scope-graph.d.ts +56 -0
  47. package/dist/analyze/scope-graph.js +89 -0
  48. package/dist/analyze-cli.d.ts +1 -0
  49. package/dist/analyze-cli.js +5 -0
  50. package/dist/analyze-run.d.ts +12 -0
  51. package/dist/analyze-run.js +85 -0
  52. package/dist/bpmn-ld-cli.d.ts +2 -0
  53. package/dist/bpmn-ld-cli.js +97 -0
  54. package/dist/build-cli.d.ts +1 -0
  55. package/dist/build-cli.js +2 -0
  56. package/dist/build.d.ts +3 -0
  57. package/dist/build.js +38 -0
  58. package/dist/cheat-sheet-catalog.d.ts +10 -0
  59. package/dist/cheat-sheet-catalog.js +72 -0
  60. package/dist/cheat-sheet-cli.d.ts +1 -0
  61. package/dist/cheat-sheet-cli.js +7 -0
  62. package/dist/cheat-sheet-compose.d.ts +13 -0
  63. package/dist/cheat-sheet-compose.js +107 -0
  64. package/dist/cheat-sheet-run.d.ts +11 -0
  65. package/dist/cheat-sheet-run.js +65 -0
  66. package/dist/cheat-sheet-svg.d.ts +2 -0
  67. package/dist/cheat-sheet-svg.js +2 -0
  68. package/dist/cheat-sheet.d.ts +2 -0
  69. package/dist/cheat-sheet.js +2 -0
  70. package/dist/check-xml/check.d.ts +3 -0
  71. package/dist/check-xml/check.js +11 -0
  72. package/dist/check-xml/lint.d.ts +2 -0
  73. package/dist/check-xml/lint.js +47 -0
  74. package/dist/check-xml/moddle.d.ts +6 -0
  75. package/dist/check-xml/moddle.js +23 -0
  76. package/dist/check-xml/types.d.ts +20 -0
  77. package/dist/check-xml/types.js +1 -0
  78. package/dist/check-xml/xsd.d.ts +2 -0
  79. package/dist/check-xml/xsd.js +25 -0
  80. package/dist/check-xml-cli.d.ts +1 -0
  81. package/dist/check-xml-cli.js +5 -0
  82. package/dist/check-xml-run.d.ts +10 -0
  83. package/dist/check-xml-run.js +77 -0
  84. package/dist/convert/analyze-output.d.ts +3 -0
  85. package/dist/convert/analyze-output.js +8 -0
  86. package/dist/convert/convert.d.ts +19 -0
  87. package/dist/convert/convert.js +96 -0
  88. package/dist/convert/errors.d.ts +5 -0
  89. package/dist/convert/errors.js +8 -0
  90. package/dist/convert/extensions.d.ts +23 -0
  91. package/dist/convert/extensions.js +103 -0
  92. package/dist/convert/mapping-check.d.ts +15 -0
  93. package/dist/convert/mapping-check.js +66 -0
  94. package/dist/convert/mapping.d.ts +52 -0
  95. package/dist/convert/mapping.js +273 -0
  96. package/dist/convert/namespaces.d.ts +2 -0
  97. package/dist/convert/namespaces.js +19 -0
  98. package/dist/convert/validate-output.d.ts +2 -0
  99. package/dist/convert/validate-output.js +28 -0
  100. package/dist/convert/warnings.d.ts +9 -0
  101. package/dist/convert/warnings.js +67 -0
  102. package/dist/convert/xml-reader.d.ts +11 -0
  103. package/dist/convert/xml-reader.js +84 -0
  104. package/dist/convert-cli.d.ts +1 -0
  105. package/dist/convert-cli.js +5 -0
  106. package/dist/convert-run.d.ts +10 -0
  107. package/dist/convert-run.js +125 -0
  108. package/dist/coverage-cli.d.ts +1 -0
  109. package/dist/coverage-cli.js +8 -0
  110. package/dist/coverage-mappings.d.ts +3 -0
  111. package/dist/coverage-mappings.js +34 -0
  112. package/dist/coverage-scope.d.ts +11 -0
  113. package/dist/coverage-scope.js +187 -0
  114. package/dist/coverage-xsd.d.ts +15 -0
  115. package/dist/coverage-xsd.js +55 -0
  116. package/dist/coverage.d.ts +35 -0
  117. package/dist/coverage.js +152 -0
  118. package/dist/docs-cli.d.ts +1 -0
  119. package/dist/docs-cli.js +18 -0
  120. package/dist/docs.d.ts +8 -0
  121. package/dist/docs.js +136 -0
  122. package/dist/eval/checks.d.ts +19 -0
  123. package/dist/eval/checks.js +252 -0
  124. package/dist/eval/regenerate.d.ts +10 -0
  125. package/dist/eval/regenerate.js +48 -0
  126. package/dist/eval-regenerate-cli.d.ts +1 -0
  127. package/dist/eval-regenerate-cli.js +16 -0
  128. package/dist/export/data.d.ts +10 -0
  129. package/dist/export/data.js +127 -0
  130. package/dist/export/diagram.d.ts +8 -0
  131. package/dist/export/diagram.js +112 -0
  132. package/dist/export/element.d.ts +27 -0
  133. package/dist/export/element.js +175 -0
  134. package/dist/export/export.d.ts +22 -0
  135. package/dist/export/export.js +124 -0
  136. package/dist/export/extensions.d.ts +18 -0
  137. package/dist/export/extensions.js +122 -0
  138. package/dist/export/layout-export.d.ts +4 -0
  139. package/dist/export/layout-export.js +25 -0
  140. package/dist/export/mapping-check.d.ts +39 -0
  141. package/dist/export/mapping-check.js +175 -0
  142. package/dist/export/normalize.d.ts +3 -0
  143. package/dist/export/normalize.js +67 -0
  144. package/dist/export-cli.d.ts +1 -0
  145. package/dist/export-cli.js +5 -0
  146. package/dist/export-run.d.ts +10 -0
  147. package/dist/export-run.js +157 -0
  148. package/dist/index.d.ts +10 -0
  149. package/dist/index.js +10 -0
  150. package/dist/install-skill-run.d.ts +8 -0
  151. package/dist/install-skill-run.js +30 -0
  152. package/dist/install-skill.d.ts +23 -0
  153. package/dist/install-skill.js +76 -0
  154. package/dist/layout/collaboration.d.ts +36 -0
  155. package/dist/layout/collaboration.js +152 -0
  156. package/dist/layout/di.d.ts +15 -0
  157. package/dist/layout/di.js +52 -0
  158. package/dist/layout/extract.d.ts +2 -0
  159. package/dist/layout/extract.js +99 -0
  160. package/dist/layout/lanes.d.ts +30 -0
  161. package/dist/layout/lanes.js +112 -0
  162. package/dist/layout/layering.d.ts +7 -0
  163. package/dist/layout/layering.js +53 -0
  164. package/dist/layout/layout.d.ts +12 -0
  165. package/dist/layout/layout.js +299 -0
  166. package/dist/layout/model.d.ts +52 -0
  167. package/dist/layout/model.js +10 -0
  168. package/dist/layout/placement.d.ts +25 -0
  169. package/dist/layout/placement.js +256 -0
  170. package/dist/layout/standalone.d.ts +8 -0
  171. package/dist/layout/standalone.js +50 -0
  172. package/dist/layout-cli.d.ts +1 -0
  173. package/dist/layout-cli.js +5 -0
  174. package/dist/layout-run.d.ts +9 -0
  175. package/dist/layout-run.js +105 -0
  176. package/dist/loader.d.ts +5 -0
  177. package/dist/loader.js +7 -0
  178. package/dist/namespace.d.ts +5 -0
  179. package/dist/namespace.js +5 -0
  180. package/dist/ontology.d.ts +19 -0
  181. package/dist/ontology.js +94 -0
  182. package/dist/paths.d.ts +1 -0
  183. package/dist/paths.js +2 -0
  184. package/dist/render/geometry.d.ts +40 -0
  185. package/dist/render/geometry.js +81 -0
  186. package/dist/render/renderer.d.ts +31 -0
  187. package/dist/render/renderer.js +369 -0
  188. package/dist/render/symbols.d.ts +10 -0
  189. package/dist/render/symbols.js +26 -0
  190. package/dist/render/text.d.ts +20 -0
  191. package/dist/render/text.js +28 -0
  192. package/dist/render-cli.d.ts +1 -0
  193. package/dist/render-cli.js +7 -0
  194. package/dist/render-run.d.ts +9 -0
  195. package/dist/render-run.js +161 -0
  196. package/dist/render.d.ts +4 -0
  197. package/dist/render.js +4 -0
  198. package/dist/schema-overrides.d.ts +14 -0
  199. package/dist/schema-overrides.js +36 -0
  200. package/dist/schema-validate.d.ts +5 -0
  201. package/dist/schema-validate.js +8 -0
  202. package/dist/schema.d.ts +6 -0
  203. package/dist/schema.js +114 -0
  204. package/dist/shacl.d.ts +15 -0
  205. package/dist/shacl.js +37 -0
  206. package/dist/validate-cli.d.ts +1 -0
  207. package/dist/validate-cli.js +5 -0
  208. package/dist/validate-run.d.ts +8 -0
  209. package/dist/validate-run.js +58 -0
  210. package/dist/validate.d.ts +11 -0
  211. package/dist/validate.js +94 -0
  212. package/dist/versioning-cli.d.ts +1 -0
  213. package/dist/versioning-cli.js +18 -0
  214. package/dist/versioning.d.ts +17 -0
  215. package/dist/versioning.js +45 -0
  216. package/ontology/core.ttl +993 -0
  217. package/ontology/di.ttl +167 -0
  218. package/package.json +77 -4
  219. package/reference/bpmn-xsd/BPMN20.xsd +37 -0
  220. package/reference/bpmn-xsd/BPMNDI.xsd +100 -0
  221. package/reference/bpmn-xsd/DC.xsd +29 -0
  222. package/reference/bpmn-xsd/DI.xsd +100 -0
  223. package/reference/bpmn-xsd/Semantic.xsd +1562 -0
  224. package/reference/rospocher/ATTRIBUTION.md +22 -0
  225. package/reference/rospocher/BPMNOntology.owl +8937 -0
  226. package/reference/rospocher-verified.json +221 -0
  227. package/schema/bpmn-ld.schema.json +15230 -0
  228. package/shapes/core.shapes.ttl +398 -0
  229. package/skills/bpmn-ld/SKILL.md +154 -0
  230. package/skills/bpmn-ld/evals/models/order-approval-di.jsonld +296 -0
  231. package/skills/bpmn-ld/evals/models/refund-di.bpmn +82 -0
  232. package/skills/bpmn-ld/evals/models/refund.bpmn +18 -0
  233. package/skills/bpmn-ld/evals/outputs/explain-collaboration.md +22 -0
  234. package/skills/bpmn-ld/evals/outputs/explain-order-approval.md +24 -0
  235. package/skills/bpmn-ld/evals/outputs/explain-refund.md +17 -0
  236. package/skills/bpmn-ld/evals/outputs/generate-activity-compensation.jsonld +39 -0
  237. package/skills/bpmn-ld/evals/outputs/generate-ad-hoc-sub-process.jsonld +52 -0
  238. package/skills/bpmn-ld/evals/outputs/generate-boundary-event.jsonld +27 -0
  239. package/skills/bpmn-ld/evals/outputs/generate-collaboration.jsonld +49 -0
  240. package/skills/bpmn-ld/evals/outputs/generate-conditions.jsonld +93 -0
  241. package/skills/bpmn-ld/evals/outputs/generate-diagram-properties.jsonld +340 -0
  242. package/skills/bpmn-ld/evals/outputs/generate-error.jsonld +217 -0
  243. package/skills/bpmn-ld/evals/outputs/generate-escalation.jsonld +231 -0
  244. package/skills/bpmn-ld/evals/outputs/generate-event-definition-ref.jsonld +67 -0
  245. package/skills/bpmn-ld/evals/outputs/generate-event-sub-process.jsonld +54 -0
  246. package/skills/bpmn-ld/evals/outputs/generate-exclusive-choice.jsonld +32 -0
  247. package/skills/bpmn-ld/evals/outputs/generate-instantiating-gateway.jsonld +24 -0
  248. package/skills/bpmn-ld/evals/outputs/generate-lane-partition.jsonld +46 -0
  249. package/skills/bpmn-ld/evals/outputs/generate-link-event.expect.json +11 -0
  250. package/skills/bpmn-ld/evals/outputs/generate-link-event.jsonld +57 -0
  251. package/skills/bpmn-ld/evals/outputs/generate-loop.jsonld +30 -0
  252. package/skills/bpmn-ld/evals/outputs/generate-message.jsonld +61 -0
  253. package/skills/bpmn-ld/evals/outputs/generate-parallel-branches.jsonld +25 -0
  254. package/skills/bpmn-ld/evals/outputs/generate-process-attributes.jsonld +49 -0
  255. package/skills/bpmn-ld/evals/outputs/generate-script-task.jsonld +18 -0
  256. package/skills/bpmn-ld/evals/outputs/generate-signal.jsonld +178 -0
  257. package/skills/bpmn-ld/evals/outputs/generate-sub-process.jsonld +31 -0
  258. package/skills/bpmn-ld/evals/outputs/generate-targeted-compensation.jsonld +40 -0
  259. package/skills/bpmn-ld/evals/outputs/generate-task-implementation.jsonld +18 -0
  260. package/skills/bpmn-ld/evals/outputs/generate-task-message-references.jsonld +49 -0
  261. package/skills/bpmn-ld/evals/outputs/generate-transaction.jsonld +48 -0
  262. package/skills/bpmn-ld/evals/outputs/modify-order-approval.jsonld +376 -0
  263. package/skills/bpmn-ld/evals/outputs/modify-refund.jsonld +373 -0
  264. package/skills/bpmn-ld/evals/outputs/order-approval.jsonld +29 -0
  265. package/skills/bpmn-ld/evals/outputs/refine-order-approval.jsonld +377 -0
  266. package/skills/bpmn-ld/evals/prompts/explain-collaboration.md +3 -0
  267. package/skills/bpmn-ld/evals/prompts/explain-order-approval.md +3 -0
  268. package/skills/bpmn-ld/evals/prompts/explain-refund.md +3 -0
  269. package/skills/bpmn-ld/evals/prompts/generate-activity-compensation.md +1 -0
  270. package/skills/bpmn-ld/evals/prompts/generate-ad-hoc-sub-process.md +1 -0
  271. package/skills/bpmn-ld/evals/prompts/generate-boundary-event.md +1 -0
  272. package/skills/bpmn-ld/evals/prompts/generate-collaboration.md +1 -0
  273. package/skills/bpmn-ld/evals/prompts/generate-conditions.md +1 -0
  274. package/skills/bpmn-ld/evals/prompts/generate-diagram-properties.md +1 -0
  275. package/skills/bpmn-ld/evals/prompts/generate-error.md +1 -0
  276. package/skills/bpmn-ld/evals/prompts/generate-escalation.md +1 -0
  277. package/skills/bpmn-ld/evals/prompts/generate-event-definition-ref.md +1 -0
  278. package/skills/bpmn-ld/evals/prompts/generate-event-sub-process.md +1 -0
  279. package/skills/bpmn-ld/evals/prompts/generate-exclusive-choice.md +1 -0
  280. package/skills/bpmn-ld/evals/prompts/generate-instantiating-gateway.md +1 -0
  281. package/skills/bpmn-ld/evals/prompts/generate-lane-partition.md +1 -0
  282. package/skills/bpmn-ld/evals/prompts/generate-link-event.md +1 -0
  283. package/skills/bpmn-ld/evals/prompts/generate-loop.md +1 -0
  284. package/skills/bpmn-ld/evals/prompts/generate-message.md +1 -0
  285. package/skills/bpmn-ld/evals/prompts/generate-parallel-branches.md +1 -0
  286. package/skills/bpmn-ld/evals/prompts/generate-process-attributes.md +1 -0
  287. package/skills/bpmn-ld/evals/prompts/generate-script-task.md +1 -0
  288. package/skills/bpmn-ld/evals/prompts/generate-signal.md +1 -0
  289. package/skills/bpmn-ld/evals/prompts/generate-sub-process.md +1 -0
  290. package/skills/bpmn-ld/evals/prompts/generate-targeted-compensation.md +1 -0
  291. package/skills/bpmn-ld/evals/prompts/generate-task-implementation.md +1 -0
  292. package/skills/bpmn-ld/evals/prompts/generate-task-message-references.md +1 -0
  293. package/skills/bpmn-ld/evals/prompts/generate-transaction.md +1 -0
  294. package/skills/bpmn-ld/evals/prompts/modify-order-approval.md +4 -0
  295. package/skills/bpmn-ld/evals/prompts/modify-refund.md +4 -0
  296. package/skills/bpmn-ld/evals/prompts/order-approval.md +1 -0
  297. package/skills/bpmn-ld/evals/prompts/refine-order-approval.md +8 -0
  298. package/skills/bpmn-ld/examples/positive/activity-compensation.jsonld +39 -0
  299. package/skills/bpmn-ld/examples/positive/ad-hoc-sub-process.jsonld +52 -0
  300. package/skills/bpmn-ld/examples/positive/boundary-event.jsonld +27 -0
  301. package/skills/bpmn-ld/examples/positive/collaboration.jsonld +49 -0
  302. package/skills/bpmn-ld/examples/positive/conditions.jsonld +93 -0
  303. package/skills/bpmn-ld/examples/positive/diagram-properties.jsonld +340 -0
  304. package/skills/bpmn-ld/examples/positive/error.jsonld +208 -0
  305. package/skills/bpmn-ld/examples/positive/escalation.jsonld +231 -0
  306. package/skills/bpmn-ld/examples/positive/event-definition-ref.jsonld +142 -0
  307. package/skills/bpmn-ld/examples/positive/event-sub-process.jsonld +54 -0
  308. package/skills/bpmn-ld/examples/positive/exclusive-choice.jsonld +32 -0
  309. package/skills/bpmn-ld/examples/positive/instantiating-gateway.jsonld +24 -0
  310. package/skills/bpmn-ld/examples/positive/lane-partition.jsonld +46 -0
  311. package/skills/bpmn-ld/examples/positive/link-event.expect.json +10 -0
  312. package/skills/bpmn-ld/examples/positive/link-event.jsonld +138 -0
  313. package/skills/bpmn-ld/examples/positive/loop.jsonld +30 -0
  314. package/skills/bpmn-ld/examples/positive/message.jsonld +60 -0
  315. package/skills/bpmn-ld/examples/positive/order-approval.jsonld +29 -0
  316. package/skills/bpmn-ld/examples/positive/parallel-branches.jsonld +25 -0
  317. package/skills/bpmn-ld/examples/positive/process-attributes.jsonld +49 -0
  318. package/skills/bpmn-ld/examples/positive/script-task.jsonld +18 -0
  319. package/skills/bpmn-ld/examples/positive/signal.jsonld +150 -0
  320. package/skills/bpmn-ld/examples/positive/sub-process.jsonld +31 -0
  321. package/skills/bpmn-ld/examples/positive/targeted-compensation.jsonld +40 -0
  322. package/skills/bpmn-ld/examples/positive/task-implementation.jsonld +18 -0
  323. package/skills/bpmn-ld/examples/positive/task-message-references.jsonld +151 -0
  324. package/skills/bpmn-ld/examples/positive/transaction.jsonld +48 -0
  325. package/skills/bpmn-ld/references/clarification-and-refinement.md +60 -0
  326. package/skills/bpmn-ld/references/common-mistakes.md +110 -0
  327. package/skills/bpmn-ld/references/explain-and-document.md +36 -0
  328. package/skills/bpmn-ld/references/modify-existing-model.md +49 -0
  329. package/skills/bpmn-ld/references/patterns.md +292 -0
  330. package/skills/bpmn-ld/references/render-output.md +1 -0
  331. package/skills/bpmn-ld/references/rule-catalogue.md +183 -0
  332. package/skills/bpmn-ld/references/vocabulary-summary.md +65 -0
  333. package/skills/bpmn-ld/template.jsonld +14 -0
  334. package/templates/combined.jsonld +3 -0
  335. package/templates/core.jsonld +170 -0
  336. package/templates/core.shapes.ttl +398 -0
  337. package/templates/core.ttl +993 -0
  338. package/templates/di.jsonld +37 -0
  339. package/templates/di.ttl +167 -0
@@ -0,0 +1,231 @@
1
+ {
2
+ "@context": [
3
+ "../../../../contexts/core.jsonld",
4
+ {
5
+ "@base": "https://example.org/models/escalation-request/"
6
+ }
7
+ ],
8
+ "@graph": [
9
+ {
10
+ "id": "Escalation_BoardApproval",
11
+ "type": "Escalation",
12
+ "name": "Board approval",
13
+ "escalationCode": "BOARD_APPROVAL"
14
+ },
15
+ {
16
+ "id": "Escalation_ManagerReview",
17
+ "type": "Escalation",
18
+ "name": "Manager review",
19
+ "escalationCode": "MANAGER_REVIEW"
20
+ },
21
+ {
22
+ "id": "Process_Request",
23
+ "type": "Process",
24
+ "name": "Request process",
25
+ "flowElements": [
26
+ {
27
+ "id": "RequestReceived",
28
+ "type": "StartEvent",
29
+ "name": "Request received"
30
+ },
31
+ {
32
+ "id": "AssessRequest",
33
+ "type": "SubProcess",
34
+ "name": "Assess request",
35
+ "flowElements": [
36
+ {
37
+ "id": "AssessStart",
38
+ "type": "StartEvent",
39
+ "name": "Start assessment"
40
+ },
41
+ {
42
+ "id": "CheckAmount",
43
+ "type": "UserTask",
44
+ "name": "Check amount"
45
+ },
46
+ {
47
+ "id": "AmountSize",
48
+ "type": "ExclusiveGateway",
49
+ "name": "Amount size",
50
+ "default": "AssessFlow_6"
51
+ },
52
+ {
53
+ "id": "ManagerRaised",
54
+ "type": "IntermediateThrowEvent",
55
+ "name": "Raise to manager",
56
+ "eventDefinitions": [
57
+ {
58
+ "id": "ManagerRaisedDefinition",
59
+ "type": "EscalationEventDefinition",
60
+ "escalationRef": "Escalation_ManagerReview"
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ "id": "BoardRaised",
66
+ "type": "EndEvent",
67
+ "name": "Raise to board",
68
+ "eventDefinitions": [
69
+ {
70
+ "id": "BoardRaisedDefinition",
71
+ "type": "EscalationEventDefinition",
72
+ "escalationRef": "Escalation_BoardApproval"
73
+ }
74
+ ]
75
+ },
76
+ {
77
+ "id": "AssessEnd",
78
+ "type": "EndEvent",
79
+ "name": "Assessed"
80
+ },
81
+ {
82
+ "id": "ManagerForwarded",
83
+ "type": "EndEvent",
84
+ "name": "Forwarded to manager"
85
+ },
86
+ {
87
+ "id": "AssessFlow_1",
88
+ "type": "SequenceFlow",
89
+ "sourceRef": "AssessStart",
90
+ "targetRef": "CheckAmount"
91
+ },
92
+ {
93
+ "id": "AssessFlow_2",
94
+ "type": "SequenceFlow",
95
+ "sourceRef": "CheckAmount",
96
+ "targetRef": "AmountSize"
97
+ },
98
+ {
99
+ "id": "AssessFlow_3",
100
+ "type": "SequenceFlow",
101
+ "name": "Large",
102
+ "sourceRef": "AmountSize",
103
+ "targetRef": "ManagerRaised",
104
+ "conditionExpression": {
105
+ "type": "FormalExpression",
106
+ "body": "large"
107
+ }
108
+ },
109
+ {
110
+ "id": "AssessFlow_4",
111
+ "type": "SequenceFlow",
112
+ "sourceRef": "ManagerRaised",
113
+ "targetRef": "ManagerForwarded"
114
+ },
115
+ {
116
+ "id": "AssessFlow_5",
117
+ "type": "SequenceFlow",
118
+ "name": "Very large",
119
+ "sourceRef": "AmountSize",
120
+ "targetRef": "BoardRaised",
121
+ "conditionExpression": {
122
+ "type": "FormalExpression",
123
+ "body": "veryLarge"
124
+ }
125
+ },
126
+ {
127
+ "id": "AssessFlow_6",
128
+ "type": "SequenceFlow",
129
+ "name": "Small",
130
+ "sourceRef": "AmountSize",
131
+ "targetRef": "AssessEnd"
132
+ }
133
+ ]
134
+ },
135
+ {
136
+ "id": "ManagerCaught",
137
+ "type": "BoundaryEvent",
138
+ "name": "Manager review",
139
+ "attachedToRef": "AssessRequest",
140
+ "cancelActivity": false,
141
+ "eventDefinitions": [
142
+ {
143
+ "type": "EscalationEventDefinition",
144
+ "escalationRef": "Escalation_ManagerReview"
145
+ }
146
+ ]
147
+ },
148
+ {
149
+ "id": "ReviewByManager",
150
+ "type": "UserTask",
151
+ "name": "Review by manager"
152
+ },
153
+ {
154
+ "id": "ManagerDone",
155
+ "type": "EndEvent",
156
+ "name": "Manager reviewed"
157
+ },
158
+ {
159
+ "id": "RequestAssessed",
160
+ "type": "EndEvent",
161
+ "name": "Request assessed"
162
+ },
163
+ {
164
+ "id": "BoardHandling",
165
+ "type": "SubProcess",
166
+ "name": "Handle board approval",
167
+ "triggeredByEvent": true,
168
+ "flowElements": [
169
+ {
170
+ "id": "BoardCaught",
171
+ "type": "StartEvent",
172
+ "name": "Board approval",
173
+ "eventDefinitions": [
174
+ {
175
+ "type": "EscalationEventDefinition",
176
+ "escalationRef": "Escalation_BoardApproval"
177
+ }
178
+ ]
179
+ },
180
+ {
181
+ "id": "PrepareBoardPaper",
182
+ "type": "UserTask",
183
+ "name": "Prepare board paper"
184
+ },
185
+ {
186
+ "id": "BoardHandled",
187
+ "type": "EndEvent",
188
+ "name": "Paper prepared"
189
+ },
190
+ {
191
+ "id": "BoardFlow_1",
192
+ "type": "SequenceFlow",
193
+ "sourceRef": "BoardCaught",
194
+ "targetRef": "PrepareBoardPaper"
195
+ },
196
+ {
197
+ "id": "BoardFlow_2",
198
+ "type": "SequenceFlow",
199
+ "sourceRef": "PrepareBoardPaper",
200
+ "targetRef": "BoardHandled"
201
+ }
202
+ ]
203
+ },
204
+ {
205
+ "id": "RequestFlow_1",
206
+ "type": "SequenceFlow",
207
+ "sourceRef": "RequestReceived",
208
+ "targetRef": "AssessRequest"
209
+ },
210
+ {
211
+ "id": "RequestFlow_2",
212
+ "type": "SequenceFlow",
213
+ "sourceRef": "AssessRequest",
214
+ "targetRef": "RequestAssessed"
215
+ },
216
+ {
217
+ "id": "RequestFlow_3",
218
+ "type": "SequenceFlow",
219
+ "sourceRef": "ManagerCaught",
220
+ "targetRef": "ReviewByManager"
221
+ },
222
+ {
223
+ "id": "RequestFlow_4",
224
+ "type": "SequenceFlow",
225
+ "sourceRef": "ReviewByManager",
226
+ "targetRef": "ManagerDone"
227
+ }
228
+ ]
229
+ }
230
+ ]
231
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "@context": [
3
+ "../../../../contexts/core.jsonld",
4
+ {
5
+ "@base": "https://example.org/models/weekly-reports/"
6
+ }
7
+ ],
8
+ "@graph": [
9
+ {
10
+ "id": "Definition_Weekly",
11
+ "type": "TimerEventDefinition",
12
+ "timeCycle": "R/P1W"
13
+ },
14
+ {
15
+ "id": "Collaboration_Weekly",
16
+ "type": "Collaboration",
17
+ "participants": [
18
+ {
19
+ "id": "Participant_Sales",
20
+ "type": "Participant",
21
+ "name": "Sales",
22
+ "processRef": "Process_Sales"
23
+ },
24
+ {
25
+ "id": "Participant_Stock",
26
+ "type": "Participant",
27
+ "name": "Stock",
28
+ "processRef": "Process_Stock"
29
+ }
30
+ ]
31
+ },
32
+ {
33
+ "id": "Process_Sales",
34
+ "type": "Process",
35
+ "name": "Sales process",
36
+ "flowElements": [
37
+ {
38
+ "id": "SalesMonday",
39
+ "type": "StartEvent",
40
+ "name": "Monday morning",
41
+ "eventDefinitionRef": ["Definition_Weekly"]
42
+ },
43
+ { "id": "CompileSalesReport", "type": "UserTask", "name": "Compile sales report" },
44
+ { "id": "SalesReportSent", "type": "EndEvent", "name": "Sales report sent" },
45
+ { "id": "SalesFlow_1", "type": "SequenceFlow", "sourceRef": "SalesMonday", "targetRef": "CompileSalesReport" },
46
+ { "id": "SalesFlow_2", "type": "SequenceFlow", "sourceRef": "CompileSalesReport", "targetRef": "SalesReportSent" }
47
+ ]
48
+ },
49
+ {
50
+ "id": "Process_Stock",
51
+ "type": "Process",
52
+ "name": "Stock process",
53
+ "flowElements": [
54
+ {
55
+ "id": "StockMonday",
56
+ "type": "StartEvent",
57
+ "name": "Monday morning",
58
+ "eventDefinitionRef": ["Definition_Weekly"]
59
+ },
60
+ { "id": "CountStock", "type": "UserTask", "name": "Count stock" },
61
+ { "id": "StockCountRecorded", "type": "EndEvent", "name": "Stock count recorded" },
62
+ { "id": "StockFlow_1", "type": "SequenceFlow", "sourceRef": "StockMonday", "targetRef": "CountStock" },
63
+ { "id": "StockFlow_2", "type": "SequenceFlow", "sourceRef": "CountStock", "targetRef": "StockCountRecorded" }
64
+ ]
65
+ }
66
+ ]
67
+ }
@@ -0,0 +1,54 @@
1
+ {
2
+ "@context": [
3
+ "../../../../contexts/core.jsonld",
4
+ { "@base": "https://example.org/models/event-sub-process/" }
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": "Task_Handle", "type": "UserTask", "name": "Handle order" },
12
+ { "id": "EndEvent_Handled", "type": "EndEvent", "name": "Order handled" },
13
+ {
14
+ "id": "SubProcess_Reminders",
15
+ "type": "SubProcess",
16
+ "name": "Send reminders",
17
+ "triggeredByEvent": true,
18
+ "flowElements": [
19
+ {
20
+ "id": "StartEvent_EveryHour",
21
+ "type": "StartEvent",
22
+ "name": "Every hour",
23
+ "isInterrupting": false,
24
+ "eventDefinitions": [{ "type": "TimerEventDefinition", "timeCycle": "R/PT1H" }]
25
+ },
26
+ { "id": "Task_Remind", "type": "UserTask", "name": "Send reminder" },
27
+ { "id": "EndEvent_Reminded", "type": "EndEvent", "name": "Reminder sent" },
28
+ { "id": "Flow_EveryHour", "type": "SequenceFlow", "sourceRef": "StartEvent_EveryHour", "targetRef": "Task_Remind" },
29
+ { "id": "Flow_Reminded", "type": "SequenceFlow", "sourceRef": "Task_Remind", "targetRef": "EndEvent_Reminded" }
30
+ ]
31
+ },
32
+ {
33
+ "id": "SubProcess_Cancel",
34
+ "type": "SubProcess",
35
+ "name": "Cancel order",
36
+ "triggeredByEvent": true,
37
+ "flowElements": [
38
+ {
39
+ "id": "StartEvent_Cancelled",
40
+ "type": "StartEvent",
41
+ "name": "Customer cancels",
42
+ "isInterrupting": true,
43
+ "eventDefinitions": [{ "type": "MessageEventDefinition" }]
44
+ },
45
+ { "id": "Task_Refund", "type": "UserTask", "name": "Refund customer" },
46
+ { "id": "EndEvent_Cancelled", "type": "EndEvent", "name": "Order cancelled" },
47
+ { "id": "Flow_Cancelled", "type": "SequenceFlow", "sourceRef": "StartEvent_Cancelled", "targetRef": "Task_Refund" },
48
+ { "id": "Flow_Refunded", "type": "SequenceFlow", "sourceRef": "Task_Refund", "targetRef": "EndEvent_Cancelled" }
49
+ ]
50
+ },
51
+ { "id": "Flow_Received", "type": "SequenceFlow", "sourceRef": "StartEvent_Received", "targetRef": "Task_Handle" },
52
+ { "id": "Flow_Handled", "type": "SequenceFlow", "sourceRef": "Task_Handle", "targetRef": "EndEvent_Handled" }
53
+ ]
54
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "@context": [
3
+ "../../../../contexts/core.jsonld",
4
+ { "@base": "https://example.org/models/exclusive-choice/" }
5
+ ],
6
+ "id": "Process_Refund",
7
+ "type": "Process",
8
+ "name": "Refund request",
9
+ "flowElements": [
10
+ { "id": "StartEvent_Requested", "type": "StartEvent", "name": "Refund requested" },
11
+ { "id": "ExclusiveGateway_Amount", "type": "ExclusiveGateway", "name": "Amount over 100?", "gatewayDirection": "Diverging", "default": "Flow_Small" },
12
+ { "id": "Task_ManagerApproval", "type": "UserTask", "name": "Approve refund" },
13
+ { "id": "Task_AutoApprove", "type": "ServiceTask", "name": "Approve automatically" },
14
+ { "id": "ExclusiveGateway_Merge", "type": "ExclusiveGateway", "gatewayDirection": "Converging" },
15
+ { "id": "Task_PayOut", "type": "ServiceTask", "name": "Pay out refund" },
16
+ { "id": "EndEvent_Refunded", "type": "EndEvent", "name": "Refund paid" },
17
+ { "id": "Flow_Requested", "type": "SequenceFlow", "sourceRef": "StartEvent_Requested", "targetRef": "ExclusiveGateway_Amount" },
18
+ {
19
+ "id": "Flow_Large",
20
+ "type": "SequenceFlow",
21
+ "name": "Yes",
22
+ "sourceRef": "ExclusiveGateway_Amount",
23
+ "targetRef": "Task_ManagerApproval",
24
+ "conditionExpression": { "type": "FormalExpression", "language": "https://262.ecma-international.org/", "body": "amount > 100" }
25
+ },
26
+ { "id": "Flow_Small", "type": "SequenceFlow", "name": "No", "sourceRef": "ExclusiveGateway_Amount", "targetRef": "Task_AutoApprove" },
27
+ { "id": "Flow_ManagerDone", "type": "SequenceFlow", "sourceRef": "Task_ManagerApproval", "targetRef": "ExclusiveGateway_Merge" },
28
+ { "id": "Flow_AutoDone", "type": "SequenceFlow", "sourceRef": "Task_AutoApprove", "targetRef": "ExclusiveGateway_Merge" },
29
+ { "id": "Flow_Merged", "type": "SequenceFlow", "sourceRef": "ExclusiveGateway_Merge", "targetRef": "Task_PayOut" },
30
+ { "id": "Flow_Paid", "type": "SequenceFlow", "sourceRef": "Task_PayOut", "targetRef": "EndEvent_Refunded" }
31
+ ]
32
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "@context": [
3
+ "../../../../contexts/core.jsonld",
4
+ { "@base": "https://example.org/models/instantiating-gateway/" }
5
+ ],
6
+ "id": "Process_Request",
7
+ "type": "Process",
8
+ "name": "Request handling",
9
+ "flowElements": [
10
+ { "id": "EventBasedGateway_Request", "type": "EventBasedGateway", "name": "First request", "instantiate": true, "eventGatewayType": "Exclusive" },
11
+ { "id": "IntermediateCatchEvent_Order", "type": "IntermediateCatchEvent", "name": "Order placed", "eventDefinitions": [{ "type": "MessageEventDefinition" }] },
12
+ { "id": "IntermediateCatchEvent_Quote", "type": "IntermediateCatchEvent", "name": "Quote requested", "eventDefinitions": [{ "type": "MessageEventDefinition" }] },
13
+ { "id": "Task_HandleOrder", "type": "UserTask", "name": "Handle order" },
14
+ { "id": "Task_PrepareQuote", "type": "UserTask", "name": "Prepare quote" },
15
+ { "id": "EndEvent_OrderHandled", "type": "EndEvent", "name": "Order handled" },
16
+ { "id": "EndEvent_QuoteSent", "type": "EndEvent", "name": "Quote sent" },
17
+ { "id": "Flow_Order", "type": "SequenceFlow", "sourceRef": "EventBasedGateway_Request", "targetRef": "IntermediateCatchEvent_Order" },
18
+ { "id": "Flow_Quote", "type": "SequenceFlow", "sourceRef": "EventBasedGateway_Request", "targetRef": "IntermediateCatchEvent_Quote" },
19
+ { "id": "Flow_OrderPlaced", "type": "SequenceFlow", "sourceRef": "IntermediateCatchEvent_Order", "targetRef": "Task_HandleOrder" },
20
+ { "id": "Flow_QuoteRequested", "type": "SequenceFlow", "sourceRef": "IntermediateCatchEvent_Quote", "targetRef": "Task_PrepareQuote" },
21
+ { "id": "Flow_OrderHandled", "type": "SequenceFlow", "sourceRef": "Task_HandleOrder", "targetRef": "EndEvent_OrderHandled" },
22
+ { "id": "Flow_QuoteSent", "type": "SequenceFlow", "sourceRef": "Task_PrepareQuote", "targetRef": "EndEvent_QuoteSent" }
23
+ ]
24
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "@context": [
3
+ "../../../../contexts/core.jsonld",
4
+ { "@base": "https://example.org/models/parcel-dispatch/" }
5
+ ],
6
+ "id": "Process_Dispatch",
7
+ "type": "Process",
8
+ "name": "Dispatch",
9
+ "laneSets": [
10
+ {
11
+ "id": "LaneSet_Dispatch",
12
+ "type": "LaneSet",
13
+ "lanes": [
14
+ {
15
+ "id": "Lane_Region",
16
+ "type": "Lane",
17
+ "name": "Region",
18
+ "partitionElement": { "id": "Partition_Region", "type": "Participant" },
19
+ "flowNodeRef": ["Receive", "Assign"],
20
+ "childLaneSet": {
21
+ "id": "ChildLaneSet_Region",
22
+ "type": "LaneSet",
23
+ "lanes": [
24
+ {
25
+ "id": "Lane_North",
26
+ "type": "Lane",
27
+ "name": "North",
28
+ "partitionElementRef": "Partition_Region",
29
+ "flowNodeRef": ["Deliver"]
30
+ }
31
+ ]
32
+ }
33
+ }
34
+ ]
35
+ }
36
+ ],
37
+ "flowElements": [
38
+ { "id": "Receive", "type": "StartEvent", "name": "Parcel received" },
39
+ { "id": "Assign", "type": "UserTask", "name": "Assign courier" },
40
+ { "id": "Deliver", "type": "UserTask", "name": "Deliver parcel" },
41
+ { "id": "Delivered", "type": "EndEvent", "name": "Parcel delivered" },
42
+ { "id": "Flow_1", "type": "SequenceFlow", "sourceRef": "Receive", "targetRef": "Assign", "isImmediate": true },
43
+ { "id": "Flow_2", "type": "SequenceFlow", "sourceRef": "Assign", "targetRef": "Deliver", "isImmediate": false },
44
+ { "id": "Flow_3", "type": "SequenceFlow", "sourceRef": "Deliver", "targetRef": "Delivered" }
45
+ ]
46
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "analyzer": [
3
+ "warning node-dead-end https://example.org/models/support-request/CloseAfterEscalation: flow node has no outgoing sequence flow and is not an end event",
4
+ "warning node-dead-end https://example.org/models/support-request/CloseAfterAnswer: flow node has no outgoing sequence flow and is not an end event",
5
+ "warning node-cannot-reach-end https://example.org/models/support-request/RequestReceived: no end event can be reached from this flow node",
6
+ "warning node-cannot-reach-end https://example.org/models/support-request/Classify: no end event can be reached from this flow node",
7
+ "warning node-cannot-reach-end https://example.org/models/support-request/Urgent: no end event can be reached from this flow node",
8
+ "warning node-cannot-reach-end https://example.org/models/support-request/Escalate: no end event can be reached from this flow node",
9
+ "warning node-cannot-reach-end https://example.org/models/support-request/Answer: no end event can be reached from this flow node"
10
+ ]
11
+ }
@@ -0,0 +1,57 @@
1
+ {
2
+ "@context": [
3
+ "../../../../contexts/core.jsonld",
4
+ { "@base": "https://example.org/models/support-request/" }
5
+ ],
6
+ "id": "Process_SupportRequest",
7
+ "type": "Process",
8
+ "name": "Support request",
9
+ "flowElements": [
10
+ { "id": "RequestReceived", "type": "StartEvent", "name": "Request received" },
11
+ { "id": "Classify", "type": "UserTask", "name": "Classify request" },
12
+ { "id": "Urgent", "type": "ExclusiveGateway", "name": "Urgent?", "default": "Flow_Normal" },
13
+ { "id": "Escalate", "type": "UserTask", "name": "Escalate request" },
14
+ { "id": "Answer", "type": "UserTask", "name": "Answer in normal queue" },
15
+ {
16
+ "id": "CloseAfterEscalation",
17
+ "type": "IntermediateThrowEvent",
18
+ "name": "Close case",
19
+ "eventDefinitions": [
20
+ { "id": "LinkThrow_Escalated", "type": "LinkEventDefinition", "name": "Close case", "target": "LinkCatch_Close" }
21
+ ]
22
+ },
23
+ {
24
+ "id": "CloseAfterAnswer",
25
+ "type": "IntermediateThrowEvent",
26
+ "name": "Close case",
27
+ "eventDefinitions": [
28
+ { "id": "LinkThrow_Answered", "type": "LinkEventDefinition", "name": "Close case", "target": "LinkCatch_Close" }
29
+ ]
30
+ },
31
+ {
32
+ "id": "ContinueClosing",
33
+ "type": "IntermediateCatchEvent",
34
+ "name": "Close case",
35
+ "eventDefinitions": [
36
+ { "id": "LinkCatch_Close", "type": "LinkEventDefinition", "name": "Close case", "source": ["LinkThrow_Escalated", "LinkThrow_Answered"] }
37
+ ]
38
+ },
39
+ { "id": "Archive", "type": "UserTask", "name": "Archive case" },
40
+ { "id": "CaseClosed", "type": "EndEvent", "name": "Case closed" },
41
+ { "id": "Flow_1", "type": "SequenceFlow", "sourceRef": "RequestReceived", "targetRef": "Classify" },
42
+ { "id": "Flow_2", "type": "SequenceFlow", "sourceRef": "Classify", "targetRef": "Urgent" },
43
+ {
44
+ "id": "Flow_Urgent",
45
+ "type": "SequenceFlow",
46
+ "name": "Yes",
47
+ "sourceRef": "Urgent",
48
+ "targetRef": "Escalate",
49
+ "conditionExpression": { "type": "FormalExpression", "body": "request.urgent" }
50
+ },
51
+ { "id": "Flow_Normal", "type": "SequenceFlow", "name": "No", "sourceRef": "Urgent", "targetRef": "Answer" },
52
+ { "id": "Flow_3", "type": "SequenceFlow", "sourceRef": "Escalate", "targetRef": "CloseAfterEscalation" },
53
+ { "id": "Flow_4", "type": "SequenceFlow", "sourceRef": "Answer", "targetRef": "CloseAfterAnswer" },
54
+ { "id": "Flow_5", "type": "SequenceFlow", "sourceRef": "ContinueClosing", "targetRef": "Archive" },
55
+ { "id": "Flow_6", "type": "SequenceFlow", "sourceRef": "Archive", "targetRef": "CaseClosed" }
56
+ ]
57
+ }
@@ -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,61 @@
1
+ {
2
+ "@context": [
3
+ "../../../../contexts/core.jsonld",
4
+ { "@base": "https://example.org/models/message/" }
5
+ ],
6
+ "@graph": [
7
+ { "id": "Message_Confirmation", "type": "Message", "name": "Order confirmation" },
8
+ { "id": "Message_Order", "type": "Message", "name": "Order" },
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": "StartEvent_OrderReceived", "messageRef": "Message_Order" },
19
+ { "id": "MessageFlow_Confirmation", "type": "MessageFlow", "name": "Confirmation", "sourceRef": "SendTask_Confirm", "targetRef": "CatchEvent_ConfirmationReceived", "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" },
29
+ {
30
+ "id": "CatchEvent_ConfirmationReceived",
31
+ "type": "IntermediateCatchEvent",
32
+ "name": "Confirmation received",
33
+ "eventDefinitions": [{ "id": "MessageDefinition_Confirmation", "type": "MessageEventDefinition", "messageRef": "Message_Confirmation" }]
34
+ },
35
+ { "id": "EndEvent_Done", "type": "EndEvent", "name": "Order confirmed" },
36
+ { "id": "Flow_Wants", "type": "SequenceFlow", "sourceRef": "StartEvent_Wants", "targetRef": "SendTask_PlaceOrder" },
37
+ { "id": "Flow_Placed", "type": "SequenceFlow", "sourceRef": "SendTask_PlaceOrder", "targetRef": "CatchEvent_ConfirmationReceived" },
38
+ { "id": "Flow_Confirmed", "type": "SequenceFlow", "sourceRef": "CatchEvent_ConfirmationReceived", "targetRef": "EndEvent_Done" }
39
+ ]
40
+ },
41
+ {
42
+ "id": "Process_Shop",
43
+ "type": "Process",
44
+ "name": "Shop process",
45
+ "flowElements": [
46
+ {
47
+ "id": "StartEvent_OrderReceived",
48
+ "type": "StartEvent",
49
+ "name": "Order received",
50
+ "eventDefinitions": [{ "id": "MessageDefinition_Order", "type": "MessageEventDefinition", "messageRef": "Message_Order" }]
51
+ },
52
+ { "id": "ServiceTask_Prepare", "type": "ServiceTask", "name": "Prepare order" },
53
+ { "id": "SendTask_Confirm", "type": "SendTask", "name": "Send confirmation" },
54
+ { "id": "EndEvent_Handled", "type": "EndEvent", "name": "Order handled" },
55
+ { "id": "Flow_Received", "type": "SequenceFlow", "sourceRef": "StartEvent_OrderReceived", "targetRef": "ServiceTask_Prepare" },
56
+ { "id": "Flow_Prepared", "type": "SequenceFlow", "sourceRef": "ServiceTask_Prepare", "targetRef": "SendTask_Confirm" },
57
+ { "id": "Flow_Sent", "type": "SequenceFlow", "sourceRef": "SendTask_Confirm", "targetRef": "EndEvent_Handled" }
58
+ ]
59
+ }
60
+ ]
61
+ }