Book a Demo

Author Topic: State entry/exit actions  (Read 6402 times)

frankk

  • EA User
  • **
  • Posts: 96
  • Karma: +0/-0
    • View Profile
State entry/exit actions
« on: January 28, 2008, 09:16:32 am »
How does one specify entry and exit actions for a given state?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: State entry/exit actions
« Reply #1 on: January 28, 2008, 10:33:40 am »
If you mean entry and exit points of a state machine (compound state) then use the Entry Point and Exit Point elements.
No, you can't have it!

frankk

  • EA User
  • **
  • Posts: 96
  • Karma: +0/-0
    • View Profile
Re: State entry/exit actions
« Reply #2 on: January 28, 2008, 10:50:51 am »
Thanks, but I'm referring to an action that is performed every time a given state is entered (or exited).

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: State entry/exit actions
« Reply #3 on: January 28, 2008, 11:35:26 am »
I guess it's back to basics then Frank. You can always prefix the name with entry/ (often abbreviated to just the slash) or exit/ to indicate this.

I really don't know if EA has any special mechanism to handle this.

David
No, you can't have it!

frankk

  • EA User
  • **
  • Posts: 96
  • Karma: +0/-0
    • View Profile
Re: State entry/exit actions
« Reply #4 on: January 28, 2008, 11:49:58 am »
OK, thanks, David. I thought there might be explicit options, since the State diagram helps mentions them explicitly. I'm also still looking for an 'Operations' dialog, the help for which mentions "(For State or State Machine elements.) Defines the action of the operation: do, exit or entry."

frankk

  • EA User
  • **
  • Posts: 96
  • Karma: +0/-0
    • View Profile
Re: State entry/exit actions
« Reply #5 on: January 28, 2008, 11:55:27 am »
Ahh... found it :-)

Dave.B

  • EA User
  • **
  • Posts: 94
  • Karma: +0/-0
    • View Profile
Re: State entry/exit actions
« Reply #6 on: April 23, 2008, 09:24:49 pm »
Can you share the answer with me (and the forum in general) as I can't find it in the help!

Thanks
Dave B.

frankk

  • EA User
  • **
  • Posts: 96
  • Karma: +0/-0
    • View Profile
Re: State entry/exit actions
« Reply #7 on: April 23, 2008, 11:51:04 pm »
Sure  :)

When you add a new operation, click on the Action field.

Dave.B

  • EA User
  • **
  • Posts: 94
  • Karma: +0/-0
    • View Profile
Re: State entry/exit actions
« Reply #8 on: April 23, 2008, 11:56:39 pm »
The confusing thing is that the actions (aka operations) are not available from the state's properties (c.f. a class), but as a separate context menu item.

Thanks for the tip.
Dave B.

Dorian Workman

  • EA User
  • **
  • Posts: 194
  • Karma: +0/-0
    • View Profile
Re: State entry/exit actions
« Reply #9 on: May 03, 2008, 07:20:40 am »
Quote
Sure  :)

When you add a new operation, click on the Action field.

Thanks frankk, this is exactly what I needed to know!  I can't believe EA discussed this approach in their UML 2.0 Tutorial here http://www.sparxsystems.com/resources/uml2_tutorial/uml2_statediagram.html, but doesn't tell you how to do this in the EA help!  Crazy!  :o
<a href="http://www.linkedin.com/in/dorianworkman" ><img src="http://www.linkedin.com/img/webpromo/btn_liprofile_blue_80x15.gif" width="80" height="15" border="0" alt="View Dorian Workman

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: State entry/exit actions
« Reply #10 on: May 05, 2008, 09:25:17 am »
I have added links to the State element description to direct users to the Operations dialog to add entry and exit actions to a State. I have also put in index entries to identify these points.

The changes will be available with the next release of EA.
Best Regards, Roy

Dorian Workman

  • EA User
  • **
  • Posts: 194
  • Karma: +0/-0
    • View Profile
Re: State entry/exit actions
« Reply #11 on: May 05, 2008, 09:39:48 am »
Thanks RoyC!  Great to know you guys are monitoring the forums and responding so promptly.  Very much appreciated.   :)
<a href="http://www.linkedin.com/in/dorianworkman" ><img src="http://www.linkedin.com/img/webpromo/btn_liprofile_blue_80x15.gif" width="80" height="15" border="0" alt="View Dorian Workman