Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » validating OCL Complete File on models in papyrus
validating OCL Complete File on models in papyrus [message #1435451] Wed, 01 October 2014 14:04 Go to next message
azadeh jb is currently offline azadeh jbFriend
Messages: 18
Registered: September 2013
Junior Member
Hi,

I'm trying to work with Complete OCL file in Papyrus. I created a simple UML profile with a stereotype. I created a complete ocl file and loaded that to the profile (through Load Resource context menu ). I created a model and applied the profile on the model and applied its stereotype on the class of the model. When I validate the model, it doesn't check that ocl constraint.
Am I missing something here working with Complete OCL file? Because When I define the same OCL expression inside the profile directly (by creating the constraint and adding it to the stereotype) and applying the profile to the model, the constraint is checked.

One more question: is there any way for measuring the time it takes for validating the ocl constraints on models without using the APIs?

I would appreciate any help .

Thanks,
Azadeh
Re: validating OCL Complete File on models in papyrus [message #1435508 is a reply to message #1435451] Wed, 01 October 2014 15:47 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6043
Registered: July 2009
Senior Member
Hi

You may find the OCL->Valaidate necessary to get the Complete OCL to
work. Quite what Papyrus validation traverses has varied as Luna release
occurred.

Also try the OCL->Validation View.

And submit a Bugzilla with a repro if it persists.

No support for time measurement. If you really care then you may want to
try to find some way to exploit the OCL to Java code generator.

Regards

Ed Willink

On 01/10/2014 16:04, azadeh jb wrote:
> Hi,
>
> I'm trying to work with Complete OCL file in Papyrus. I created a simple
> UML profile with a stereotype. I created a complete ocl file and
> loaded that to the profile (through Load Resource context menu ). I
> created a model and applied the profile on the model and applied its
> stereotype on the class of the model. When I validate the model, it
> doesn't check that ocl constraint. Am I missing something here working
> with Complete OCL file? Because When I define the same OCL expression
> inside the profile directly (by creating the constraint and adding it to
> the stereotype) and applying the profile to the model, the constraint is
> checked.
> One more question: is there any way for measuring the time it takes for
> validating the ocl constraints on models without using the APIs?
>
> I would appreciate any help .
>
> Thanks,
> Azadeh
Previous Topic:[Complete OCL] Parsing option to support EObject as implicit root class ?
Next Topic:Need help for OCL Syntax
Goto Forum:
  


Current Time: Tue Sep 25 02:48:10 GMT 2018

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

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

Back to the top