Bug 505790 - Reused Mapping Import in Layer
Summary: Reused Mapping Import in Layer
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 4.1.0   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2016-10-12 09:08 EDT by Julien Dupont CLA
Modified: 2016-10-24 11:53 EDT (History)
3 users (show)

See Also:


Attachments
Use case to reproduce problem (217.81 KB, application/zip)
2016-10-12 09:08 EDT, Julien Dupont CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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