Book a Demo

Author Topic: How Items-conveyed are linked to Information-Flows?  (Read 5522 times)

ngong

  • EA User
  • **
  • Posts: 275
  • Karma: +2/-2
    • View Profile
How Items-conveyed are linked to Information-Flows?
« on: March 24, 2021, 10:51:33 pm »
I am about to do an SQL query to find the start and end object, connected by information flows for a certain data type.

Using the EASchema_1558, I can find information flows in t_connector. I can find data types in t_object, but I need a hint (or the documentation where it is explained) how they are linked.
Rolf

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller

ngong

  • EA User
  • **
  • Posts: 275
  • Karma: +2/-2
    • View Profile
Re: How Items-conveyed are linked to Information-Flows?
« Reply #2 on: March 25, 2021, 06:08:38 pm »
Super, thank you Geert.

In my case we ruled that there shall be only one item per information-flow. Hence, I could reduce the complexity to
Code: [Select]
select dg.Name as diagram, od.Name as item, os.Name as start, oe.Name as end
from ((((((t_connector c
left join t_diagramlinks dl on dl.ConnectorID = c.Connector_ID )
left join t_diagram dg on dg.Diagram_ID = dl.DiagramID)
left join t_object oe on oe.Object_ID = c.End_Object_ID )
left join t_object os on os.Object_ID = c.Start_Object_ID )
inner join t_xref x on x.Client = c.ea_guid )
left join t_object od on (od.ea_guid in (left(x.Description,38))) )
where c.Connector_Type = 'InformationFlow' and x.Name = 'MOFProps' and od.Name like '*<Search Term>*'

Next question: Do you know a way to open the diagram shown on a result line by clicking or ctrl-u or the like? The CLASSGUID and CLASSTYPE magic works for objects, but not for connections.
Rolf

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How Items-conveyed are linked to Information-Flows?
« Reply #3 on: March 25, 2021, 06:28:18 pm »
Next question: Do you know a way to open the diagram shown on a result line by clicking or ctrl-u or the like? The CLASSGUID and CLASSTYPE magic works for objects, but not for connections.
It works for diagrams

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How Items-conveyed are linked to Information-Flows?
« Reply #4 on: March 25, 2021, 08:46:20 pm »
Connection properties can open in a docked properties window unless from the context menu of a connector. The search window can not perform that. EAUI.

q.

ngong

  • EA User
  • **
  • Posts: 275
  • Karma: +2/-2
    • View Profile
Re: How Items-conveyed are linked to Information-Flows?
« Reply #5 on: April 09, 2021, 01:44:53 pm »
@Geert: yes, works fine: I can now open the diagram hosting the information flow, directly from the search result
Code: [Select]
select distinct dg.ea_guid as CLASSGUID, 'Diagram' as CLASSTYPE, dg.Name as diagram, dg.Diagram_Type as type, od.Name as item, os.Name as start, oe.Name as end
from ((((((t_connector c
left join t_diagramlinks dl on dl.ConnectorID = c.Connector_ID )
left join t_diagram dg on dg.Diagram_ID = dl.DiagramID)
left join t_object oe on oe.Object_ID = c.End_Object_ID )
left join t_object os on os.Object_ID = c.Start_Object_ID )
inner join t_xref x on x.Client = c.ea_guid )
left join t_object od on (od.ea_guid in (left(x.Description,38))) )
where c.Connector_Type = 'InformationFlow' and x.Name = 'MOFProps' and od.Name like '*<Search Term>*'
Rolf