Book a Demo

Author Topic: Find actions that call a particular operation  (Read 4691 times)

Rick Sjogren

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
  • Sing Ho! For the life of a Bear!.
    • View Profile
Find actions that call a particular operation
« on: May 17, 2011, 03:36:26 pm »
Hi all,

I'm creating a series of models that describe a set of model transformations. Essentially, I use Activity Models to sequence the transformations where each transformation is described as an operation.

These operations (copy, copywithDefault, etc) are collected under a single class (AttributeTransform). They are called through a Call Operation Action element.

What I want to know is how I can find out which Call Operation Action elements call a particular operation. Any help would be appreciated.

Regards,
Rick
Quidquid latine dictum sit, altum sonatur.
'Whatever is said in Latin sounds profound.'

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Find actions that call a particular operation
« Reply #1 on: May 17, 2011, 03:51:51 pm »
My first (and only) suggestion would be to try EA 9.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Find actions that call a particular operation
« Reply #2 on: May 17, 2011, 05:05:17 pm »
Rick, Simon,

EA 9 allows you to find the diagrams that use an operation.
So if the callOperation action is used on a diagram you can find it.
Other options are:
- Write an add-in (see EA Navigator as an example, should be quite easy to include an option to find the Actions using the operation)
- Create an SQL search to return the actions.

Geert
Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Find actions that call a particular operation
« Reply #3 on: May 18, 2011, 08:36:27 am »
Well, yes. I know that it's available in EA 9. That's why I suggested that.

I don't recommend anyone go through the effort of of developing a feature that already exists in EA. But then I'm biased to wanting people to keep their maintenance going.

Rick Sjogren

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
  • Sing Ho! For the life of a Bear!.
    • View Profile
Re: Find actions that call a particular operation
« Reply #4 on: May 18, 2011, 10:35:28 am »
Hi Simon,

In our case, the organisation I'm currently working for tends to be a technology laggard. Accordingly, I need a solution right now for EA 8.

Note that the organisation (and I) have existing maintenance agreements so I expect that they will upgrade in "the fullness of time". :)

Geert, thanks for your response. I'll check out both EA Navigator and the SQL search option. I'll post my solution when I come up with it (assuming someone doesn't come up with an explicit solution in the meantime).

Regards,
Rick
Quidquid latine dictum sit, altum sonatur.
'Whatever is said in Latin sounds profound.'

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Find actions that call a particular operation
« Reply #5 on: May 18, 2011, 04:05:57 pm »
Simon,

There's a difference between being able to navigate to the diagrams that show an action calling the operation, and being able to navigate to the actions directly.
If an action isn't used on a diagram you won't be able to find it using the cltr-u in EA. (and on the other hand if an action is used on several diagrams it will show all of them)
So yes, the new feature in EA v9 is great, but it might not fulfill Ricks requirement entirely.

Geert

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Find actions that call a particular operation
« Reply #6 on: May 18, 2011, 04:11:05 pm »
Rick,

Give me a week. I'll try to put this feature in the EA Navigator. It kinda depends on how much time I'm allowed by our youngest family member (2 months old) as the Navigator is my spare-time hobby project, and babies tend to have a severe impact on my spare time :D

Geert

Rick Sjogren

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
  • Sing Ho! For the life of a Bear!.
    • View Profile
Re: Find actions that call a particular operation
« Reply #7 on: May 18, 2011, 05:03:50 pm »
Hi Geert,

If you do get time, can you ensure that the solution works with a non-Jet repository? In our case, we use MySQL.

Regards,
Rick
Quidquid latine dictum sit, altum sonatur.
'Whatever is said in Latin sounds profound.'

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Find actions that call a particular operation
« Reply #8 on: May 18, 2011, 05:25:33 pm »
Rick,

If I use sql in my addins (sometimes you have no choice) I always try follow the ansi standards as much as possible (damn you MS Access >:() so it should also work on MySQL.
If you find an issue with that please report it to me so I can fix it.

Geert

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Find actions that call a particular operation
« Reply #9 on: May 23, 2011, 05:43:30 pm »
Rick,

I added the "navigate to calling actions" feature to the code repository this morning, so if you download the whole lot from github you can build and test it yourself.
In the next few days I'll try to update the msi installer and documentation.

Geert

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Find actions that call a particular operation
« Reply #10 on: May 25, 2011, 01:23:08 pm »
Installer for EA Navigator 1.2 (including the new feature to navigate to calling actions) has been uploaded to github
More info on my blog New: Navigate to calling actions with EA Navigator 1.2

Geert
« Last Edit: May 25, 2011, 02:02:24 pm by Geert.Bellekens »