Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » QVT-Relations » OCL-Constraints(a problem with OCL-Constraints in QVTr)
OCL-Constraints [message #1798191] Wed, 14 November 2018 00:33 Go to next message
Lukas Schwarz is currently offline Lukas SchwarzFriend
Messages: 5
Registered: November 2018
Junior Member
Hi,

is there any way to use OCL-constraints in the newest QVTr-implementation in eclipse (version 2018-09), or did i just miss sth? I'm using similar aproaches to:

when {
eOpposite->oclIsUndefined() or eOpposite = null;
}

The thing is: i don't get any errors (but nor would i get any when actually having errors in my code. i guess that's an other topic for that matter ...), and everything runs through. but it still doesn't seem to work and the rule is never getting used. Is that a problem on my side?
If i didn't miss something and it isn't implemented yet, then around when is it going to be released?

thx for the help!
Re: OCL-Constraints [message #1798248 is a reply to message #1798191] Wed, 14 November 2018 16:24 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6774
Registered: July 2009
Senior Member
Hi

You should be able to just import a Complete OCL file. The built-in constraints are autogenerated from Complete OCL files such as

http://git.eclipse.org/c/mmt/org.eclipse.qvtd.git/tree/plugins/org.eclipse.qvtd.pivot.qvtrelation/model/QVTrelation.ocl

You might need to invoke OCL->Validate from the context menu. Before if you have WST installed since it provides another validate that does nothing.

If you provide an example of what you think should work, I can maybe understand what's wrong.

(Steve Cook pointed out to me that oclIsUndefined() is nearly always redundant wrt <> null.)

https://bugs.eclipse.org/bugs/show_bug.cgi?id=509281 is a planning bug fro the many missing WFRs; the QVT spec provides none. If you care to contribute some, I can build them in.

Regards

Ed Willink
Previous Topic:Measuring execution time and memory usage of QVTD transformation
Next Topic:Problem with Parsing XML-Files
Goto Forum:
  


Current Time: Wed Jul 15 06:09:02 GMT 2020

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

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

Back to the top