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

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: 7468
Registered: July 2009
Senior Member

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

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.) 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.


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

Current Time: Tue May 24 15:21:56 GMT 2022

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

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

Back to the top