Bug 516897

Summary: Newly created "Open Dialog" operations are incomplete/invalid
Product: [Modeling] Sirius Reporter: Melanie Bats <melanie.bats>
Component: PropertiesAssignee: Project Inbox <sirius.properties-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: pierre-charles.david
Version: 4.1.1Keywords: helpwanted, triaged
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: vsm validation ux
Attachments:
Description Flags
Validation issues in UML Designer none

Description Melanie Bats CLA 2017-05-18 10:55:19 EDT
Created attachment 268447 [details]
Validation issues in UML Designer

When I create a dialog by default it creates two buttons Cancel/OK with a default behavior and in the odesign definition it generates a Begin initial operation. 

As there is nothing specified by default under the Begin, the validation generates errors : 
The required feature 'firstModelOperations' of 'Begin' must be set

By default we should create also a change context var:self in order that the validation will be ok.
Comment 1 Pierre-Charles David CLA 2017-06-12 08:38:38 EDT
Confirmed. Steps to reproduce:
1. Create/open a VSM, with a representation and some tool.
2. Inside a tool create a new "Open Dialog" operation.
3. Select the newly-created operation, right-click and select validate.

The created operation is invalid, raising two errors. We should make sure the new operation is created in a valid state.