Author Topic: Information flow  (Read 6138 times)

DanielB

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Information flow
« on: March 17, 2015, 02:08:09 pm »
Hi all,

I know that there are numerous threads around this but I still didn't find the answer I'm looking for.

I'm trying to write a script which after clicking on an object in Project Browser will show all connectors where this object was used as an Information Item.

One possible way would, which I really don't like due to low efficiency, will be to list all connectors in the repository, then for each of them call connector.ConveyedItems function, and verify which connector has the object in it's ConveyedItems collection.

Do you know any other solutions?

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Information flow
« Reply #1 on: March 17, 2015, 05:03:01 pm »
You know the GUID of your selected object. Search for that GUID in t_xref.Description where t_xref.Behavior='conveyed'. Then t_xref.Client should contain the GUID of the information flow connector.
The Sparx Team
[email protected]

Ian Mitchell

  • EA User
  • **
  • Posts: 506
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Re: Information flow
« Reply #2 on: March 17, 2015, 06:48:25 pm »
Does @Geerts's EA Navigator pick up these kinds of hidden links?
Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Information flow
« Reply #3 on: March 17, 2015, 07:59:20 pm »
Quote
Does @Geerts's EA Navigator pick up these kinds of hidden links?
Not yet, but I've just opened a change request on your behalf: https://github.com/GeertBellekens/Enterprise-Architect-Toolpack/issues/27

I'll post back here when I've implemented it.

Geert
« Last Edit: March 17, 2015, 08:00:00 pm by Geert.Bellekens »

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Information flow
« Reply #4 on: March 17, 2015, 08:49:00 pm »
Hello,

Here's one which lists the connectors and the diagrams they're in, allowing you to right-click a result and find the diagram.

Code: [Select]
select DiagramRef.ea_guid as CLASSGUID, DiagramRef.Diagram,
Connector.FromType, Connector.From, Connector.InfoClass, Connector.ToType, Connector.To
from
(select t_diagram.ea_guid, t_diagram.Name as Diagram, t_diagramlinks.ConnectorID
from t_diagram, t_diagramlinks
where t_diagram.Diagram_ID = t_diagramlinks.DiagramID) as DiagramRef
right join
(select Client.Stereotype as FromType, Client.Name as From, InfoClass.Name as InfoClass, Supplier.Stereotype as ToTyp, Supplier.Name as To, t_connector.Connector_ID
from t_object as Client, t_object as Supplier, t_connector, t_object as InfoClass, t_xref
where InfoClass.ea_guid = '<Search Term>'
and t_xref.Description like '%' + InfoClass.ea_guid + '%'
and t_xref.Client = t_connector.ea_guid
and Client.Object_ID = t_connector.Start_Object_ID
and Supplier.Object_ID = t_connector.End_Object_ID) as Connector
on DiagramRef.ConnectorID = Connector.Connector_ID

Store that as a search, and write a simple browser script which calls it with the selected element's GUID.
It's a bit rough around the edges, doesn't allow multiple search terms, doesn't check for hidden connectors, but on the whole it should work OK.

HTH,


/Uffe
My theories are always correct, just apply them to the right reality.

DanielB

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: Information flow
« Reply #5 on: March 19, 2015, 01:00:51 pm »
Quote
You know the GUID of your selected object. Search for that GUID in t_xref.Description where t_xref.Behavior='conveyed'. Then t_xref.Client should contain the GUID of the information flow connector.

Thank you, that helped a lot.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Information flow
« Reply #6 on: May 16, 2016, 06:41:49 pm »
This weekend I finally set myself to it and implemented the dreaded Information Items Conveyed in the EA Navigator in a new version of the EA Toolpack v 10.0.16.0

Currently this is a "test" version. If it works fine I'll make it available via the general EA Navigator download.

I've implemented the Conveyed Elements, and Conveying connectors in both directions.
Recently I've also added the feature "In Diagrams" for connectors, which opens the diagram and selects the connector in that diagram, making navigation to connectors a lot easier.

Here's what it looks like in the EA Navigator window:


Let me know it if works for you.

Geert