Book a Demo

Author Topic: How to specify a NULL value in RTF element filter  (Read 5553 times)

Larseb66

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
How to specify a NULL value in RTF element filter
« on: April 29, 2014, 11:36:01 pm »
Using the RTF Generator I'm iterating over connectors of type Dependency.
I've created an element filter in order to only get Dependency connectors of a specific Stereotype.
That gives me a set of connectors with the correct Stereotype, but in addition I also get all connectors with no Stereotype specified.
How do I specify an element filter stating that the Stereotype cannot be empty/blank/null.
« Last Edit: April 29, 2014, 11:36:46 pm by larseb »

Nizam Mohamed

  • EA User
  • **
  • Posts: 193
  • Karma: +1/-0
    • View Profile
Re: How to specify a NULL value in RTF element fil
« Reply #1 on: April 30, 2014, 02:10:45 pm »
Have you selected all, but 'dependency' in the 'Exclude Filters' tab, under 'Exclude Connector Type'?

PS - EA 11 allows filtering by extended connectors (ones from mdg technologies, e.g. Archimate usedby etc)

Larseb66

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: How to specify a NULL value in RTF element fil
« Reply #2 on: April 30, 2014, 06:11:37 pm »
Yes, but both connectors are of type Dependency.
I've added  required element filter to filter out only those with a specific stereotype.
This has effect, but I also get all Dependencies with no stereotype, which might be a bug?.
I've tried to add and additional filter stating that I will not have those with empty stereotype, but without effect.
« Last Edit: May 01, 2014, 04:04:21 pm by larseb »

Larseb66

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: How to specify a NULL value in RTF element fil
« Reply #3 on: May 01, 2014, 04:21:13 pm »
I've created a small test model which highlight the problem.
When I did that I didn't even manage to get the element filter to work at all :(.
Is there anywhere this model can be uploaded?

Nizam Mohamed

  • EA User
  • **
  • Posts: 193
  • Karma: +1/-0
    • View Profile
Re: How to specify a NULL value in RTF element fil
« Reply #4 on: May 01, 2014, 06:18:51 pm »
Not sure if you can use Element Filters to filter connectors,
Can just think of a few ideas to accomplish your results
1. You can define a custom query to fetch the elements for your report. This query can be used in a Model Document to report based on your custom template.
2. You can have your stereotyped connectors defined in a profile and then use the connector filters ( in EA 11) to exclude others from the generated report.

Files are generally shared by uploading to a file share server (or even dropbox)

Larseb66

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: How to specify a NULL value in RTF element fil
« Reply #5 on: May 02, 2014, 06:24:01 pm »
Well, now I've testet version 11 on my test model.
I agree that it most likely isn't possible to filter on connectors, but in version 10 I got results that indicated so.
The problem in version 10 is that I can't get the element filters to work on the source/target elements for a connector.
I version 11 that seems to work, and I the get around the problem I intial raised (I have no use of filtering null values).
But I get totally different results, but probaly correct with version 11 compared to 10. My conclusion is therefore that there must be one or more bugs in version 10.
« Last Edit: May 09, 2014, 06:43:36 pm by larseb »

Larseb66

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: How to specify a NULL value in RTF element fil
« Reply #6 on: May 09, 2014, 06:53:38 pm »
It still not work as expected.
I've created a report where I've checked for the following sections:

Package
  Diagram
    Element
  Element
    Connector
      Source
        Element
      Target
        Element
      Tagged Value

I've allowed only "Action" as element in the exlude filter, and only "Dependency" in the Exlude connector type filter.

I've also added an element filter where I've restricted the stereotypes to be one of 'Function' and "OperationalActivity'

The report output is a table with three columns: Source, Target and some tagged values in the third.

The report is runned on a package with one diagram. The elements in the diagram are located in other packages. The package itself contains no elements.

I expected the report to only output the elements in the diagram, but no.
It includes elements other than the ones in the diagram and even elements of type class, not action (element filter is only action) and with stereotypes other than the two mentioned above.

« Last Edit: May 09, 2014, 07:13:29 pm by larseb »