Book a Demo

Author Topic: information flow in EA  (Read 10116 times)

alexander komakula

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
information flow in EA
« on: September 28, 2010, 01:38:34 pm »
hi,
am trying to create a infomation flow connector and add a signal and realize it using automation..is it possible

fwoolz

  • EA User
  • **
  • Posts: 435
  • Karma: +0/-0
  • We have met the enemy, and he is us.<Pogo, 1970>
    • View Profile
Re: information flow in EA
« Reply #1 on: September 28, 2010, 03:10:55 pm »
IIRC, EA uses some database hackage to tie an information item to an information flow... I'll have to see if I can retrieve my recollections on this from the dusty vault in my head...
Fred Woolsey
Interfleet Technology Inc.

Always be ready to laugh at yourself; that way, you beat everyone else to the punch.


fwoolz

  • EA User
  • **
  • Posts: 435
  • Karma: +0/-0
  • We have met the enemy, and he is us.<Pogo, 1970>
    • View Profile
Re: information flow in EA
« Reply #2 on: September 28, 2010, 03:29:18 pm »
OK, here's what I found:

1) The Information Item is linked to its associated Information Flow connector by an entry in table t_xref in the EA database, as below:

Fields:
XrefID, Name, Type, Visibility, Namespace, Requirement, Constraint, Behavior, Partition, Description, Client, Link

Values:
{755E6BE2-3935-4251-8EFE-3FC343EC5327}, MOFProps, connector property, Public, , , , conveyed, 0, {153649D7-4576-43e3-AFC9-164C8E54F20F}, {35FF94D1-A91D-46ff-99E7-8DA48A27150E}, <none>      

The fields 'Description' and 'Client' are the ea_guids for the information item and the information flow, respectively.

2) If another connector (say, an association) realizes an information flow, the connector and the information flow are linked by an entry in table t_xref in the EA database, as below:

Fields:
XrefID, Name, Type, Visibility, Namespace, Requirement, Constraint, Behavior, Partition, Description, Client, Link

Values:
{8CB6EFC6-E0E0-4614-92E2-1895BAF4C3C5}, MOFProps, connector property, Public, , , , abstraction, 0, {35FF94D1-A91D-46ff-99E7-8DA48A27150E}, {DA2F4C80-6125-453b-AAF3-51B81B9DDD82}, <none>

The fields 'Description' and 'Client' are the ea_guids for the information flow and the association, respectively.

3) If you want to do this programmatically, it appears that you would need to add the necessary rows to table t_xref yourself, either by using the undocumented AI method Repository.Execute(<SQL statement to add a row>) (see http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1284736693/1#1 for more info) or by accessing the database directly using the database driver of your choice.

Word to Sparx - this outta be addressed in the API.
Fred Woolsey
Interfleet Technology Inc.

Always be ready to laugh at yourself; that way, you beat everyone else to the punch.


alexander komakula

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: information flow in EA
« Reply #3 on: September 29, 2010, 02:50:38 pm »
Thanks for the information.but instead of directly updating table are there any api's for doing so

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: information flow in EA
« Reply #4 on: September 29, 2010, 03:13:50 pm »
Alexander,

If you read Freds reply carefully you will notice that the link to the information items is not exposed by the API, hence the complex database solution offered.

Geert

Kris Nunes

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: information flow in EA
« Reply #5 on: March 28, 2011, 05:27:11 pm »
This is a super cool feature to have access to via the API.

I see it being used extensively in Data architecture when we need to map processes, data and systems (DFDs, CRUD,,,,)

Will this be possible in the upcoming releases of Sparx? If someone knows someone in Sparx, they need to point this missing API.

regards,
Kris NUNES


RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: information flow in EA
« Reply #6 on: March 29, 2011, 09:40:00 am »
Kris (and anyone else interested)

Please submit this as a Feature Request (or, if you prefer, a bug report) directly to Sparx Support using the links in the Support column at the foot of this page.

Thanks
« Last Edit: March 29, 2011, 09:52:04 am by RoyC »
Best Regards, Roy

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: information flow in EA
« Reply #7 on: April 05, 2011, 08:06:26 pm »
Until information flows are supported via EA API, can't we use the SQLQuery method on the Repository?
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Dave_Bullet

  • EA User
  • **
  • Posts: 295
  • Karma: +0/-0
    • View Profile
Re: information flow in EA
« Reply #8 on: April 11, 2011, 08:39:15 am »
t_xref is the "black hole" table in EA.  If you can't find what you are looking for in your regular EA base tables, it's probably living in t_xref.  It allows Sparx to add features without worrying about having people apply DB patches to upgrade, support multiple different EA versions & backward compatibility.

A feature request would make sense to abstract the complexity of this table and also insulate future DB level changes by Sparx.
"I know I'm close to a good design, but it's like the balloon animals, squeeze in one spot and the problem moves down the line"

Colin Richardson

  • EA User
  • **
  • Posts: 52
  • Karma: +0/-0
    • View Profile
Re: information flow in EA
« Reply #9 on: May 04, 2011, 09:50:53 pm »
The PDATA columns also hide a wealth of information...

Best bet for this sort of stuff is turn on SQLProfiler and do it in EA and check your trace.