Book a Demo

Author Topic: Drag an existing state into another state?  (Read 3704 times)

GPT999

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Drag an existing state into another state?
« on: March 10, 2009, 04:50:39 am »
Ok, i feel really feel foolish asking this question but I cannot figure this out :-[  

I have a state machine that I am constructing.  I have several super states within the original state.  If I create a state in trhe diagram  how can I add it to an existing state as a substate??  I cannot, it seems drag it onto another state and have it be considered as part of the sub state?  This is evidenced by the appearance as it drops to "behind" the view.  I can make it appear but not be part of the sub state as when I move the super state, the new sub state "added" does not move, so it is merely existing in the same area...

I can add a new sub state but would rather be able to move around existing states as I figure things out!

I should add I am using 7.1.829
« Last Edit: March 10, 2009, 06:36:22 am by GPT999 »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Drag an existing state into another state?
« Reply #1 on: March 10, 2009, 08:31:52 am »
Use the commands at Element | Z Order.

Tip: This menu can be dragged from the menu as a floating toolbar, and the commands work for multiple selected objects.

GPT999

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Drag an existing state into another state?
« Reply #2 on: March 10, 2009, 08:45:47 am »
Hi, Thank you for the response.  Yes, I have done this so I can "see" the state but it is not part of the super state.  If I drag the super state, the newly dragged in sub state I added does not stay in the group.  I need some sort of grouping functionality so the new state is part of the super state.  I was able to copy existing states using the tricky ctrl button to drag and drop to copy new states into the super state.  Then I could delete the originals.   I know there must be a better way.  

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Drag an existing state into another state?
« Reply #3 on: March 10, 2009, 09:19:42 am »
Right-click on the diagram background and select the State Chart Editor option, then select one of the three table options. When the diagram changes to a table, find and click on the State to make into a substate and drag it onto the 'parent' State.

On my system, that sticks. You can either go on working on the table, as below:

http://www.sparxsystems.com/uml_tool_guide/uml_dictionary/state_table_diagram.html

Or you can go back to working on the diagram, as below:

http://www.sparxsystems.com/uml_tool_guide/uml_dictionary/statediagram.html

I hope this helps.
Best Regards, Roy

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Drag an existing state into another state?
« Reply #4 on: March 10, 2009, 06:08:37 pm »
I think the easiest way is to drag a state below another one in the project browser.