|Re: OCL Constraints on Profile [message #1124297 is a reply to message #1123967]
||Thu, 03 October 2013 11:44
| Ed Willink
Registered: July 2009
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.
On 02/10/2013 23:57, Eclipse Modeling wrote:
> 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)
> 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.02034 seconds