Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [] extract information from an activity diagram

Hello Alexandre,


Ø  I can get the NamedElement


The « NamedElement » is your CallBehaviorAction, right ? If so, you can call:


NamedElement selectedNamedElement = …;

if (selectedNamedElement instanceof CallBehaviorAction){

       Behavior calledBehavior = ((CallBehaviorAction)selectedNamedElement).getBehavior();

       if (calledBehavior instanceof Activity){

             Activity calledActivity = (Activity)calledBehavior;





If you also need to manipulate SysML stereotypes, have a look at Element#getAppliedStereotype() and Element#getStereotypeApplication(Stereotype)



Camille Letavernier

+33 (0)1 69 08 00 59 - camille.letavernier@xxxxxx

CEA LIST - Laboratoire d'Ingénierie dirigée par les modèles pour les Systèmes Embarqués (LISE)

Papyrus :


De : [] De la part de Alexandre HERISSE
Envoyé : jeudi 21 février 2013 11:01
À :
Objet : [] extract information from an activity diagram



I need to extract information from an activity diagram with the help of an eclipse plugin.
This activity diagram is mainly composed of call-behaviour actions. Each call-behaviour action points to an activity which have some inputs and some outputs.
By clicking on that item, I can get the NamedElement under the eclipse plugin. What I need is to get the activity which is pointed by the call behaviour action and on that activity, get the arguments name and the result name to process something.

I can see them under debug (in "behaviour" attribute) but I do not know how to get them by calling public functions. Is it related to EMF? If yes, how can we question the emf to get the sysml model of the selected element ?

Thanks for your help.

Alexandre HERISSE
Xcos developer
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: + 

Back to the top