Book a Demo

Author Topic: Find dependencies on objects based on tagged value  (Read 3599 times)

Mager

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Find dependencies on objects based on tagged value
« on: March 15, 2010, 09:00:28 pm »
Hi,

I need to know if there is any possibility to search/find objects based on tagged values defined on other objects to which the objects are connected. To be more explicit: I have process components (BPMN activity) connected (association) to diagram containing information objects (Analysis Entities). These information objects have defined tagged values (e.g security class = low, medium,high). I need to find process components connected to maps containing information objects with a security class of, for instance, "high".
As it is now the process component is not directly associated with the information object only via the diagram (I can change this if necessary).

Is this possible?
And is it possible to extend this to arbitrary depth, i.e. "find objects connected to objects connected to objects with tagged value equals ..."

Thanks

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Find dependencies on objects based on tagged v
« Reply #1 on: March 15, 2010, 09:13:19 pm »
Mager,

You can create your own searches using SQL in EA. This allows you to create a search for basically anything.
In any case I would recommend to make a "real" link between the information objects and the processes as Diagrams are not supposed to own information.

As for the arbitrary lenght, that depends on your database backend. If you are using SQL Server (as of 2005 I think) you can create recursive queries.
If you database doesn't support recursive queries you could still add a sufficient number of joins to match the maximum nesting level you deem possible.

I've uploaded a few searches on the community site which may serve as an inspiration.

Geert

Mager

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Find dependencies on objects based on tagged v
« Reply #2 on: March 15, 2010, 09:36:30 pm »
Thanks for your quick response!

Using SQL sort of requires me to know the data model. Is there a description of it somewhere?
And please excuse my ignorance, but where is the community site?

Thanks again!


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Find dependencies on objects based on tagged v
« Reply #3 on: March 15, 2010, 09:51:46 pm »
Mager,

There is no description of the internal data model, but EA helps you a bit when writing the query. (like intellisense)
In your case you will probably need t_object, t_connector and t_taggedvalue

the direct link to search examples on the community site is: http://community.sparxsystems.com/resources/model-search

Geert

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Find dependencies on objects based on tagged v
« Reply #4 on: March 16, 2010, 04:52:50 pm »
Quote
There is no description of the internal data model, but EA helps you a bit when writing the query. (like intellisense)
It might also help to RE the EA database schema into EA. You can set up an ODBC connection to an EAP file - use the MS Access .mdb driver - then back in EA right-click a package and select Code Engineering > Import DB schema from ODBC...

Quote
In your case you will probably need t_object, t_connector and t_taggedvalue
That's t_objectproperties, not t_taggedvalue.
The Sparx Team
[email protected]