Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » beginner questions: what is best practice to implement EMF derived methods with OCL
beginner questions: what is best practice to implement EMF derived methods with OCL [message #37651] Mon, 24 September 2007 05:47 Go to next message
Philipp Kutter is currently offline Philipp KutterFriend
Messages: 306
Registered: July 2009
Senior Member
Hi, Everybody.
I selected available tutorials on OCL and the EMF validation framework,
and I plan to go through the material to learn how to use OCL
to implement EMF derived methods.

Has someone a specific hint to best practice how to implement EMF
derived methods with OCL?

Or has someone a hint in which order I shall do things?

Or a hint, which versions to use? I installed the latest maintenance
builds of everything, but are there reasons to go for the latest
milestones and integrations?

All I am looking for now is an easy start. We wont go live for months.

Best Regards, Philipp Kutter
Re: beginner questions: what is best practice to implement EMF derived methods with OCL [message #37973 is a reply to message #37651] Mon, 24 September 2007 14:10 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Philipp,

Using OCL to specify the bodies of EOperations isn't really in the scope of
either of EMF's validation frameworks (Diagnostician/EValidator or
ModelValidationService).

We always recommend the latest available stable builds (be they
maintenance-branch builds or stable HEAD-branch builds), of course, because
we created them just for you! ;-) I guess the most important factor is
whether you can live with updating dependencies in so many components: EMF
Core, EMF Query/Validation, OCL, even UML. Practically speaking, though,
there are no significant plans for the next OCL release (1.2) that will
improve the implementation of EOperations using OCL, so the 1.1.1 release
is a good place to start when it comes this week.

The article I linked to in my reply to your other post shows how you can
integrate OCL into your EMF code generation to provide EOperation bodies.
I can't really say, though, that it is a "best practice." It is just the
only practice that I know of so far, until the OCL Tools OCL-to-Java
transformation becomes available (sounds like it will in the time frame
that you're looking at).

The article is a working example, so hopefully it constitutes an easy start.
I think it's the easiest that I can offer ... perhaps others in the
newsgroup can share their materials, too.

HTH,

Christian

Philipp W. Kutter wrote:

> Hi, Everybody.
> I selected available tutorials on OCL and the EMF validation framework,
> and I plan to go through the material to learn how to use OCL
> to implement EMF derived methods.
>
> Has someone a specific hint to best practice how to implement EMF
> derived methods with OCL?
>
> Or has someone a hint in which order I shall do things?
>
> Or a hint, which versions to use? I installed the latest maintenance
> builds of everything, but are there reasons to go for the latest
> milestones and integrations?
>
> All I am looking for now is an easy start. We wont go live for months.
>
> Best Regards, Philipp Kutter
Previous Topic:check an attribute
Next Topic:org.eclipse.ocl.uml.impl.BagTypeImpl not contained in the resource
Goto Forum:
  


Current Time: Thu Apr 25 22:07:36 GMT 2024

Powered by FUDForum. Page generated in 0.03241 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top