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.

Topics - chrvi

Pages: [1] 2 3
General Board / How to search for Initial Code value?
« on: September 20, 2007, 02:33:42 am »

I've populated a method's Initial Code but I can't use Advanced search (searching Method Details) to find it. If it were Behavior field I'd obtain the object immediately. However, for the Initial Code field it doesn't work.

Does anybody know another way of searching for initial code values?



General Board / Detailed settings for RTF-templates
« on: October 31, 2007, 08:05:49 am »

first of all I'd like to ask whether it is possible to run generating of RTF documentation (with our own teplate) non-interactively, i.e. programmatically via automation interface. And if it is possible, how can I do that?

If it's not possible, please, ignore the following, since we won't be able to use EA templates then...
We're trying to write our own RTF templates and have some troubles (probably due to lack of knowledge) which limit us rather much. We just can't find filtering, conditional options and contraints:
How can we set the template not to process all elements but let's say UseCases only?
How can we set the template to process only classes having a tagged value A with "xxx" value?
How can we set the template to display the whole content of some class linked file? (We're able to display the linked file path or size but can't display its content - at least for linked text files this would be really nice)
In short, we're missing a possibility of some "ifs and thens"...

Is there an area in the EA help file describing this issue and we just missed it? Or is it a bit more complicated?



General Board / How to rename a database datatype?
« on: October 30, 2007, 03:05:55 am »
Hello there,

I'd like to rename a database datatype in my (manually created) product. This can be done very easy in Settings / Database Datatypes.
However, this doesn't change any existing attribute having this data type as its type.
I mean, if I rename my database datatype from AAA to BBB all the existing attributes having type AAA will remain unchanged, having (now non-existing) type AAA.

How can I rename the database datatype to achieve also all the attributes to change their type from AAA to BBB automatically? It seems to me quite a natural requirement but I can't find a way of doing it...

Thanks for any hint.


General Board / Attributes (table columns) data types disappeared!
« on: October 25, 2007, 11:31:57 pm »

I have a large EA project (on SQL database) with several models. I have also a new "product" (i.e. database datatypes) MyProduct (with almost the same types as in Informix) and the project has lots of packages version controlled.

I've just discovered that in one of my models I can't see table column data types in "Data type" field of any column in this model tables.  
So far, this model table columns have always displayed correctly but suddenly their data type information just disappeared.
All the tables still contain correctly set MyProduct in Database field but I can't even select any column data type of a table since the "Data type" drop-down list is empty.

In other models of the same project everything works fine and all the MyProduct tables display their column datatypes correctly.

We've discovered that checking-out a package from the problematic model fixes the columns data types displaying but the trouble is the amount of such version controled packages which would have to be processed to correct the whole model.
Unfortunately, in "File history" of the version controlled packages there is no change (so we still don't know the cause of our problem).

I just don't have any idea why the whole model data became suddenly "incorrect" neither how to fix it as soon as possible (without checking-out and checking-in all the packages under version control).

Any hint would be really appreciated...



General Board / FK operation sometimes dissappears after saving
« on: October 22, 2007, 06:11:29 am »

I've encountered a problem with saving my model after I created a foreign key. The FK operation is created correctly when I design a new foreign key. However, sometimes(unfortunately not always) when I save such a model (either by closing the diagram containing the newly created FK connector or by menu File / Save Project or by Window / Save All Modified) the automatically created FK operation is deleted. The connector on the diagram seems to be OK, nevertheless if I display the "Foreign keys" property there are no source columns mapped to target columns (although before saving the model the mapping was correct). I can neither find the FK operation in my table's operations.

Has anybody had the same problem? Don't you have any idea what can be wrong with my data (since most foreign keys are created correctly and remain correct after saving the model, while only few of them don't keep their FK operation after saving)?



General Board / How to migrate a Rose model to EA?
« on: July 18, 2007, 11:11:41 pm »

I'd like to migrate a model from Rational Rose to EA (because of our company's decision to start using EA instead of Rose). Unfortunately our Rose support ended a quite short period before I found a note about "Unisys XMI AddIns for Rational Rose" which could have solved this task for me, so I'll probably have to migrate the model myself.

If you know a way of doing the migration without the need of decoding the model and populating a new EA model via automation, please, let me know.


General Board / User defined types (obtained e.g. from Rose)
« on: June 26, 2007, 02:52:26 am »

in Rational Rose I had the option to create a class and use it as a type of a table column. (I had a class called "Debit Amount" having type Double and I could use "Debit Amount" as a type in my tables for example)

Can I achieve the same (i.e. to use a class as a table column type) in EA somehow?

In EA I can create a new database datatype (via Settings/Database_Datatypes) but I can only set name, default value and max length (or precision).
In Rose I could have set check constraints for the class I used as a table column type. However, I can't achieve the same functionality (check constraints etc...) in EA using DB datatypes...

I'd appreciate any hint.



is there a way of saving a copy of an opened EA project into another file via automation? (just like Save Project As and selecting Type of Save = Copy)



Hi there,

I'm supposed to automatically generate a HTML report from an EA project. Is there a way how to do that (some special Java API method)?

It's easy to do that manually but I haven't found any suitable API method to simulate it programmaticaly, so far.

Thanks for any hint.


Automation Interface, Add-Ins and Tools / FKINFO question
« on: October 19, 2007, 03:54:14 am »
Hey there,

sometimes when I create foreign keys in EA I achieve FKINFO string in the form
and sometimes in the form

Is it usual (i.e. you can't tell in advance what the SRC and DST ordering will be because they are just in a random order) or does it depend on some EA settings?




I wonder if anybody knows how to force EA process to quit before my Java application finishes as well.

Although I call
the EA process is still alive and doesn't quit until my Java application also finishes.

Don't you have any idea how to fix it?

My application connects to EA several times and it makes me crazy I can't stop the previous processes which aren't active any more (but consume a significant amount of memory to let them be...).

And what's more - I've just noticed I can't create more than 7 EA processes - I tried to manually open more than 7 EA projects but all the processes (exceeding those 7 already existing) are automatically closed... Please, help!

Any hint is welcome.



Automation Interface, Add-Ins and Tools / how to create an empty project?
« on: September 19, 2007, 02:28:28 pm »
Hi there,

I've always worked through Java API with an existing .eap file but how can I create new such a file (containing let's say one class view model)?

I bet I've seen it discussed somewhere but...

All your hints are welcome.



I work with EA via Java API.
Sometimes, when processing large models (thousands of nodes in the model) I get the following error:
JDWP exit error JVMTI_ERROR_NULL_POINTER(100): NewGlobalRefFATAL ERROR in native method: JDWP NewGlobalRef, jvmtiError=JVMTI_ERROR_NULL_POINTER(100)

Has any of you ever seen such an error? And if so, don't you know how to avoid it?

I'm used to analyze java exceptions but this is, unfortunatelly, not the case... :-(



Automation Interface, Add-Ins and Tools / Diagrams exporting problem
« on: September 12, 2007, 09:47:36 am »

I'm trying to export diagrams into image files. However, some of the exported files are zero-sized.
I have finally discovered the reason:
When I create a DiagramObject I use the following code:
Code: [Select]

DiagramObject newDiagramObject = aParentDiagram.GetDiagramObjects().AddNew(diagramObjectName, "something");

I don't know why but the String "something" becomes a content of newDiagramObject.Style attribute.

The diagramObjects created manually in EA contains something like this in their Style attribute: "DUID=461CC6F9;"
Diagrams containg diagramObjects with such a Style attribute export correctly.

Diagrams containing diagramObjects created via automation and with their Style set to "AttPro=0;AttPri=0;AttPub=0;AttPkg=0;OpPro=0;OpPri=0;OpPub=0;OpPkg=0;RzO=1;" (because I don't want attributes info or methods info to be shown in the diagram for this diagramObject) export also correctly (despite the Style attribute contains no DUID info as in the previous case).

However, diagrams with diagramObjects created simply by AddNew(diagramObjectName, "something"), contains "something" in their Style. In EA you can't notice this. The diagram looks normally. But the exported diagram will be an empty file then.

So HOW shall I populate the diagram's diagramObject's Style to make the diagram export correctly and to have diagramObjects displayed WITH their attributes and methods?

Possibly by setting DUID to the Style attribute but how to do that? What is the mysterious DUID and how to access it?

Thanks for any hint...

Automation Interface, Add-Ins and Tools / How to export diagram image?
« on: September 03, 2007, 07:43:05 am »
Hi there,

could you please tell me how to export diagram image from automation interface?

I can do various things with diagrams but I still haven't found a way of exporting (saving) them as a bitmap or something like that...

Thanks a lot for any advice.


Pages: [1] 2 3