Book a Demo

Author Topic: RTF Report: Elements of multiple diagrams doubled  (Read 4275 times)

Jonathan Lubach

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
RTF Report: Elements of multiple diagrams doubled
« 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.
Enterprise Architect Corporate Edition v12.1
Windows 7 64bit

HGrün

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: RTF Report: Elements of multiple diagrams doub
« Reply #1 on: August 23, 2012, 09:15:47 pm »
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?

Jonathan Lubach

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: RTF Report: Elements of multiple diagrams doub
« Reply #2 on: August 23, 2012, 09:52:55 pm »
Hi,

Quote
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
Enterprise Architect Corporate Edition v12.1
Windows 7 64bit

Jonathan Lubach

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: RTF Report: Elements of multiple diagrams doub
« Reply #3 on: August 27, 2012, 07:55:39 pm »
Hi folks,

I solved this issue using a user defined search via SQL:

Code: [Select]
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
Enterprise Architect Corporate Edition v12.1
Windows 7 64bit

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: RTF Report: Elements of multiple diagrams doub
« Reply #4 on: August 30, 2012, 04:11:34 pm »
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

Jonathan Lubach

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: RTF Report: Elements of multiple diagrams doub
« Reply #5 on: August 30, 2012, 04:35:48 pm »
Quote
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
Enterprise Architect Corporate Edition v12.1
Windows 7 64bit