Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Extending CompleteOCL(Extending the Complete OCL for other UML artifacts)
Extending CompleteOCL [message #1551922] Wed, 07 January 2015 22:45 Go to next message
Shubhanan Bakre is currently offline Shubhanan BakreFriend
Messages: 1
Registered: January 2015
Junior Member
MDT-OCL project rocks! Kudos to the teams who have worked on Pivot and other projects. Also, the documentation is very extensive and informative.

I have a requirement to specify OCL constraints for UML Sequence Diagrams and Statecharts.
I have extensively studied the legacy and Pivot OCL projects and came to the conclusion that the xtext-based Pivot OCL is my best bet.
Has anyone of you done something similar?
Would extending Complete OCL be the right way to approach this? How should I go about it - what are the components that need to be extended/implemented?
Are there any references available for comparison/guidance?
Re: Extending CompleteOCL [message #1553354 is a reply to message #1551922] Thu, 08 January 2015 16:59 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Thank you for the nice comments, even if I find "very extensive" a bit
hard to reconcile.

(We've been changing the public-facing name to Eclipse OCL since "MDT"
only make as sense to Eclipse nerds and it is arguably obsolete.)

The Pivot code is being promoted to non-examples for Mars, so Classic
Eclipse OCL is heading for a very slow deprecation.

If you use Papyrus you should find that the Pivot Essential OCL Xtext
editor is integrated. Certainly for Class/Profile diagrams and probably
Statecharts. The OCL support is largely independent of Papyrus so
Sequence Diagrams might just work.

Of course Papyrus supports what I call pigeon-hole programming which is
useful for elaborating a model but pretty miserable for a major overlay.

Complete OCL is exactly what you want for an overlay.

/org.eclipse.ocl.examples.uml25/model/UML.ocl

contains all the constraints extracted from UML 2.5 and so should
demonstrate many forms of addition. The extraction contributed to
removing almost all syntactic and semantic errors from UML 2.5. About
four escaped. I'm not sure whether the fixes are in UML.ocl. They are in
the Eclipse (MDT) UML2 project.

Opening UML.ocl in my workspace is a bit depressing, it is not part of
the released code, so some bit rot has set in...

No extensions should be needed. (Just bug fixes.)

Regards

Ed Willink



On 08/01/2015 13:05, Shubhanan Bakre wrote:
> MDT-OCL project rocks! Kudos to the teams who have worked on Pivot and
> other projects. Also, the documentation is very extensive and informative.
>
> I have a requirement to specify OCL constraints for UML Sequence
> Diagrams and Statecharts.
> I have extensively studied the legacy and Pivot OCL projects and came to
> the conclusion that the xtext-based Pivot OCL is my best bet.
> Has anyone of you done something similar?
> Would extending Complete OCL be the right way to approach this? How
> should I go about it - what are the components that need to be
> extended/implemented?
> Are there any references available for comparison/guidance?
Previous Topic:issue with OCLInEcore Editor - NPE on gendoc documentation with null value
Next Topic:New in OCL
Goto Forum:
  


Current Time: Tue Mar 19 08:55:24 GMT 2024

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

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

Back to the top