Book a Demo

Author Topic: Internal Transtions  (Read 7246 times)

tigershark

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Internal Transtions
« on: March 17, 2010, 10:54:17 pm »
I would like to see a change in the way internal transitions are
represented and created in statecharts.
Today, they look exactly like self-transitions and that is very confusing in large diagrams.
It would be great if the internal transitions can be created an will be displayed like the state actions (entry/do/exit).

Notation Example: http://en.wikipedia.org/wiki/UML_state_machine#Internal_Transitions

It would be great to see that already in Version 8 Beta 3  ;)

« Last Edit: March 17, 2010, 10:54:40 pm by tigershark »

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Internal Transtions
« Reply #1 on: March 18, 2010, 05:11:01 pm »
You can get excactly what you want by adding an operation to a state. In the wikipedia example, open the "Operations" context menue for state "default", add an operation "send_lower_case_scan_code" and in the "Action" combo type "ANY_KEY".

tigershark

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Internal Transtions
« Reply #2 on: March 19, 2010, 06:17:04 pm »
Thanks for your answer, but that would only be a work-around.
A internal transition should be created like any other transition. If I create an operation I cannot add any guards or effects unless I put it into the behavior-code. The next problem is, that if you put the Trigger into the Action field of the operation, it is not created as Trigger.

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: Internal Transtions
« Reply #3 on: March 19, 2010, 10:23:54 pm »
Hi,

Sorry! All I have is, that i can confirm what you've experienced. Neither are internal transitions really available appropriately in EAs UML State Model, nor is the generated code acceptable for the usual intend of internal transitions (besides that I find the way, what code is generated by EA for FSMs not very acceptable and flexible at all. I prefer State design pattern in OO languages (including C!!) ).

I know that doesn't help!
Best regards,
Günther

tigershark

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Internal Transtions
« Reply #4 on: March 22, 2010, 06:03:42 pm »
Thanks for your response Günther,

"nice" to hear that you experienced the same problem.
I think Sparx should realy solver this, because big statemachines are almost useless without internal transitions.

Best regards