[ATL]UML Transformation [message #70369] |
Fri, 04 January 2008 01:59 |
Eclipse User |
|
|
|
Originally posted by: heiyuchuanxia.163.com
Hi, I'm confused with a question of using ATL transforming UML to some
PSM model. I want to development a MDA software for business process,
and want to realize this using model transformation.
My problem is: now I define some uml profiles to add platform specific
information to uml diagrams, and since ATL transformation rule is
defined using metamodel (or at the metamodel level, I use eclipse UML2
as the uml metamodel ), how can i confirm those stereotype (defined in
the profile) is applied to some of the model, and how can I get the
values of those properties defined in the stereotype.
More a example to explain my question: I plan to mapp a
CallOperationAction applied a stereotype <<Invoke>> to a invoke element
in the process, and the stereotype <<Invoke>> defines several
properties to add more platform specific information to the
CallOperationAction. Now, can I determine a CallOperationAction applied
<<Invoke>> or not? When it applied, can I tranform the properties
defined in the stereotype to my invoke element with the properties of
CallOperationAction?
Should I using two metamodel input in this transformation, one is the
uml metamodel, the other is the profile?
Thank you very much for caring about my question, I'm appreciated if you
reply me some way to solve this question.
Stefanie
|
|
|
Re: [ATL]UML Transformation [message #70388 is a reply to message #70369] |
Fri, 04 January 2008 09:52 |
Eclipse User |
|
|
|
Originally posted by: tristan.faure.c-s.fr
Hi !
when you match you match your element in an ATL rule you can add some
condition example
from o : UML!Operation(myCondition)
and it exists the function getAppliedStereotypes()
you can do getAppliedStereotypes()->select(s | s.name = "Invoke")
|
|
|
Re: [ATL]UML Transformation [message #70603 is a reply to message #70388] |
Mon, 07 January 2008 02:45 |
Eclipse User |
|
|
|
Originally posted by: heiyuchuanxia.163.com
Hi, Thanks very much, it's really helpful.
But I have another question, can I set the stereotype properties, just
in the same procedure as i set the basic properties of this element. I
need to set some properties defined in the stereotype to refine my PIM
to get a PSM.
Should I import the profile as a metamodel?
Thanks again.
Tristan FAURE 写道:
> Hi !
> when you match you match your element in an ATL rule you can add some
> condition example
> from o : UML!Operation(myCondition)
> and it exists the function getAppliedStereotypes()
> you can do getAppliedStereotypes()->select(s | s.name = "Invoke")
>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.05349 seconds