Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-introduced the bpmn-envelope-decorator-bounds.xsd with an attribute group #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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