| Summary: | Escalation should extend RootElement | ||
|---|---|---|---|
| Product: | [Modeling] MDT.BPMN2 | Reporter: | tsurdilo surdilovic <tsurdilovic> |
| Component: | Core | Assignee: | Project Inbox <mdt-bpmn2-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | antoine, reiner.hille-doering |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
|
Description
tsurdilo surdilovic
Reiner, would this be a bug in the ecore translation ? I'll take a look next week more closely. Tihomir, any contribution to fix the problem is most welcome of course. Hi Antoine, simple change to BPMN20.ecore: <eClassifiers xsi:type="ecore:EClass" name="Escalation" eSuperTypes="#//RootElement"> (addition of eSuperTypes="#//RootElement") fixed the problem for me locally. I'll upload a patch shortly. This could be due to Escalation not having a super type defined in the CMOF file. There are some other types that should extend another type (mostly BaseElement) according to the XSD, but don't have a Generalization in the CMOF and, thus, no super type in our Ecore. A quick search among all classes in our Ecore model that don't have a super type yielded the following cases: Escalation InputOutputBinding ParticipantMultiplicity ResourceAssignmentExpression ResourceParameterBinding Thanks Henning. This is obviously a bug in original OMG CMOF metamodel. Could you fix the Ecore accordingly? I don't think that we need to path the ECore, as I don't plan to rerun the merge tool. Anyway I will post a bug to OMG BPMN 2.0 RTF. BTW: Is it always clear what the correct super type has to be? In case of "Escalation" it is clear that the super type is "RootElement", as we have similarity to "Signal". And of cause we have the XSD, which can guide us. InputOutputBinding for example is only contained "CallableElement" and thus does not need to be a RootElement or BaseElement. In three of the five cases mentioned above, both the specification document and the XSD agree on a super type: BaseElement for ResourceAssignmentExpression, ResourceParameterBinding and RootElement for Escalation For ParticipantMultiplicity and InputOutputBinding, only the XSD denotes BaseElement as super type, the spec does not mention a super type. Nevertheless, I have updated all five classes, so that all XML files that are valid according to the XSD can be read. See commit b49a7a3b6e493d4741690ba9e750069eb3cb1e8c |