Book a Demo

Author Topic: Document template: displaying composite diagram  (Read 4826 times)

Xabatcha

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Document template: displaying composite diagram
« on: June 04, 2014, 12:21:10 am »
Any idea how to add composite diagram connected to the use case at the at the Document Template?

Thanks for any help. Regards, X.

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Document template: displaying composite diagra
« Reply #1 on: June 04, 2014, 03:19:26 pm »
Hi X,

in the *.rtf template in section element click on Diagram + Child Elements. In the diagram section insert:
Code: [Select]
{Diagram.Type} diagram: {Diagram.Name}
{Diagram.DiagramImg}


EA delivers an example template "Use Case Details". It's always a good idea to take such a template as a starting point. Often you just have to delete not needed information.

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Xabatcha

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Document template: displaying composite diagra
« Reply #2 on: June 04, 2014, 05:23:10 pm »
Hi Helmut,
thanks for tip, however it does not work for me. I have tried to use and modified the template in many ways, but not really success.
I will try to describe more the case:

I have UC. with doubleclick on UC at diagram it goes to activity diagram, which is stored in different section at the project tree. I had connected the activity diagram by selecting the New Diagram > Select Composite Diagram at context menu of the UC.

I tried to follow your advice and use this:
Code: [Select]
package >
{Pkg.Name}
element >
{Element.Name}
diagram >
{Diagram.DiagramImg}
< diagram
child elements >
< child elements
< element
child packages >
< child packages
< package

Cheers for help. X.

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Document template: displaying composite diagra
« Reply #3 on: June 04, 2014, 06:49:58 pm »
Hi X,

make sure that in:
File, Document Options, Exclude filters nothing is selected (at least no Activity).

I just tried the following template with EA11:

Code: [Select]
package >
[right-click-to-insert-Package-field(s)]
diagram >
{Diagram.DiagramImg}
< diagram
element >{Element.Name}
Element:
diagram >
{Diagram.DiagramImg}
< diagram
child elements >
< child elements
< element
child packages >
< child packages
< package
ErrorCode);

UC Diagram
  UC1
   UC1 Diagram Composite
      UC11
        Activity
           Activity Diagram
      UC12
         Activity Diagram

Documentation as expected.

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: Document template: displaying composite diagra
« Reply #4 on: June 05, 2014, 02:13:07 am »
Hi,

I think the issue here may be somehting that i spotted a while ago - Sparx report engine only recognises child diagrams - ie diagrams that sit under the object as the 'composite diagram'...if this is the case there are two ways around the problem - Diagram Fragments or Script your report generation....


Regards,


Jon.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Document template: displaying composite diagra
« Reply #5 on: June 05, 2014, 10:04:02 am »
The element->Diagram section is only intended to document owned diagrams. If you want to document other diagrams you'll have to use scripting as suggested.

Xabatcha

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Document template: displaying composite diagra
« Reply #6 on: June 05, 2014, 05:19:48 pm »
Quote
...if this is the case there are two ways around the problem - Diagram Fragments or Script your report generation....

Thx Jon. I will take a look. Hopefully I can find some info and eventually post some hints for others later.