Book a Demo

Author Topic: Get what element is classifier of?  (Read 4068 times)

Hurra

  • EA User
  • **
  • Posts: 184
  • Karma: +0/-0
    • View Profile
    • Find me at LinkedIn!
Get what element is classifier of?
« on: September 28, 2018, 12:14:03 am »
Hi!

When handling an element there are a lot of attributes (?) to use in order to get classifier information, e.g. ClassifierID, ClassifierName, ClassifierType.

How do I go the other way?

Element A is a classifier for a, aa and aaa. I don't see any link/relation to the instances.

The reason I want this is because I have used Post elements as classifier of ActivityPartitions. I have all my Posts accesible in my script, all I want to do is collect all the ActivityPartitions and list all owned actions.

Can I do this an easy way?  8)

always learning!

Hurra

  • EA User
  • **
  • Posts: 184
  • Karma: +0/-0
    • View Profile
    • Find me at LinkedIn!
Re: Get what element is classifier of?
« Reply #1 on: September 28, 2018, 12:31:21 am »
Hello  ;D

I'm going to try a SQL query, seems easiest.
always learning!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Get what element is classifier of?
« Reply #2 on: September 28, 2018, 02:43:01 am »
Hello  ;D

I'm going to try a SQL query, seems easiest.
That is the only feasible way.

Geert

Hurra

  • EA User
  • **
  • Posts: 184
  • Karma: +0/-0
    • View Profile
    • Find me at LinkedIn!
Re: Get what element is classifier of?
« Reply #3 on: September 28, 2018, 06:47:08 pm »
That is the only feasible way.

Geert

Hey Geert!

I think we discussed my new problem before;

I send an element for documentation with a document script with assigned template. I want to show the following:

sent to documentation:
<<ActivityPartition>>
(element) Element.name (Element.Classifier) performs (child element) Element.Name (Element.Classifier) (/child element) (/element)

No child elements in documentation. I think you told me this was a bug before.

Using v14.1
always learning!

Hurra

  • EA User
  • **
  • Posts: 184
  • Karma: +0/-0
    • View Profile
    • Find me at LinkedIn!
Re: Get what element is classifier of?
« Reply #4 on: September 28, 2018, 09:09:47 pm »
Solved it by showing the children through SQL-fragment.
always learning!