Book a Demo

Author Topic: connect data type to classname  (Read 3928 times)

baynezy

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
connect data type to classname
« on: March 30, 2011, 10:29:17 pm »
If I have an operation that takes a parameter that is of a type that is a class in my diagram. I currently do this by using Select Type... from the Type: drop down. This works fine.

However, should I rename my class for what ever reason, it does not update the type of the parameter in my operation. Is there a way to link them, as it appears to just be that it is a pre-filled string and not an actual link which is disappointing.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: connect data type to classname
« Reply #1 on: April 01, 2011, 11:59:48 pm »
Not just disappointing but also (IMHO) dangerous, particularly in larger models where you might miss some instances.

IIRC, in these cases EA captures all the correct information. The parameter should still have the correct Classifier for the type. It is just that the Object_Type field is not updated.

This means that EA should be able to generate the correct code. The problem is that a programmer who uses the graphical model will not be able to do so.

You could write an add-in to check for this. On the other hand why should you have to do it yourself?

This might be worth a feature request, or bug report, depending on how you view the issue. This has been mentioned before in the forum, but I do not know if it was ever 'formally' submitted to Sparx. The bug report and feature request processes are the only sure way to get something onto Sparx' radar.

HTH, David
No, you can't have it!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: connect data type to classname
« Reply #2 on: April 02, 2011, 02:47:34 am »
I'd suggest to report a bug. The properties show correct info but the project browser does not.

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: connect data type to classname
« Reply #3 on: April 05, 2011, 01:31:27 pm »
Yeah, that is indeed a (known?) refresh issue.

Geert