Bug 505790

Summary: Reused Mapping Import in Layer
Product: [Modeling] Sirius Reporter: Julien Dupont <julien.dupont>
Component: DiagramAssignee: Project Inbox <sirius.diagram-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: maxime.porhel, patrick.tarnaud, vincent.richard
Version: 4.1.0Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Windows NT   
Whiteboard:
Attachments:
Description Flags
Use case to reproduce problem none

Description Julien Dupont CLA 2016-10-12 09:08:20 EDT
Created attachment 264800 [details]
Use case to reproduce problem

A representation A defined a mapping A. A representation B defined a mapping B.
The mapping A import the mapping B (tab Import, reused mapping).
In the representation A, the mappings A and B are displayed.
A representation C has only a layer. In this layer, the mapping A is imported as tab Import (reused mapping). The representation C display only mapping A and not mapping B, but it should. KO

To reproduce:
- Launch sirius and import projects of Metamodel (fr.obeo.dsl.relational-...edit...editor)
- Launch a runtime and import the VSP and the sample project.
- Open newDatabaseDiagram, the tables with columns are displayed OK
- Open newSchemaDiagram, only the tables are displayed, the columns should be displayed. To display the column you must add the mapping TD_Column to layer import. KO
Comment 1 Julien Dupont CLA 2016-10-12 09:21:35 EDT
An other problem is present with the import layer.
In the Odesign, in the representation TableDiagram for the semanctic candidates Expression of mapping TD_Column if we use feature:ownedTableElements there is an exception in error Log:
the following mapping semantic candidates expression could not be correctly evaluated : feature:ownedTableElements

If we use aql:self.ownedTableElements there is nothing, strange, no?

To reproduce problem add in default Layer of SchemaDiagram in Tab Import Reused Mapping TD_Column.
If the semantic candidate Expression is feature:ownedTableElements there is a warning displyed in the Error Log but not if this is aql:self.owenedTableElements