Book a Demo

Author Topic: Settings for entry /exit actions to show up in state machine diagram  (Read 13371 times)

WQW1DX

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Hi,

I created a State Machine, added a State from the Toolbar and added an Entry-Action via Features & Properties > Operations to the State. I'd now like this Entry-Action to show up in the visualization of my state, e.g.: + entry / someEntryAction(); like it does for example in the Resource of the State Machine Diagram here: https://www.sparxsystems.eu/resources/project-development-with-uml-and-ea/state-machine-diagram/, but my State stays empty except it's name on top.


This is how I'd like the states to look:



What are the right settings to have the entry / exit actions show up in the visualization of a state?

Thanks & regards,
WQW1DX

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Settings for entry /exit actions to show up in state machine diagram
« Reply #1 on: June 28, 2018, 05:20:14 pm »
It should show per default. So there can be a couple of reasons you turned it off. First check the diagram properties / Features to the right if all check marks are set.

q.

WQW1DX

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Settings for entry /exit actions to show up in state machine diagram
« Reply #2 on: June 28, 2018, 05:30:06 pm »
The Feature Dialog looks like this:

Feature Options:
  • Show Qualifiers and Visibility Indicators
  • Show Stereotypes
  • Show Property String
  • Show Operation Return Type
  • [_] Suppress Brackets for Operations without Parameters
    [_] Always Show Linked Features

    Show Attribute Detail: "Name and Type"

  • Public
  • Protected
  • Private
  • Package
  • Property Methods


Show Parameter Detail: "Type Only"

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Settings for entry /exit actions to show up in state machine diagram
« Reply #3 on: June 28, 2018, 05:54:19 pm »
I saw your question on SO, so it must be something else. Try with a blank new EAP file and see what happens. Look what MDGs you have turned on.

q.

PeterHeintz

  • EA Practitioner
  • ***
  • Posts: 1001
  • Karma: +59/-18
    • View Profile
Re: Settings for entry /exit actions to show up in state machine diagram
« Reply #4 on: June 28, 2018, 06:12:47 pm »
In the Operations dialog under Behaviour you have the check "Show Behavior in Diagram".
Best regards,

Peter Heintz

WQW1DX

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Settings for entry /exit actions to show up in state machine diagram
« Reply #5 on: June 28, 2018, 06:22:06 pm »
Thanks qwerty and PeterHeintz - the combination of your answers did the trick.
Looks like my EA is weirdly misconfigured...