|
|
|
|
Re: OCL Constraints on Profile [message #1124297 is a reply to message #1123967] |
Thu, 03 October 2013 11:44 |
Ed Willink Messages: 7670 Registered: July 2009 |
Senior Member |
|
|
Hi
You are obviously not validating since "->at(0)" will always give
invalid when executed.
I have no idea why Behavior::Behavior is not an error.
*.png attachments are almost always useless.
If you want someone to look at your code, you need to provide a small
zipped project with clear repro instructions.
Regards
Ed Willink
On 02/10/2013 23:57, Eclipse Modeling wrote:
> Hi,
>
> Thank you for the quick reply. I was able to solve it by studying a tutorial in developing Geoprofile using Papyrus 7 Eclipse ( could not paste the link). I found it after posting this message.
>
> Now, the constraints (on associated_with) look like
>
> self.base_Association.memberEnd ->at(0).oclIsTypeOf(Behavior::Behavior)
> and
> self.base_Association.memberEnd->at(1).oclIsTypeOf(Entity::Entity)
>
> But, however, when I try to apply the profile onto a model and validate the model based on these profile constraints I dont see any validation messages or errors. For example, as I have attached, I have two classes assigned two different profile stereotypes and have association and assigned associated_with stereotype association. When I validate the model, I dont see any errors. Is there something I need to change to make sure the validation takes into consideration the profile constraints also.
|
|
|
Powered by
FUDForum. Page generated in 0.03589 seconds