Hello,
The operation which a CallOperation action calls is stored as the action's classifier, enabling you to locate the operation from the action (in a diagram) by hitting Ctrl-Alt-G.
What complicates matters is that EA actually stores an element's classifier in two ways in the database -- t_object.Classifier holds the classifier's element ID, which is an integer, and t_object.Classifier_guid holds its GUID, which is a string.
Only t_object.Classifier is reflected in the API (Element.ClassifierID), and it's only valid for elements whose classifier is another element (eg Objects). t_object.Classifier_guid, which is used for CallOperation actions, cannot be retrieved through the API.
Instead, you have to go to the database. To retrieve the operation, do something like
queryResult = Repository.SQLQuery("select Classifier_guid from t_object where Object_ID=" & element.ElementID)
' You'll need to parse the returned XML text here. A quick and dirty way in this case, since you know
' there should be exactly one result and the tags are always the same, is a hard-coded Mid() call.
methodGuid = Mid(queryResult, 120, 38)
method = Repository.GetMethodByGuid(methodGuid)
HTH,
/Uffe