Validating the structure and syntax of BPMN diagrams
As shown in Chapter 3, Visio has a built-in engine to validate that a diagram adheres to certain standards. This validation will check for errors in the graphical syntax, such as the following:
- Are all shapes connected?
- Does a gateway shape have one or at least one incoming connection only (so does one arrowhead end at the gateway shape)?
- Does a gateway shape have at least two outgoing connections (so it is indeed a branch we documented)?
These and many more rules are already stored in the diagram template. So, all we need to do is to invoke the Check Diagram feature.rules checking.
Since Visio has a built-in rule-checking engine, we can use this and tell it to check this diagram according to the rules and standards of the BPMN notation rules. This will ensure that we will have a diagram that correctly follows the BPMN visual syntax:
Figure 4.15 – Access to the diagram validation...