Author Topic: Sharing search criteria in repository  (Read 1853 times)

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • Aren´t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Sharing search criteria in repository
« on: June 02, 2008, 06:19:55 pm »
Maybe it´s just me but how (or another EAUI) but how can a team share search criteria ?
Let´s say a team of 20 members working on the same model would like to see a common view on actors, components etc. defined by search criteria.
However if I define a search criteria on my laptop (eg. all actors of a certain stereotype) and attach it to a model view nobody else on the same model is able to get elements in this view (though the view is there) because the search criteria seems to be defined locally.

What am I missing ? It is not convenient to do a file export/import.
It would be acceptable to add the search to the profile or MDG Technology.

Oliver
« Last Edit: June 02, 2008, 06:21:42 pm by ofels »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Sharing search criteria in repository
« Reply #1 on: June 02, 2008, 11:44:13 pm »
The only reference I've seen is for add-ins. You can define a search as part of an add-in and incorporate it in an MDG technology file.

Other than that I don't believe this is possible.

[With luck I'm wrong on that. If so, somebody please chime in with a solution!]

David
No, you can't have it!

Simon M

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 6453
  • Karma: +55/-6
    • View Profile
Re: Sharing search criteria in repository
« Reply #2 on: June 03, 2008, 08:22:56 am »
Simon

support@sparxsystems.com

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • Aren´t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Re: Sharing search criteria in repository
« Reply #3 on: June 03, 2008, 06:15:12 pm »
Quote
Export it.
Create an MDG technology.
Add a ModelSearches node referencing your mts file.
Export again.
Deploy the MDG technology to a shared location.

Thanks for sharing that.
However the search does not appear. Here is the excerpt from the generated technology xml:

Quote
<ModelSearches>
<Search Name="Actors" GUID="{24FD498A-820F-46d1-8008-9B84567B304E}" PkgGUID="-2" Type="0" LnksToObj="0" CustomSearch="0" AddinAndMethodName="">
<SrchOn>
<RootTable Type="0">
<TableName Display="Element" Name="t_object"/>
<TableHierarchy Display="" Hierarchy="t_object"/>
<Field Filter="t_object.Object_Type = 'Actor'" Text="Actor" IsDateField="0" Type="1" Required="1" Active="1">
<TableName Display="Element" Name="t_object"/>
<TableHierarchy Display="Element" Hierarchy="t_object"/>
<Condition Display="Equal To" Type="="/>
<FieldName Display="ObjectType" Name="t_object.Object_Type"/>
</Field>
</RootTable>
</SrchOn>
<LnksTo/>
</Search>
</ModelSearches>

I created the MTS file, added the search sections, let it run through the technology wizard and imported the technology XML file into the EA project. Then restarted EA and the model.

I can see the UML profiles but not the searches.

Thanks,

Oliver
« Last Edit: June 03, 2008, 06:16:31 pm by ofels »

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +0/-0
    • View Profile
Re: Sharing search criteria in repository
« Reply #4 on: June 03, 2008, 07:50:05 pm »
Perhaps you need to copy the technology xml file to <program files>\Sparx Systems\EA\MDGTechnologies instead of importing it. Sparx is somewhere in the middle of changing the handling of MDG technologies, and they behave differently when imported or loaded from the program folder.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Sharing search criteria in repository
« Reply #5 on: June 03, 2008, 10:31:54 pm »
Frank is correct here.

There is no "perhaps" involved. The import process is obsolete as of EA 7.0 (and perhaps earlier). Although this method is supported, it is largely for compatibility with older technology files, and to support earlier automation projects. [You'll even find the appropriate automation calls for the older method are clearly marked as depreciated.]

You need to copy the technology file to the appropriate location, where they will be picked up by EA on startup. By default EA creates this directory near the installation folder. You can also add other locations via the EA main menu, from the Settings | MDG Technologies dialog. Click the Advanced button to add new locations. Note that you can designate a location with a folder path (which can be a network location) or you can use a URL.

This process does not require a model to be open; it is a setting that affects all EA sessions after it is set. You must exit and restart EA for the changes to take effect, as the locations are only checked when EA starts up.

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

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • Aren´t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Re: Sharing search criteria in repository
« Reply #6 on: June 03, 2008, 10:48:36 pm »
Quote
This process does not require a model to be open; it is a setting that affects all EA sessions after it is set. You must exit and restart EA for the changes to take effect, as the locations are only checked when EA starts up.

Thanks for that insight.
However I do not appreciate this process of manually copying the technology because that means to deploy it to the workstations of each developer/architect and to ensure that they installed it.
I liked the mechanism of importing it into the model because the whole team can benefit from the technology without hassles.

So I will try the copy approach then.

Oliver

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Sharing search criteria in repository
« Reply #7 on: June 04, 2008, 01:13:45 am »
You can set up a URL where the technology resides. Then you only need one copy, and you don't have to fiddle with absolute and relative folder paths.

[edit]You might also be able to build some kind of automated (outside of EA) script to insert the necessary registry entries (I think this is handled by the registry) or database records for each user.[/edit]
« Last Edit: June 04, 2008, 01:15:10 am by Midnight »
No, you can't have it!

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • Aren´t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Re: Sharing search criteria in repository
« Reply #8 on: June 04, 2008, 02:08:04 am »
Quote
You can set up a URL where the technology resides. Then you only need one copy, and you don't have to fiddle with absolute and relative folder paths.

That is fabulous because it works the way I can accept it. It still requires some manual intervention but this is minimal.
Thanks for pointing it out.

Oliver

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Sharing search criteria in repository
« Reply #9 on: June 04, 2008, 02:30:00 am »
No problem Oliver. I'm glad it got you going again.

David
No, you can't have it!