diff --git a/docs/rules/examples/link-event-correct.bpmn b/docs/rules/examples/link-event-correct.bpmn new file mode 100644 index 0000000..7a1697c --- /dev/null +++ b/docs/rules/examples/link-event-correct.bpmn @@ -0,0 +1,51 @@ + + + + + Flow_0w6huzu + + + + Flow_0w6huzu + + + + Flow_1yhu2w5 + + + Flow_1yhu2w5 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/rules/examples/link-event-correct.png b/docs/rules/examples/link-event-correct.png new file mode 100644 index 0000000..98282ca Binary files /dev/null and b/docs/rules/examples/link-event-correct.png differ diff --git a/docs/rules/examples/link-event-incorrect.bpmn b/docs/rules/examples/link-event-incorrect.bpmn new file mode 100644 index 0000000..4d6f7d8 --- /dev/null +++ b/docs/rules/examples/link-event-incorrect.bpmn @@ -0,0 +1,78 @@ + + + + + Flow_0w6huzu + + + + Flow_0w6huzu + + + + + Flow_1v2vhxj + + + + Flow_1v2vhxj + + + + + + Flow_1m6xxsl + + + + Flow_1m6xxsl + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/rules/examples/link-event-incorrect.png b/docs/rules/examples/link-event-incorrect.png new file mode 100644 index 0000000..1bb6adc Binary files /dev/null and b/docs/rules/examples/link-event-incorrect.png differ diff --git a/docs/rules/link-event.md b/docs/rules/link-event.md new file mode 100644 index 0000000..1644b69 --- /dev/null +++ b/docs/rules/link-event.md @@ -0,0 +1,20 @@ +# Link Event (link-event) + +A rule that checks that link events are used in accordance with the BPMN specification: + +* A link event must be named +* For every link throw event there exists a matching catch event in the same scope + + +Example of __incorrect__ usage for this rule: + +![Incorrect usage example](./examples/link-event-incorrect.png) + +Cf. [`link-event-incorrect.bpmn`](./examples/link-event-incorrect.bpmn). + + +Example of __correct__ usage for this rule: + +![Correct usage example](./examples/link-event-correct.png) + +Cf. [`link-event-correct.bpmn`](./examples/link-event-correct.bpmn).