Book a Demo

Author Topic: Finding the "dirty" status of controlled  (Read 3576 times)

darren.sampson

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Finding the "dirty" status of controlled
« on: October 29, 2006, 11:32:33 pm »
Hi Everyone,

The EAP I use has lots of controlled packages.

I've been trying to work out if there is a way I can tell which controlled packages need to be exported after some changes.  Other Controlled packages will be changed if I add a link between the controlled package I am working on and other controlled packages?

I'm not aware of any way I can do this, except by writing down every link I add from another package while I'm modelling.

Does anyone have any ideas?

If not, it would seem to me that controlled packages need a dirty flag (meaning there has been a change that affects the XMI since the last import/export) and a rendering in the project browser to match.

Without this (or some other solution) I will need to export all controlled packages each time I change one and diff the XMI files.

Looking forward to your feedback!

Darren
See the new Jobs Section on:EA Wiki...

peter.zrnko

  • EA User
  • **
  • Posts: 253
  • Karma: +0/-0
    • View Profile
Re: Finding the "dirty" status of contro
« Reply #1 on: October 30, 2006, 01:59:24 am »
There is a question - where is a link stored, if it connects elements from two different controled packages?

If you have
- Package1 - check out
- Package2 - check in
you can create link from Element1 (from Package1) to Element2 (from Package2).
It seems to be enough to save (export, check in) the Package1. Am I right?

You can do the same starting with Package2
- Package2 - check out
- Package1 - check in
you can create link from Element2 (from Package2) to Element1 (from Package1).
It seems to be enough to save (export, check in) the Package2.

Does this meant the link belongs to both packages?
Peter

darren.sampson

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: Finding the "dirty" status of contro
« Reply #2 on: October 30, 2006, 10:46:57 pm »
Quote
There is a question - where is a link stored, if it connects elements from two different controled packages?


The answer appears to be both.  However, if you only save one of the packages and it only has the link, EA fixes the other one up when you re-load.

So perhaps I need a better example.

If you work on a diagram in Package A, and as a consequence add (say) an attribute to a class in Package B then only save Package A then the attribute will be lost if you re-load Package B.

In that simple case, it's pretty obvious that you need to re-save Package B.  However, if you have 70 controlled packages it won't be so obvious which packages should be saved unless you've been noting down your changes on a notepad as you go.

It appears from my experiment there is no way to find out which packages you have changed after you have made the changes.

This would be no issue if everyone used the same EAP, but the point of the packages is to capture the model in XML and not rely on the EAP.

Does anyone have any suggestions, or should I just put in a feature request?
See the new Jobs Section on:EA Wiki...

peter.zrnko

  • EA User
  • **
  • Posts: 253
  • Karma: +0/-0
    • View Profile
Re: Finding the "dirty" status of contro
« Reply #3 on: October 30, 2006, 11:58:51 pm »
I think a feature request would be good.

If you use version control packages isn't it enough to check out a package if you wnat to change it and check in all packages that have been checkouted when you want to save your work?
Peter