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 09:31 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 501
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 09:43 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 501
Registered: June 2011
Senior Member
I have found the problem and have fixed it

thanks
Re: Pivot Setting Deletegate and oclIsKindOf operation problem [message #1249833 is a reply to message #1081494] Tue, 18 February 2014 17:30 Go to previous messageGo to next message
Ricardo CaWal is currently offline Ricardo CaWal
Messages: 20
Registered: January 2013
Junior Member
May I ask you how you fixed?

I have a model in a GMF-based editor that I need to select (click on) some relations before having the validator correctly evaluating some attributes of instances of the related class. The stacktrace is the same you had, maybe the issue is the same, too.

Thanks!

Re: Pivot Setting Deletegate and oclIsKindOf operation problem [message #1250349 is a reply to message #1249833] Wed, 19 February 2014 06:32 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4061
Registered: July 2009
Senior Member
HI

The original problem had at its heart

'Property::CompatibleDefaultExpression' constraint is not satisfied for
'Property attribute'

so I suspect the user fixed the bad property default.

Regards

Ed Willink


On 18/02/2014 17:31, Ricardo CaWal wrote:
> May I ask you how you fixed?
>
> I have a model in a GMF-based editor that I need to select (click on)
> some relations before having the validator correctly evaluating some
> attributes of instances of the related class. The stacktrace is the
> same you had, maybe the issue is the same, too.
>
> Thanks!
>
>
Previous Topic:Dos/Don'ts for OCLinEcore/Pivot?
Next Topic:How to exploit OCL constraints on derived features?
Goto Forum:
  


Current Time: Thu Oct 02 00:21:46 GMT 2014

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

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