Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Jonathan Lubach on August 23, 2012, 06:00:52 pm
-
Hi folks,
I have an RTF report template in which i want to create a list of all actors of multiple use case diagrams. These diagrams are in the same package and partially contain equal actors. But i don't want the reporter to double these equal actors in the summary list.
Example:
UC-Diagram 1 contains actors A, B and C
UC-Diagram 2 contains actors A, D and E
UC-Diagram 3 contains actors E, G, H and O
The resulting list in the RTF report should look like follows:
"Actors of diagrams 1,2 and 3 are:
- Actor A
- Actor B
- Actor C
- Actor D
- Actor E
- Actor G
-..."
Currently I include the diagrams in the report and have the option "Document each contained Element in RTF" of the diagram's property window ticked. A filter for only reporting actors is also activated in the RTF template.
Do you know a solution to create such a list, where all the elements only appear as a single "instance" and not doubled (due to usage in multiple diagrams)??
Thanks!
Jonathan
FYI: I use EA in Desktop Edition.
-
Why don´t you create an unique package with the ACTORS and just on the use case diagram (another package) past the element (ACTOR) as Simple link?
-
Hi,
Why don´t you create an unique package with the ACTORS and just on the use case diagram (another package) past the element (ACTOR) as Simple link?
I did it that way. All the actors are in a general package. The diagrams where the actors are added as simple link are in an another package.
I don't have doubled elements (actors), but some of the actors are necessary in more than one use case diagram and so they are listed multiple times. Currently the RTF list output is as follows (according to the example in my first post):
- Actor A
- Actor B
- Actor C
- Actor A #
- Actor D
- Actor E
- Actor E #
- Actor G
- Actor H
- Actor O
I want EA to not to include the actor instances with the "#" in the RTF output.
Thanks for any hint.
Jonathan
-
Hi folks,
I solved this issue using a user defined search via SQL:
SELECT ea_guid AS CLASSGUID, Object_Type FROM t_object
WHERE Object_ID IN
(SELECT Object_ID FROM t_diagramobjects
WHERE Diagram_ID IN
(SELECT t_diagram.Diagram_ID from t_diagram, t_package
WHERE t_diagram.package_id = t_package.package_id AND t_package.ea_guid = "<Search Term>"))
AND Object_Type = "Actor" Order By Name
The only thing I have to add is the search name and search value to be set in the model document tagged values
I hope this helps someone having similar problems.
Jonathan
-
If all your actors are in one packge and you are getting duplicates it sounds lie your are using the Template sections:
Package | Diagram | Elements - to report the elements
Try using just the section:
Package | Elements
-
If all your actors are in one packge and you are getting duplicates it sounds lie your are using the Template sections:
Package | Diagram | Elements - to report the elements
Try using just the section:
Package | Elements
Thanks for the answer.
I have a top level package where all my actors are located centrally.
Our model is splitted into several top level packages representing the functional structure of our model. In these functional structure packages I have one or more use case diagrams each.
For each top level package we are generating an RTF report where only these actors shall appear which are used in the use case diagram(s) of this single package. By this I have to use the section "package - diagram - elements".
I don't want to print all actors in all top level package RTF reports.
So I think your suggest wouldn't work.
Thanks!
Jonathan