Bug 466092 - [StateMachineDiagram] Transitions crossing state boundaries and moving transitions from one region to another
Summary: [StateMachineDiagram] Transitions crossing state boundaries and moving transi...
Status: NEW
Alias: None
Product: Papyrus
Classification: Modeling
Component: Diagram (show other bugs)
Version: 1.1.0   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-01 11:51 EDT by Ernesto Posse CLA
Modified: 2017-08-02 11:37 EDT (History)
0 users

See Also:


Attachments
Before moving the states to another region (253.08 KB, image/png)
2015-05-01 11:51 EDT, Ernesto Posse CLA
no flags Details
After moving the states to another region (247.25 KB, image/png)
2015-05-01 11:52 EDT, Ernesto Posse CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ernesto Posse CLA 2015-05-01 11:51:03 EDT
(This is mostly relevant to UML-RT, but the PapyrusRT bugzilla doesn't have components yet, so I'm reporting it here)

In UML-RT transitions cannot "cross state boundaries", this is, having a transitions whose source and target are not in the same region. However Papyrus allows you to do that. There should be a visual constraint on this.

This has another consequence: moving states to a different region results in an incorrect model, with the transitions remaining in the region they were before moving the states.

Steps to reproduce
------------------

1. Create a state machine diagram
2. Add three states State1, State2 and State3 in the top region (Region1), and a transition t1 from State2 to State3.
3. Add a region to State1 (State1.Region1)
4. Select State2 and State3.
5. Drag and drop State2 and State3 to State1.Region1.

Result
------

The model structure is

StateMachine1
+- Region1
   +- Transition t1 (from State2 to State3)
   +- State1
      +- Region1
         +- State2
         +- State3

Expected result
---------------

The model structure should be (at least in UML-RT)

StateMachine1
+- Region1
   +- State1
      +- Region1
         +- Transition t1 (from State2 to State3)
         +- State2
         +- State3


Testing environment
-------------------

  Papyrus UML	1.1.0.201503251607	org.eclipse.papyrus.sdk.feature.feature.group	Eclipse Modeling Project

on

Eclipse Modeling Tools

Version: Mars Milestone 6 (4.5.0M6)
Build id: 20150326-0744
Comment 1 Ernesto Posse CLA 2015-05-01 11:51:49 EDT
Created attachment 253037 [details]
Before moving the states to another region
Comment 2 Ernesto Posse CLA 2015-05-01 11:52:16 EDT
Created attachment 253038 [details]
After moving the states to another region