Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Shegit Brahm

Pages: 1 2 3 [4] 5 6 7
Hi there,

I have an EA 13.x with MDG to evaluate how to combine an EA model with Eclipse (photon), like the UML models or code stuff.

My aim is to get a vice versa connection between these two "UMLable" platforms. To add stuff here and edit it there and an update has both on same level.

My (main) question is:
  • What did / do you use successfully and which way?
  • What would you recommend to use / have a look at?

The build-in extension from Sparx cannot cope with declarations like "static class Swapper implements Sorter.Swapper" - EA kills "Sorter." which is not nice.  And it shows eclipse warnings as errors, at least it builds the project anyway. And if I change code, the build transfers it - it is just not offered while using "merge with eclipse".,37328.msg234218.html#msg234218 pointed out how to get the feature inside EA running to get a connection itself to eclipse (copy sparx jars into eclipse folders). It just did not appear inside eclipse gui - only under "installed software - plugins" are two mentioned.
The official guide does not tell anything that or how I could use it from eclipse side. And it is from 2008.

Regarding this post,39647.msg244365.html I tried also Luna (=4.4), but behavior was the same with photon. (mentioned above)

openArchitectureWare with EclipseLink like suggested here,28169.msg212539.html is no option any longer since it is discontinued in 2008 with 4.3.1 and no download available - and I don't understand how the "successor" Xtext and Xpand fill the "gap" between EA and eclipse. They seem to focus on DSL building instead.

I tried to get in contact with the guys from modelbus (see,30833.msg223984.html), but they lack time to answer. Just their descriptions sound more than wanted.
The Yakindu EA Bridge I still need to look at. As well as on "export UML to eclipse" suggestion

Thanks for reading and some ideas,
Shegit Brahm

Hi there,

I try to generate a documentation on package_1 by using virtual documents, see project browser structure:
  • Package_1
    • UC diagram
  • (...)
  • Package_5
    • sub package_5.1
      • sub sub package_x.y.z
        • UC1
          • AD (Composite of UseCase)
            • Activity
              • Action1
              • (...)   
              • Final
              • Initial
        • UC2

  • UC diagram - UC: UC imported as “Link” in diagram
  • UC - AD: AD is composite child diagram of UC, stored in same package as UC
  • AD - AD elements: AD elements have the activity as parent and are stored in same package

There's need to get UC diagram, UCs, AD, activity, action, (…), initial and final included in that documentation.

The first approach to get that done was to use template and fragments. The resulting documentation contains UC diagram, UCs, but neither AD, activity nor anything being a child-child of the UseCase.

So I turned to virtual documents. In order to grab the missing AD and its diagram elements and get them reported, I tried to create a model search applied as tagged values of a model document.

But it turned out that my created model search doesn't work. I think, my approach of implementing a model search into a model document isn't correct.
Beside any general solution to my context I think I need to understand first:
How to use model search in model document?
Where do I have to write what? The modal search as a query is a custom sql of a fragment within the template that is chosen for the modal document?

I was unable to use the help in to get a working virtual document that uses a modal search. The semi-automated approach published there by Geert is not “copyable” for me because I need to start on a package, not a diagram.


PS: If you prefer to revitalize the old thread as it seems to be the topic: short notice and I will to so.

General Board / Re: How to create / design completely new elements for EA?
« on: February 09, 2018, 03:22:49 am »
Thanks for your hint.

Do I understand it correct that the EA uses the UML as base for any of the listed technologies?
At least XML is used to describe everything while exporting it.


General Board / How to create / design completely new elements for EA?
« on: February 09, 2018, 01:12:42 am »

in my understanding there is a vast variety of toolset available for EA.
OMG modeling like UML, SPEM, SoaML, BPMN and others like ICONIX, DatabaseModeling, Win32 User Interface, NIEM.
These come with there own element description the EA can work with.

I already configured UML profiles and created toolboxes, providing them via MDG Technology.

How to create something "new" that is not derived from existing models?

Own elements with there own shape and stuff.

The problem I want to solve?
Well there is an new interface description in research and I'd like to model with it.
Right now I would use an UML Profile which comes up with stereotypes and stuff, but it is not "right" as it is yet not based on the UML.


As far as I understand is ctrl+f the project wide search where I could test the select step by step as it "grows".

Well, did that already.

And I also add some text outside the custom> <custom tags to see if I entered the fragment (everything inside these angle brackets gets printed only if the fragment query itself returned something.

I understand that I need simple fragments that return only #objectid# etc. to use that knowledge and replace #OBJECTID# inside search with hard numbers.
=> Instead " ob1.object_id = #OBJECTID#" I transform it for the search into " ob1.object_id = 524 "

Because my fragments usually start on a package that contains only a diagram and no elements - so I'm unable to start the search on the package or the diagram as there is no "CurrentElementID" if there is no element the search starts on  (

Unless someone knows any other options, I mark it as solved with workaround.


Hi there,

I'm writing template fragments and need to play around with the SQL queries as I'm not that familiar with it.

Now it happens that I get more or less useful error messages from EA and I wonder: which way could I use to debug a template fragment?

I tried to create a search first and use it. It seems that it's not always possible - should it be?
(like usage both of #PACKAGEID# and #OBJECTID# inside a query)

Even if I don't get an error, the fragment does nothing because my query didn't deliver anything - so I need to evaluate why.


Hi you three,

thank you very much for your suggestions and links.

I will take a look at it and if I have specific questions, I will post them in new topics :-)

@Nizam: I read that page from Sparx, I just didn't manage to have the script-called fragment to insert anything inside PDF

@Geert: I avoided RTF until now, so I will try to forget RTF experiences from outside EA and start over again.

@Nabil: thanks for providing a full eap, will take a look.


Hi there,

I have following situation:
I'd like to use as much onboard mechanics as possible to create a customized PDF of a package's content.

EA has build in the way: F8 on a package and selecting some templates (front, toc, main) and set some options and ... voila, a PDF is generated.

What I think I don't want: write my own addin. Because the more "wysiwyg" is visible via template and the less code, the better for maintenance by other people (I suppose).

The tricky part already started that the achieved PDF is that individual, that I start with a template, go over to a fragment with TemplateSelector and run specific fragments.

In my attempts I figured out that a TemplateSelector can only decide by element type and a sql query misses something like "if then else". Because I would need for each table a fragment - otherwise the tables got mixed up.

So I'd like to point the template to a JScript-fragment which should point to a fragment again. (JScript instead VBScript by flip of a coin)
Because I want to decide e.g. on element's colour which I cannot so far by using a template selector.

My questions:
- Is that possible, to go from a template to JScript then to a fragment and having everything inside the PDF which is created by the template in the first place?
- Where can I read about it?

I'm able to pass the object id and package id from template to JScript  - main(#OBJECTID#, #PACKAGEID#) - and create a separate document (Class EA.DocumentGenerator).
I just tried to read through EA pages and examples and don't know which keywords I need to look for.

Thanks, Shegit

@Simon M:

Thanks for your answer, that fits to my intention of my question.
So the license management of a company decides to have everywhere e.g. the same minimum off functionality over all users (or whatever the reason finally was).

In mentioned situation it was already a service based keystore as I had to enter a server address the very first time and never again.
So support fixing the problem also did nothing else than installing new on top.

Thank you!


I was working on a costumers notebook with EA and one day I was told that my EA version / build does not fit the requirements to gain a license.

Support just installed the newest version and everything was fine.

Now I want to know: as for my own company - do "I" as the license server owner configure it that way? Or does it come together with bought (corporate, floating) licenses as a default feature?
I didn't find any answer on sparx or google.

In earlier scenarios a file based keystore allowed EA 7 as well as  and EA 9 and EA 11.

So who decides which version I need to have in a floating license environment? Sparx or the company?


Automation Interface, Add-Ins and Tools / Re: GUID of a diagram
« on: December 11, 2017, 08:30:51 pm »
Hi Geert,

thanks for your repeat how to get it and I see that my way to get a diagram's guid is broken.

I'm sorry that I made you uncomfortable and I apologize for my tone. Thank you for raising this issue.

(it is based in my personal frustation with wrong usage and "gui bug" - so never ever a reason to get aggressive against you)


Automation Interface, Add-Ins and Tools / Re: GUID of a diagram
« on: December 11, 2017, 07:42:01 pm »
Well, I'm here to learn: please upload an eap-file with a few diagrams (at least one package with two diagrams) and list the ea-guids.

I use as guid-search this query:
select * from t_object where ea_guid like '*<Search Term>*'

If I understand you right, then I will find none of your guids with this query.

If I find all and they direct me to the package instead (using control + g as shortcut in resultlist)  - what else do I do wrong? I expect to find this guids only querying t_diagram.
Because whenever I switch from an element or package to a diagram and have properties window open all time, the shown guid either disappears or does not change.


modified: more detailed description of my pov.

Automation Interface, Add-Ins and Tools / Re: GUID of a diagram
« on: December 11, 2017, 06:36:27 pm »
Sorry Viking,

you may expore your eap-file as database and find an ea_guid column inside table t_diagram - but that's only to fool you.

Diagrams don't have their own ea_guid.

If any is shown than the one from the package they are in. Because searching for the ea_guid of t_diagrams always leads me to the packages.


I was already ready :)

create a fragment "MyFragment" containing a table with needed values (insert custom field ->{}):
custom >

click on document options for this fragment and change Custom Query to Custom SQL and insert:
Code: [Select]
ob.Alias as Call_ID,
ob.Phase as Release,
ob.Status as Status, as Name,

t_object ob, t_connector con
con.Start_Object_ID = #OBJECTID#
and ob.Object_ID=con.End_Object_ID
and (ob.Object_Type = 'UseCase' or ob.Object_Type = 'Requirement')
order by ob.Alias asc
(for the connection the other way round exchange Start with End in the where-part and if need both: build two fragments, the combination via "or" is extremely slow)

Then create the containing template.  In my case I need this:
diagram >
element >
{Template - MyFragment}
< element
< diagram

The tricky part was: I had to Insert Template between "diagram >" and "element >" via rightclick, then cut this part and insert it between "element >" and "< element". Because in EA (12.1) it is impossible to use rightclick for Insert Template.

Thanks for your help,
now I dig deeper into fragments and reading eap by SQL :)


I'm coming closer to my aim - now I can list element details of elements shown inside a diagram which constraint that the elements are located in a different package than the diagram and document generation is done over diagram package.

Code: [Select]
ob.Alias as Call_ID,
ob.Phase as Release,
ob.Status as Status, as Name,
ob.Object_Type as Type,
dia.Diagram_ID as diade,
dia.Package_id as diapack,
dia.Diagram_Type as typus,
dia.Name as dianamus,
pac.package_id as pacpac
t_diagram dia, t_diagramobjects diaob, t_package pac, t_object ob
dia.package_id =  #PACKAGEID#
and pac.package_Id = dia.package_id
and diaob.diagram_id = dia.diagram_id
and ob.object_id = diaob.object_id
order by ob.alias asc
fills the fragment
custom >
Call_ID   Release   Status   Name   Ob-Type   diade   diapack   dia-typus   dianamus   pacpac
{Call_ID}   {Release}   {Status}   {Name}   {Type}   {diade}   {diapack}   {typus}   {dianamus}   {pacpac}
< custom

inside the template at
diagram >
{Template - MyFragment}
< diagram

My next steps will be:
- list the diagram element with its needed description one by one
- list the connections of each element in a table (see fragment querying t_object and q_connections)

Any suggestions appreciated ;-), I will post my solution when I'm done,

PS: Having a unused table in the "from" part gives me the rows multiple times. Was quite a relief after getting it back to previous look.

Pages: 1 2 3 [4] 5 6 7