Skip to content

Commit

Permalink
Re-introduced the bpmn-envelope-decorator-bounds.xsd with an attribut…
Browse files Browse the repository at this point in the history
…e group
  • Loading branch information
sringuette committed Dec 7, 2022
1 parent 6180d37 commit 9816245
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
BPMN 2.0 Extension for Envelope Decorator Bounds
================================================

link:bpmn-envelope-decorator-bounds.xsd[XML Schema including full Documentation]

This XML schema defines and documents BPMN 2.0 extension
attributes to overcome limitations of BPMN Diagram Interchange.

In particular, the attribute defined in BPMNEnvelopeDecorator allows to interchange the position and dimensions
of the envelope decorator on a BPMN Message Flow.

With this extension the Envelope Decorator can be freely positioned
along the Message Flow and not just in the middle of it.

Expand Down
59 changes: 59 additions & 0 deletions bpmn-envelope-decorator-bounds.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema
xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.omg.org/spec/BPMN/non-normative/extensions/envelope-decorator-bounds/1.0"
xmlns:deco="http://www.omg.org/spec/BPMN/non-normative/extensions/envelope-decorator-bounds/1.0"
xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:di="http://www.omg.org/spec/DD/20100524/DI"
xmlns:dc="http://www.omg.org/spec/DD/20100524/DC">

<import namespace="http://www.omg.org/spec/BPMN/20100524/MODEL" schemaLocation="bpmn/BPMN20.xsd" />
<import namespace="http://www.omg.org/spec/DD/20100524/DC" schemaLocation="bpmn/DC.xsd" />
<import namespace="http://www.omg.org/spec/DD/20100524/DI" schemaLocation="bpmn/DI.xsd" />

<annotation>
<documentation>
This XML schema defines and documents BPMN 2.0 extension attributes
to overcome limitations of BPMN Diagram Interchange.
</documentation>
</annotation>



<attributeGroup name="BPMNEnvelopeDecorator">
<annotation>
<documentation>
Extension attribute on bpmndi:BPMNEdge that reference a bpmn:MessageFlow

BPMNEnvelopeDecorator allows to interchange the position and dimensions
of the Envelope Decorator on a BPMN Message Flow.
With this extension the Envelope Decorator can be freely positioned
along the Message Flow and not just in the middle of it.

BPMN 2.1, page 411 (PDF 441) says:
"Note that for Message Flow with an envelope decorator, the envelope
decorator should be at the midpoint of the message flow. BPMN DI does
not provide an interchange of the bounds of the envelope decorator."

Example:
<bpmndi:BPMNEdge bpmnElement="_09e7cb23-4a1b-4165-b93a-cf635c223ee5" messageVisibleKind="initiating" id="E1373638081031__09e7cb23-4a1b-4165-b93a-cf635c223ee5" deco:height="12" deco:width="17" deco:x="209" deco:y="336.0">
<di:waypoint x="305.0" y="188.0"/>
<di:waypoint x="305.0" y="342.0"/>
<di:waypoint x="130.0" y="342.0"/>
<di:waypoint x="131.0" y="651.0"/>
<bpmndi:BPMNLabel labelStyle="LS1373638080849">
<dc:Bounds height="12.804751171875008" width="94.93333333333335" x="167.10533963254568" y="359.56612835107035"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>

See also bpmn-envelope-decorator-bounds.png
</documentation>
</annotation>
<attribute name="x" type="double"/>
<attribute name="y" type="double"/>
<attribute name="height" type="double"/>
<attribute name="width" type="double"/>
</attributeGroup>

</schema>
1 change: 1 addition & 0 deletions test-validation-of-example.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/sh
xmllint --schema 'bpmn/BPMN20.xsd' --schema bpmn-envelope-decorator-bounds.xsd --noout bpmn-envelope-decorator-bounds.bpmn
xmllint --schema 'bpmn/BPMN20.xsd' --noout bpmn-envelope-decorator-bounds.bpmn

0 comments on commit 9816245

Please sign in to comment.