bpmn-miwg / bpmn-miwg-test-suite

BPMN 2.0 Test Cases (Models, Diagrams, Serializations) created by the BPMN Model Interchange Working Group (BPMN MIWG) at the OMG
http://www.omgwiki.org/bpmn-miwg/
Other
99 stars 73 forks source link

Connecting a Message via an association to a MessageFlow? #118

Closed svenwb closed 10 years ago

svenwb commented 10 years ago

I got a question regarding a special modelling style. The question is how do you connect the message decorator to a message flow correctly.

First option would be to put it directly on the message flow as shown in the BPMN 2.0 spec on page 411 (see MessageFlow_V1 below)

Second option would be to connect the Message decorator via an undirected association to the message flow (see MessageFlow_V2 below).

I am wondering now if the MessageFlow_V2 example is actually valid BPMN 2.0 and interchangeable with the XML serialization.

From my point of view it is no valid BPMN 2.0 as Message is no FlowElement and therefore cannot be referenced by the BPMNShape element in the BPMNDI part which makes it impossible to place the Message decorator to any arbitrary position as done in MessageFlow_V2.

Additionally there is no BPMNShape listed in the spec for the single message symbol (table 12.35 on page 411). Sections BPMNShape (Section 12.3.2) and BPMNEdge (Section 12.3.3) also supports this. So I would say the meta model of BPMN 2.0 does not support this.

MessageFlow_V1: Message Flow with Message decorator message association v1

MessageFlow_V2: Message Flow with Message decorator connected via association message association v2

svenwb commented 10 years ago

Probably p.67 is the answer to that question.

"An Association is used to associate information and Artifacts with Flow Objects. Text and graphical non-Flow Objects can be associated with the Flow Objects and Flow."

As Message is no Artifact, an Association cannot connect a MessageFlow and a Message. Can somebody confirm that interpretation?

falko commented 10 years ago

Hi Sven, 

Your interpretation is correct. This has been clarified by the BPMN 2.0 FTF and since your initial implementation was based on beta 1 IIRC, it probably doesn't reflect the change. The message decorator is just an attribute on the DI element of the Message Flow.

Cheers, Falko

-------- Mensaje original -------- De: Sven Wagner-Boysen notifications@github.com Fecha:
A: bpmn-miwg/bpmn-miwg-test-suite bpmn-miwg-test-suite@noreply.github.com Asunto: Re: [bpmn-miwg-test-suite] Connecting a Message via an association to a MessageFlow? (#118)

Probably p.67 is the answer to that question.

"An Association is used to associate information and Artifacts with Flow Objects. Text and graphical non-Flow Objects can be associated with the Flow Objects and Flow."

As Message is no Artifact, an Association cannot connect a MessageFlow and a Message. Can somebody confirm that interpretation?

— Reply to this email directly or view it on GitHub.

dgagne commented 10 years ago

Webmeeting 23 Oct 2013 o Clarifications were offered regarding the Message decorator. The message decorator can only appear on the Message Flow. In the case of Choreography Activities the message decorator as a tether that looks like an association but is not one.