Book a Demo

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 - ndg2

Pages: [1]
1
Automation Interface, Add-Ins and Tools / Documenting Decision Tables, how?
« on: February 09, 2019, 05:19:02 am »
I'm at a loss when it Comes to simple decision tables. I have to create a Report for Actions and (among other Things like Scenarios, associated use cases etc.) those Actions have decision tables.

Any idea how to document them? Where are those decision Matrices stored? It would be OK for me to just know the SQL tables where those simple DMN table Information is stored and I could use the Automation Interface.

Or is the solution simpler and those tables are something like relationship Matrices?
Any tips?

2
The Automation class "DocumentGenerator" knows about ".DocumentElement()", ".DocumentPackage()" and ".DocumentDiagram()" (among other functions), but not about ".DocumentAttribute()", ".DocumentMethod()" etc. This is a shortcoming, because I cannot document those Features individually but only within a template with outer element selector. For example, I'm not able to intercept between Parameters of individual methods etc.

3
We are using EA 13 (13.0.1306). For my company I modeled special toolboxes (restricted
elements and relationships compared to standard UML) and diagram types (just derived from
standard UML, no special stereotype profiles, with one exception). I used toolbar profiles
and diagram profiles, respectively.

I want to use the adapted diagram types the newly adapted toolboxes. According to
https://www.sparxsystems.com.au/enterprise_architect_user_guide/10/extending_uml_models/overriding_default_toolboxes.html
we can override most predefined UML diagram types. 

With some astonishment however, I noticed, that UML::Package is missing.
Aren't Package diagrams also part of the UML? Which diagram type from
the above page would be needed to redefine the toolbox for the Package diagram
(if possible at all)?


Regards
Frank

4
Hello, I want to create Activity Diagrams for Operations, which have the Activity owning that diagram set as op.Behavior. Now I created a "Document Script" template pointing to a VB script evaluating operations and their activity diagrams. This VB script then in turn invokes a document template printing out images (compare this e.g. to https://zubkiewicz.com/nonlinear-generation-of-documentation-in-sparx-enterprise-architect/). From that document script I would like to be able to give the operation's  "OperationID" as argument to the VB script in the vain of "#OBJECTID#". That means I would like to give something like "#OPERATIONID#". That doesn't seem to exist?

Background info: the diagrams get printed anyway (I think, either as member of the owning package or as child elements of the owning class). However, I would like to see them printed directly after the method gets processed, not at the end or beginning of the class who owns the operation.

5
In addition to my own diagram types and toolbox profiles, I would like to restrict quick linker selection of elements to match those connectors I defined in my toolbox profile(s).

Now I see for example documentation like https://www.sparxsystems.com/enterprise_architect_user_guide/10/extending_uml_models/add_quick_linker_definition_to.html. It's not entirely clear to me, which profile type is meant: is is (exclusively) a profile in the sense of adapting stereotypes to metaclasses or can it be also a "diagram profile" or "toolbox profile"?

I want to avoid having to create a metaclass/stereotype profile solely for the purpose of adapting the quick linker feature. Instead I want to add a definition to my diagram profile and include it then in my new toolbox/diagram MDG.


6
Hello,

as far as I understand, EA document generator will produce
bookmarks for each element and package. We can refer to
those bookmarks within the same document template but also
from other templates.

I create a list of requirements as part of my normal document
generation.

Now, I create a list of requirements as an appendix using
a custom template and a custom SQL query.


The query is

   select t_object.ea_guid + t_object.Name as [Req-Hyperlink], t_object.ea_guid as CLASSGUID, t_object.Object_Type as CLASSTYPE
   from t_object
   where t_object.Stereotype = 'Func. Req.' and t_object.Package_ID = #Package#

   
In the (custom) template I refer to [Req-Hyperlink] as

        custom >
   Functional Requirement {Req.Hyperlink}
        < custom
   

The SQL query and template produce entries in the generated
documents like

   Functional Requirement Close Mailbox
   
and "Close Mailbox" has a hyperlink (or bookmark reference, depending on how you view it) as

   "BKM_FEF4D7AD-98FE-456c-9E34-03603C99C7CC"

This bookmark(s) seems to be present in the document   


Now the problem: for RTF and DOCX, jumping from hyperlink at the end of the document
to referenced element (here: requirement) in the midst of the document
works as expected, but _not_ for PDF. For PDF it will just jump to the end if you click on
a hyperlink (or <CTRL>-click on it). Is that normal? Is it a known problem?
In the latter case: is there something wrong with how I do it? The SQL and template fields
work for both .eap and SQL server (here Oracle), so this isn't the problem I guess.

7
Hello, an VBScript "UpperLowerReqs" invokes two Fragments "UpperLevelReqsFragment" and "LowerLevelReqsFragment". The VBScript itself gets invoked from within a "custom" section ("Custom Fragment Script") of another template. No problem so far as long as I work within my "Document Generation \ User Templates \ Mytemplates" folder within "Ressources". As soon as I package everything into an MDG Technology however, "UpperLowerReqs" won't be able to find  "UpperLevelReqsFragment" and "LowerLevelReqsFragment" anymore. Please note, those templates are there in the MDG XML! I made that sure. A workaround is to copy "UpperLevelReqsFragment" and "LowerLevelReqsFragment" into some other ressource folder of the model that imports the MDG. Suddnely the VBScript is able to find the templates again. Any ideas? Looks like some registration problem to me. I'm using EA 13.

8
Hello, I would like to know whether there is an easy means to know the "level" or "depth" of a package relative to the start (="model" package) or relative to some other package? There is no "Package.Level" though in the Package class of the automation interface(https://www.sparxsystems.com/enterprise_architect_user_guide/9.3/automation/package_2.html). The actual reason for
 this question is some other problem, though: in a report, I have problems with adjustment of headings for elements like use cases. I use "list override" numberings for both packages and elements. But only for the packages, the heading levels (and therefore the numbering 1, 1.1, 1.1.1 etc.) gets adjusted automatically. Knowing the package nesting would allow me to adjust the heading automatically within DocumentElement (long elementID, long nDepth, string templateName) of the DocumentGenerator class (https://www.sparxsystems.com/enterprise_architect_user_guide/9.3/automation/document_generator_interface_class.html). Highly appreciated, if someone could help with either the first or the second problem (preferably both  ;) )

Pages: [1]