Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Pivot Setting Deletegate and oclIsKindOf operation problem
Pivot Setting Deletegate and oclIsKindOf operation problem [message #1081487] Wed, 07 August 2013 05:31 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 396
Registered: June 2011
Senior Member
Hi,

I have a very simple model with very simple ocl statement containing oclIsKindOf.
When i try to parse the statement, it works fine but when i try to evaluate using setting delegates i get

org.eclipse.ocl.common.internal.delegate.OCLDelegateException: 'Property::CompatibleDefaultExpression' constraint is not satisfied for 'Property attribute'
at org.eclipse.ocl.examples.pivot.delegate.AbstractDelegatedBehavior.validate(AbstractDelegatedBehavior.java:243)
at org.eclipse.ocl.examples.pivot.delegate.OCLSettingDelegate.get(OCLSettingDelegate.java:68)
at org.eclipse.emf.ecore.util.BasicSettingDelegate$Stateless.dynamicGet(BasicSettingDelegate.java:185)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1027)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1011)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1003)

is this a bug in pivot evaluation?

regards,
Re: Pivot Setting Deletegate and oclIsKindOf operation problem [message #1081494 is a reply to message #1081487] Wed, 07 August 2013 05:43 Go to previous message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 396
Registered: June 2011
Senior Member
I have found the problem and have fixed it

thanks
Previous Topic:Simple Question about OCL indexOf operation
Next Topic:UML2ECORE via adapter
Goto Forum:
  


Current Time: Mon Oct 07 10:13:20 EDT 2013

Powered by FUDForum. Page generated in 0.01478 seconds