Book a Demo

Author Topic: Object State  (Read 2741 times)

AShakir

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Object State
« on: May 06, 2009, 06:44:39 am »
The "set instance state" dialog box used to set an object state includes a drop down list for states.  How does this drop down list get populated.  I would like it to be populated with the states that are part of the state machine associated with the object's instance classifier.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Object State
« Reply #1 on: May 06, 2009, 03:40:52 pm »
That is exaclty how it should work according to the user manual
http://www.sparxsystems.com/uml_tool_guide/uml_dictionary/defineruntimestate.html
but I just tried it myself and I can't seem to get the states defined on the classifier in the dropdown list.
This looks like a bug to me. Have you asked Sparx support for help?

Geert

AShakir

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Object State
« Reply #2 on: May 06, 2009, 04:00:32 pm »
Thanks Gert.  Yes, I reported this to support at the same time I posted it in this forum.  I have not heard from them yet.

AShakir

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Object State
« Reply #3 on: May 08, 2009, 05:30:31 pm »
The drop down only works when the states are directly under the classifier with no intervening state machine. :-/

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Object State
« Reply #4 on: May 08, 2009, 08:27:04 pm »
I still consider that as a bug.
Adding a statemachine to a class is the preferred way to model the states of a class.
Modelling states directly under the class messes up the project browser because the status will then show in between the operations and attributes.