Book a Demo

Author Topic: Documentation (template) - Action call operation  (Read 4791 times)

slurpie

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Documentation (template) - Action call operation
« on: March 22, 2016, 06:22:50 pm »
Hi all,

I have modeled an Action element on a diagram, and this Action element references to an operation defined on an interface. (by filling in the Call menu item in the properties dialog)

I tried to capture this information in a generated document, but I do not know how. I cannot find the link between the Action element and the operation in the model.

Does anyone know where I can find the relation between the Action and the operation?

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: Documentation (template) - Action call operation
« Reply #1 on: March 22, 2016, 07:15:58 pm »
I don't think it's available in the template selector.

In that case you'll have to use either an SQL Fragment or Script Fragment to get that info.

The link is stored in the Classifier_guid field in t_object.
See https://github.com/GeertBellekens/Enterprise-Architect-Add-in-Framework/blob/master/EAAddinFramework/EAWrappers/CallOperationAction.cs
Where I use this operation to get to the Operation of a CallOperationAction

Code: [Select]
/// <summary>
/// The operation to be invoked by the action execution.
/// </summary>
public UML.Classes.Kernel.Operation operation {
get{
// first get the operations guid which is stored in the Classifier_guid column
XmlDocument operationGUIDxml = this.model.SQLQuery(@"select o.Classifier_guid from t_object o
where o.Object_ID = " + this.id.ToString());
XmlNode operationGUIDNode = operationGUIDxml.SelectSingleNode(this.model.formatXPath("//Classifier_guid"));
return this.model.getOperationByGUID(operationGUIDNode.InnerText);
}
}

Geert

slurpie

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Documentation (template) - Action call operation
« Reply #2 on: March 23, 2016, 12:38:54 am »
Geert,

Thanks for your valuable input!