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 - Andreas Morgenstern

Pages: [1] 2
1
General Board / Re: Save data to file?
« on: July 25, 2017, 03:11:20 am »
Hi,

sorry for coming back to this old topic, but I'm facing exactly the same problem:
how to write to a file from JScript (or even better: Javascript) from within EA scripting.
A small code snippet how to achieve that would be really great.

Andreas

2
Hello Geert,

thanks for your reply. I think we talk about the same stuff.
I think that my problem would also be solved, if I could not show the package name, but the containing element. Is this possible in the relationship matrix?

Maybe I describe what I want to achieve:
* We have high-level processes (modeled as an "Process" stereotyped activity) that contain activities.
* Activities are performed (a "perform" stereotyped dependency) by UML actors

In the relationship matrix I want to show the actor x activity / perform relationships.
Works well out of the box, but the problem is that often the activity is described in a way such that its meaning is only clear when you know the surrounding process.

Simple example: activity= store data. Process = Calibrate a device.
With the knowledge of the process, it is clear that the activity is "Store Calibration Data". 
However, in the relationship matrix you will only see "store data". Ideally, you would see "Store Calibration Data.store data".
The "Name(full)" from the document generation gives me that information (as well as some useless information, but I can live with that).

Yours,

Andreas







3
Automation Interface, Add-Ins and Tools / Full Name in Relationship Matrix
« on: December 21, 2016, 10:11:15 pm »
Hi,

is there a way to show the full name in the Relationship matrix?
In the options, I did not find a way.

Andreas

4
Hello Uffe,

can you please explain more?
I thought I found a solution, but unfortunately failed.

Andreas

5
Hi,

thanks for your help. It works. A minimal working example that just returns a hyperlink to the currently processed object is:

Code: [Select]
SELECT (CONCAT (t_object.ea_guid,t_object.Name)) AS "Name.Hyperlink"
FROM t_object
WHERE t_object.Object_ID = #OBJECTID#

Yours

Andreas

6
Hi,

I'd like to insert hyperlinks into a custom sql fragment within the document generator but I fail
on an oracle DB. Did anyone use a custom sql fragment on a oracle database and can
tell me what todo?

Andreas


E.g.  I've tried the following SQL-fragment taken from Sparx EA Documentation:

Code: [Select]
SELECT t_object.ea_guid CONCAT t_object.Name

     AS [BaseClassName.Hyperlink]

     FROM t_object, t_connector

     WHERE t_connector.Start_Object_ID = #OBJECTID#

     AND t_object.Object_ID = t_connector.End_Object_ID

     AND t_connector.Connector_Type = 'Generalization'

Unfortunately, what I get is (translated from german):
Keyword FROM not found at expected place ...


7
Hi,

thanks for your reply. I'm an idiot.
I did not realize that one can select a template for the child elements

Andreas

8
Hi,

I want to generate a document for a component that contains sub-components
and would like to use a different template for the component than for the sub-components.
Any idea how I can achieve that with the build-in features of the document generator?

Andreas

9
Hello Peter,

what was your solution? I had a similar problem but found no solution.

Andreas

10
Hi,

I'm currently trying to setup a documentation Generation based on an EA-Model.
There, I want to also document the requirements (as an EA-Element) linked to a component.

Which connector type/stereotype do I have to use such that I can use the build-in
"External-Requirement" functionality?

I already figured out that one connector that works is the realizes-connector,
but for our modeling approach this is not the most appropriate.


Thanks for your help

Andreas

11
Hi,

assume we have an Element with two Diagrams below.

Element
     Diagram 1
     Diagram 2

If I generate the documentation generation manually in the context menu of Element, everything works fine.
However, when I use the docGenerator API from within a script the generated rtf-documentation wrongly contains the diagram Diagram 1 twice.

Anybody has an idea?

Andreas

Code: [Select]
var DOCUMENTATION_TYPE=dtRTF;
var OUTPUT_FILE="C:\\Users\\morgenst\\Documents\\test.rtf";;
var ComponentTEMPLATE="ACTL Context Diagram Template";

function main()
{
Session.Output("Documentation Example");
// Create a document generator object
var docGenerator as EA.DocumentGenerator;
docGenerator = Repository.CreateDocumentGenerator();
// Create a new document
Session.Output("Documentation Generator created");
if ( docGenerator.NewDocument("") )
{
generationSuccess = docGenerator.DocumentElement(4749, 0, ComponentTEMPLATE );
if ( !generationSuccess )
Session.Output( "Error generating Component documentation: " + docGenerator.GetLastError() );
success=docGenerator.SaveDocument(OUTPUT_FILE,DOCUMENTATION_TYPE);
if (!success)
Session.Output("Error saving to File:"+docGenerator.GetLastError());
Session.Output( "Done!" );

}
else
{
Session.Output( "Could not create new document: " + docGenerator.GetLastError() );
}

}


main();

12
General Board / Re: Deleting of Notes not possible
« on: June 15, 2016, 06:31:16 pm »
Hi Phil,

thanks. That helped me.

Andreas

13
General Board / Re: Deleting of Notes not possible
« on: June 15, 2016, 04:45:05 pm »
I'm using EA12

14
General Board / Re: Deleting of Notes not possible
« on: June 14, 2016, 08:58:57 pm »
Hi,

found the use case. Now the note has been removed.
Anyway, strange behavior that I cannot remove the note alone.
Nevertheless, thanks a lot for your help.

Yours,

Andreas

15
General Board / Re: Deleting of Notes not possible
« on: June 14, 2016, 08:54:40 pm »
Hi Geert,

thanks for your reply. Is there a way to simply remove the note from the diagrams?
The Use Case has already been removed from the diagram, the note still stays there
and can not be deleted.
Do you know a way how to find the use case that has this extension point?

Yours,

Andreas


Pages: [1] 2