Book a Demo

Author Topic: Setting BehaviorStateMachines::State::submachine  (Read 3879 times)

Torsten Binias

  • EA User
  • **
  • Posts: 31
  • Karma: +0/-0
    • View Profile
Setting BehaviorStateMachines::State::submachine
« on: July 30, 2010, 07:52:56 pm »
You can create a State and mark it as being a Submachine state (as defined in formal/2007-11-02, ch. 15.3.11) by setting the custom property "isSubmachineState" to "true".

But there is no way of specifying the state machine that is be inserted in place of that submachine state (that is, to set a value for BehaviorStateMachines::State::submachine)

The bug has been detected in Version 7.5, Build 845.


Cross-reference:
"Same Submachine multiple times in a state machine" (http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1277728125)

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Setting BehaviorStateMachines::State::submachi
« Reply #1 on: July 30, 2010, 08:08:04 pm »
I think the "isSubmachineState" custom property for a sate in EA is complete crap. You can set it, but to no avail whatsoever.

To get a submachine state in the sense of the UML superstructure, you must not use a state in EA, but drag a state machine into you containing state machine and choose the "instance" option (as opposed to "simple link"). The state machine instance you get then can be given a name and can be used like a state (only you have to define entry and exit points as transition sources and targets). It's no problem in EA 7.5; for the current version see http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1279878885

gudrun

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Use submachine state in EA Version 9
« Reply #2 on: July 21, 2011, 10:37:59 pm »
Hi,

I am new to UML modeling and to EA. For the current project I want to use a submachine state in a state machine diagram without success. I searched the EA UserGuide and this forum and tried the following hints.

Quote
...

To get a submachine state in the sense of the UML superstructure, you must not use a state in EA, but drag a state machine into you containing state machine and choose the "instance" option (as opposed to "simple link"). The state machine instance you get then can be given a name and can be used like a state (only you have to define entry and exit points as transition sources and targets). It's no problem in EA 7.5; for the current version see http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1279878885


There is one problem: when I use the "instance" option I get an object and not a "state". I can use the embedded entry and exit points, but I can't use a transition to the edge of the instance to get the default entry of the submachine.

And just another question: is it possible to show the "contents" of the object ?
Any ideas how to use submachine states correctly ?
Thanks for your help, Gudrun