Author Topic: Traverse from Operation to Activity/Action  (Read 1113 times)


  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Traverse from Operation to Activity/Action
« on: September 30, 2010, 05:11:19 am »
Activities and Actions can list an operation in their "behavior" field. Does anyone know how to traverse from the operation to the Activities/Actions that refer to that operation?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 11229
  • Karma: +413/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Traverse from Operation to Activity/Action
« Reply #1 on: September 30, 2010, 03:08:31 pm »
I don't think there is any kind of built-in functionality in EA that does so.
I've included a rather similar functionality in the EA navigator addin I developed for my client. It returns all operations (on states) that have defined the selected operation in the behavior part.

I've recreated and published a part of that navigator addin on the community site, but the navigate to Activities/Actions was not included. I've also uploaded the code, so you should be able to add that functionality yourself.

The part that does the work on my clients addins looks as follows:

Code: [Select]
       /// <summary>
        /// returns the operations that use this operation as behavior
        /// </summary>
        /// <returns>the operations that use this operation as their behavior</returns>
        public List<UMLOperation> getUsingEffects()
            string sqlQuery = "select o.OperationID from t_operation o where o.Behaviour like '" +this.wrappedOperation.MethodGUID + "'";
            return this.model.getOperationsFromQuery(sqlQuery);

I guess EA uses the same principle for Elements behavior.
You could also create an SQL search in EA (which might be quicker).