Book a Demo

Author Topic: Report Generation, exclude empty packages  (Read 5870 times)

Martynf

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Report Generation, exclude empty packages
« on: April 23, 2015, 11:26:17 pm »
Hello,

I am generating a Word document report of my EA model to form part of our detailed design documentation, generating from the part of the model containing my packages, classes, class diagrams and sequences.

When I generate my report, each package in the hierarchy generates a package element in the report.  This includes packages that do not include any classes.  E.g If the classes are in uk.co.mycompany.myproject, I will get elements in the report for uk, co and mycompany which are basically just headings.  

Is there any way to exclude the ‘empty’ packages from the report?

Thanks,

Martyn

jfzouain

  • EA User
  • **
  • Posts: 152
  • Karma: +6/-1
    • View Profile
Re: Report Generation, exclude empty packages
« Reply #1 on: April 24, 2015, 01:23:21 am »
Yes.
Right Click on the Package -> Documentation->Generated Report Options-> Exclude Package ...
Best regards

Jose Zouain

Martynf

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Report Generation, exclude empty packages
« Reply #2 on: April 24, 2015, 02:45:36 am »
Thanks for the response.  Unfortunately, that will also exclude any child packages too.  E.g. If I do that on uk, then co and anything below will not be generated.

In the example above, uk.co.mycompany.myproject, I want to generate output for myproject (because it contains classes) and not for uk, co or mycompany (because they only contain other packages).

Monsieur

  • EA User
  • **
  • Posts: 142
  • Karma: +0/-0
    • View Profile
Re: Report Generation, exclude empty packages
« Reply #3 on: May 05, 2015, 12:30:34 am »
Quote
Thanks for the response.  Unfortunately, that will also exclude any child packages too.  E.g. If I do that on uk, then co and anything below will not be generated.

In the example above, uk.co.mycompany.myproject, I want to generate output for myproject (because it contains classes) and not for uk, co or mycompany (because they only contain other packages).
So... you want to generate only package that contain leaves? Or that contain any element other than a package (at every level?)

Martynf

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Report Generation, exclude empty packages
« Reply #4 on: May 05, 2015, 07:12:10 pm »
Quote
So... you want to generate only package that contain leaves? Or that contain any element other than a package (at every level?)

I want to include packages if they contain any element other than a package.  And if a package is not included, I still want it's children to be reported on.

Monsieur

  • EA User
  • **
  • Posts: 142
  • Karma: +0/-0
    • View Profile
Re: Report Generation, exclude empty packages
« Reply #5 on: May 11, 2015, 05:51:38 pm »
Quote
Quote
So... you want to generate only package that contain leaves? Or that contain any element other than a package (at every level?)

I want to include packages if they contain any element other than a package.  And if a package is not included, I still want it's children to be reported on.

Manually
-->
Quote
Yes.
Right Click on the Package -> Documentation->Generated Report Options-> Exclude Package ...

Scripting?
-->
Same way but you have to dump your model and use the command to turn that option by script.
Does someone remember the JS/VB line to this by scripting? i didn't found it.