Skip to main content



      Home
Home » Modeling » QVT-Relations » OCL-Constraints(a problem with OCL-Constraints in QVTr)
OCL-Constraints [message #1798191] Tue, 13 November 2018 19:33 Go to next message
Eclipse UserFriend
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 11:24 Go to previous message
Eclipse UserFriend
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: Thu Mar 27 00:27:30 EDT 2025

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

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

Back to the top