Bug 516897 - Newly created "Open Dialog" operations are incomplete/invalid
Summary: Newly created "Open Dialog" operations are incomplete/invalid
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Properties (show other bugs)
Version: 4.1.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard: vsm validation ux
Keywords: helpwanted, triaged
Depends on:
Blocks:
 
Reported: 2017-05-18 10:55 EDT by Melanie Bats CLA
Modified: 2017-06-12 08:38 EDT (History)
1 user (show)

See Also:


Attachments
Validation issues in UML Designer (107.54 KB, image/png)
2017-05-18 10:55 EDT, Melanie Bats CLA
no flags Details

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