Book a Demo

Author Topic: Is Action Node on diagram?  (Read 3399 times)

Pace17881

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Is Action Node on diagram?
« on: October 15, 2018, 09:18:50 pm »
Hi,

is use the automation framework. I have deleted an action from my diagram but not from the model. Is it possible to find out if an element is located on the diagram or not?

Thanks in advance

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Is Action Node on diagram?
« Reply #1 on: October 15, 2018, 09:23:03 pm »
Yes, t_diagramObjects contains the diagram representations of objects.
If there is no record on t_diagramObject, for a certain Object_ID that means that object is not used on a diagram.

Use Repository.SQLQuery() to execute the appropriate query.

Geert

Pace17881

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Is Action Node on diagram?
« Reply #2 on: October 15, 2018, 09:58:22 pm »
Hi,

thanks for your answer. Currently I use the com interface to ea and use it via com4j in my java application. Currently I have no idea how to create a suitable sql query to the repository. Is there any class/method to achieve the same result?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Is Action Node on diagram?
« Reply #3 on: October 15, 2018, 10:03:41 pm »
Not really, you would need to traverse the whole model and inspect each and every diagram.
That would take hours in even a modest sized model.

The only feasible way is to use an SQL query.

Geert