Book a Demo

Author Topic: class method renaming should trigger action renaming in activity diagram?  (Read 3482 times)

F@lk

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
    • View Profile
I create actions from class methods.
Now as I renamed the class methods the names of the appropriate actions in all my activity diagrams were not renamed accordingly.
Is there a trick to do that?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: class method renaming should trigger action renaming in activity diagram?
« Reply #1 on: November 27, 2020, 12:45:25 am »
The trick is to send a feature request to Sparx. The action is created with a name derived from the operation. And it keeps a link to the operation (somewhere, I can't recall where exactly). The name however is an independent copy for good or for bad. You might write an add-in (or a script) to fix that.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: class method renaming should trigger action renaming in activity diagram?
« Reply #2 on: November 27, 2020, 12:57:31 am »
I think Sparx will never implement an automatic rename.

If you want that you'll need to write your own.
You can either write an add-in, a model-addin script, or an EA-Matic script.

Geert

F@lk

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Re: class method renaming should trigger action renaming in activity diagram?
« Reply #3 on: November 27, 2020, 01:13:38 am »
Thanx for your replies.
I want to use actions to describe callstacks of C++ methods. It's not maintainable to always check all activity diagrams and adapt them after a resync from sources to model. I have no clue about such scripts you say I should write. Is there a very simple example how one can do such script and activate it in Sparx EA?