Bug 434523 - Unset model operation unusable for primitive type multivalued features
Summary: Unset model operation unusable for primitive type multivalued features
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 0.9   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2014-05-09 11:51 EDT by Martti Käärik CLA
Modified: 2014-05-16 12:10 EDT (History)
1 user (show)

See Also:


Attachments
bugzilla434523_metamodel (22.37 KB, application/x-zip-compressed)
2014-05-16 12:10 EDT, Alex Lagarde CLA
no flags Details
bugzilla434523_modelingProject (2.94 KB, application/x-zip-compressed)
2014-05-16 12:10 EDT, Alex Lagarde CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martti Käärik CLA 2014-05-09 11:51:14 EDT
Unset can be defined either by listing element(s) to remove or leaving the expression empty to set feature to null. The first one tries to force elements into EObjects which fails for e.g. Strings. The second one just adds null to (multi)value.
Comment 1 Alex Lagarde CLA 2014-05-16 12:09:26 EDT
Steps to reproduce:
- Import the bugzilla434523_metamodel project
- Launch a runtime
- In this runtime, import the bugzilla434523_modelingProject project
- Open the diagram
- Create a node
KO : the feature ManyStrings should be empty as we have 2 unset calls

However, the first step will be to decide whether we should
a/ Support the unset of EAttributes (and hence handle Boolean, String and any Datatype)
b/ Do not support such unset but define a validation rule on the VSM
Comment 2 Alex Lagarde CLA 2014-05-16 12:10:02 EDT
Created attachment 243191 [details]
bugzilla434523_metamodel
Comment 3 Alex Lagarde CLA 2014-05-16 12:10:25 EDT
Created attachment 243192 [details]
bugzilla434523_modelingProject