Book a Demo

Author Topic: information items conveyed in information flows  (Read 3711 times)

shirleyjh

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
information items conveyed in information flows
« on: August 15, 2012, 12:16:04 am »
Hi,
I wish to receive from the API the Information item that is conveyed by an information flow connector.
Does anyone know how to do so.

I would also be happy to see from the EA DB how i see the connection within the DB, between a connector of type information flow and the information item conveyed by it

Thanks in advance,
Shirley

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: information items conveyed in information flow
« Reply #1 on: August 15, 2012, 01:35:49 am »
Hi,

to the subject of EA DB see the following search for some databases. It searches some conveyed flows for a connector.
Helmut


SELECT DISTINCT o.ea_guid as CLASSGUID, o.Object_Type as CLASSTYPE,
 o.name As Item, o.Object_Type As ItemType, o.stereotype As 'ItemStereotype', "Connector" As ConnectorType, c.Name, c.Stereotype
 
FROM t_object o,
          t_xref xCon, t_xref xFlow,
          t_connector c,
    t_connector flow
where
  c.connector_ID = <Search Term>
and   c.ea_guid = xCon.Client
and   xCon.Behavior = 'abstraction'
and flow.ea_guid in
(
#DB=SQLSVR#             substring(x.description,0,39),
                                      substring(xCon.description,39,39),
                                      substring(xCon.description,78,39),
                                      substring(xCon.description,117,39),
                                      substring(xCon.description,156,39),
                                      substring(xCon.description,195,39),
                                      substring(xCon.description,234,39),
                                      substring(xCon.description,273,39),
                                      substring(xCon.description,312,39),  
                                      substring(xCon.description,351,39)
#DB=SQLSVR#    
#DB=Other#                left(xCon.description,38),
                                      mid(xCon.description,40,38),
                                      mid(xCon.description,79,38),
                                      mid(xCon.description,118,38),
                                      mid(xCon.description,157,38),
                                      mid(xCon.description,196,38),
                                      mid(xCon.description,235,38),
                                      mid(xCon.description,274,38),
                                      mid(xCon.description,313,38),  
                                      mid(xCon.description,352,38)
#DB=Other#  
  )
AND         flow.ea_guid = xFlow.client
AND         o.ea_guid in  
(
#DB=SQLSVR#             substring(xFlow.description,0,39),
                                      substring(xFlow.description,39,39),
                                      substring(xFlow.description,78,39),
                                      substring(xFlow.description,117,39),
                                      substring(xFlow.description,156,39),
                                      substring(xFlow.description,195,39),
                                      substring(xFlow.description,234,39),
                                      substring(xFlow.description,273,39),
                                      substring(xFlow.description,312,39),  
                                      substring(xFlow.description,351,39)
#DB=SQLSVR#    
#DB=Other#                left(xFlow.description,38),
                                      mid(xFlow.description,40,38),
                                      mid(xFlow.description,79,38),
                                      mid(xFlow.description,118,38),
                                      mid(xFlow.description,157,38),
                                      mid(xFlow.description,196,38),
                                      mid(xFlow.description,235,38),
                                      mid(xFlow.description,274,38),
                                      mid(xFlow.description,313,38),  
                                      mid(xFlow.description,352,38)
#DB=Other#
)
UNION
SELECT DISTINCT o.ea_guid , o.Object_Type ,
 o.name,  o.Object_Type, o.stereotype, "Information Flow", c.Name, c.Stereotype
 
FROM t_object o,
          t_xref x,
          t_connector c
where
        x.client = c.ea_guid
and   x.Behavior = 'conveyed'
and  c.connector_ID = <Search Term>
and  o.ea_guid in      (
#DB=SQLSVR#             substring(x.description,0,39),
                                      substring(x.description,39,39),
                                      substring(x.description,78,39),
                                      substring(x.description,117,39),
                                      substring(x.description,156,39),
                                      substring(x.description,195,39),
                                      substring(x.description,234,39),
                                      substring(x.description,273,39),
                                      substring(x.description,312,39),  
                                      substring(x.description,351,39)
#DB=SQLSVR#    
#DB=Other#                left(x.description,38),
                                      mid(x.description,40,38),
                                      mid(x.description,79,38),
                                      mid(x.description,118,38),
                                      mid(x.description,157,38),
                                      mid(x.description,196,38)
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Mike Pagel

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: information items conveyed in information flow
« Reply #2 on: August 24, 2012, 07:12:33 pm »
Not sure I get the question correctly. But apart from low-level DB queries you can access a connector's conveyed items easily through the automation interface:

Code: [Select]
if( connector.MetaType == "InformationFlow" )
{
    // element collection of conveyed items:
    Collection items = connector.ConveyedItems;
    ...
}

Mike