Book a Demo

Author Topic: Using Stereotype Filter on package with linked doc  (Read 4733 times)

Prab

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Using Stereotype Filter on package with linked doc
« on: September 06, 2013, 12:54:17 am »
Scenario: I have a package with linked document. In this package I have a diagram with 20 elements. 10 elements have stereotype A and 10 elements have stereotype B. I want my report to show the linked document followed by a table of elements of stereotype B.

Problem: When I generate a normal report, I see the linked document and all elements are picked up.
Now, if I use a stereotype filter (using document options>Element Filter) for stereotype B, only elements with stereotype B are displayed in the report. (Happy Part), --- BUT --- the linked document is NOT displayed.

Please can anyone help me with this issue.

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Using Stereotype Filter on package with linked
« Reply #1 on: September 06, 2013, 09:29:29 am »
What have you attached the linked document to? A Document Artifact element or a Package element? In either case, that element is unlikely to be one of your stereotype B elements, so it won't be included in the report. (A linked document is bound to an element.)
Best Regards, Roy

Prab

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Using Stereotype Filter on package with linked
« Reply #2 on: September 06, 2013, 04:32:05 pm »
I have attached the linked document to the package which holds the diagram.

From what you have said, I understand that I will have to create another filter to include this linked document, correct? If yes, how do I do it?

If not, what is the alternative to use a stereotype filter so that I can filter for a particular stereotype AND still be able a linked document.

Your help is appreciated.

Jonathan Lubach

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Using Stereotype Filter on package with linked
« Reply #3 on: September 10, 2013, 01:11:01 am »
Hi!

This is the reason why your linked document is filtered out:
In the EA database, some data of packages are stored as "package element". The linked document is one of these information data. These data are then evaluated as "Element"-data furthermore.

You can see this in the document template editor, as you can select some sections from the tree item "Package" and some other sections from the tree item "Package Element". The linked document you can find under "Package Element" so it is evaluated as "Elemen"-relevant data.

I have a work-around for this, as long as you don't want to filter out packages with specific stereotypes.

Add an additional filter:
Search In: "Element"."ObjectType"
Condition: "Contains"
Look For: "Package"
Required: False

Don't forget to untick the box "Required" in both filter conditions, so the two conditions will evaluated with an "OR"-logic.

I hope this helps.  :)

If you need further help, just ask!

Jonathan

Enterprise Architect Corporate Edition v12.1
Windows 7 64bit

Prab

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Using Stereotype Filter on package with linked
« Reply #4 on: September 10, 2013, 01:45:35 pm »
This helped. Many thanks Jonathan.