Author Topic: Forcing messages to be operations  (Read 2829 times)

Dani

  • EA User
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Forcing messages to be operations
« on: September 08, 2004, 07:09:33 am »
Hi there,

Is it possible in sequence diagrams to force all messages to be operations of a class ?

During development I found that three messages could actually be consolidated into one single message. So I renamed one of the class operations with the new name and deleted the other two. The problem is that now all diagrams that were using the deleted names still show them, albeit in free form, i.e. messages are not operations of any class.

I'm only starting with EA, but I'm concerned that in the future we'll have to manually track these issues through all sequence diagrams, which could gorw to be considerable in number.

TrtnJohn

  • EA User
  • **
  • Posts: 176
  • Karma: +0/-0
    • View Profile
Re: Forcing messages to be operations
« Reply #1 on: September 09, 2004, 03:08:01 pm »

mbc

  • EA User
  • **
  • Posts: 237
  • Karma: +1/-0
  • Embedded software developer
    • View Profile
Re: Forcing messages to be operations
« Reply #2 on: September 10, 2004, 12:15:06 am »
Dani,

I am concerned about the same problem as you, and as far as I know, there is no other solution than to maintain the diagrams manually. In general, I think consistency checking of a model is one of the major missing features in EA. If you use code engineering, you will encounter the same sort of problem with attribute names and association role names (and type and scope) which also need to be kept consistent manually.

Sparx, do you plan to do something about these issues?

Mikkel

Dani

  • EA User
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Re: Forcing messages to be operations
« Reply #3 on: September 10, 2004, 12:59:54 am »
TrtnJohn,

Thanks but I already do that. The issue arises if you delete an operation of a class. You have to manually go through all your diagrams looking for who uses it and remove it. I didn't find a way to search for who uses an opeation either. The find function doesn't seem to look inside diagrams.

Mikkel's answer I guess is what I was not hoping to hear but such is life. At least now I know.

mbc

  • EA User
  • **
  • Posts: 237
  • Karma: +1/-0
  • Embedded software developer
    • View Profile
Re: Forcing messages to be operations
« Reply #4 on: September 10, 2004, 01:16:58 am »
If you are up to it, you may use the automation interface to create a script that can do the search for you.

Mikkel