|Re: How to use OCL Specification with Papyrus [message #630351 is a reply to message #630343]
||Fri, 01 October 2010 17:14
| Ed Willink
Registered: July 2009
Yes, I'm afraid it's confusing, because there have multiple attempts at
integrating OCL validation. The early ones didn't work well. The new
approach useing validation/setting/invocation delegates is much better
and simpler. See http://wiki.eclipse.org/MDT/OCLinEcore for an editor
and the underlying representation.
There are discussions on mdt-papyrus.dev and
https://bugs.eclipse.org/bugs/show_bug.cgi?id=322933 about integrating
the OCL editing into Papyrus so that constraints are sensibly editable,
but that probably needs you to wait for Indigo.
MDT/OCL doesn't inherently support profiles, since I think UML2 does it
automatically. However the support for execution of OCL embedded in UML
is missing and the IUML to ECore conversion of OCL embedded in UML
doesn't provide OCL embedded in Ecore as required by validation delegates.
Sorry, this will be very difficult till the pieces are pulled together
On 01/10/2010 17:27, Antonio wrote:
> Hi all,
> I'm an engineer student and I'm using this tool to create some Profiles
> along with its constraints. I was using the former Papyrus 1.12 tool
> until I realised this new one was coming out, and the OCL features didnt
> work in the previous version.
> Im back again with this work but I found myself really lost. In the
> first place I actually dont know if the OCL validation features for
> profiles has been implemented. Ive also read some threads about
> constraints but dont get anything really clear. On the other hand theres
> so much info about OCL in eclipse, that I dont even know where to head
> in the first place.
> What I want to do is just a profile with constraints, so I can check
> them, when I apply this profile to a new model. Where can I gen some
> info about?? What can I start with?? Is it possible to do this with
> Papyrus only or do I need another eclipse OCL tool? In this last case,
> how could I merge it into a single plugin (the profile and the
> Thank you all in advance!!!
Powered by FUDForum
. Page generated in 0.01967 seconds