Book a Demo

Author Topic: Object diagram refactoring  (Read 4406 times)

Patrick Julian

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Object diagram refactoring
« on: January 28, 2013, 09:53:50 pm »
Hello everyone,

there was an interesting discussion recently at Stackoverflow which I'd like to bring to your attention: http://stackoverflow.com/questions/14402893/enterprise-architect-object-diagram-refactoring/14408769#14408769

In short, EA does not reflect changes to the names of class variables in the run state of object instances.

Does anyone know whether or not that is an intended behaviour of EA, and is there a workaround maybe?

Kind regards,

Patrick

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Object diagram refactoring
« Reply #1 on: January 28, 2013, 10:57:44 pm »
Whether that is intended you have to ask Sparx, we are just users like you. However, I don't know any work around for it. Object variables are defined on the fly (class attributes are mixed into the drop down where you can also define arbitrary variables) and AFAIK not related to anything defined in the class.

q.
« Last Edit: January 28, 2013, 11:00:49 pm by qwerty »

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 diagram refactoring
« Reply #2 on: January 28, 2013, 11:10:26 pm »
Patrick,

I can confirm that indeed EA does not update run state variables when the name of an attribute is changed.

One of the reasons might be because there's no hard link between the actual attribute and the runstate variable.

Saving runstate variables issues this sql command:

Code: [Select]
Update t_object Set RunState='@VAR;Variable=IsForRVAChanged;Value=dezewaarde;Op==;@ENDVAR;@VAR;Variable=Remark;Value=nogwaarde;Op==;@ENDVAR;' Where Object_ID=2146293305
As you can see per @VAR there's only a name, a value and an operator. No ID whatsoever.

I would suggest you log a bug report at Sparx.

Geert
« Last Edit: January 28, 2013, 11:11:21 pm by Geert.Bellekens »

Patrick Julian

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Re: Object diagram refactoring
« Reply #3 on: January 28, 2013, 11:33:20 pm »
Thank you guys for your helpful replies, also over there at SO.
I didn't know that it's possible to monitor EA's database queries.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Object diagram refactoring
« Reply #4 on: January 28, 2013, 11:35:43 pm »
In order to monitor DB queries you need to switch from EAP to some RDBMS which can handle that for you.

q.

P.S. The reply at SO is simply wrong.
« Last Edit: January 28, 2013, 11:37:03 pm by qwerty »