|Define general OCL Constraints [message #1441860]
||Fri, 10 October 2014 09:30
| van Thinh Le
Registered: October 2014
I use Eclipse Luna with Papyrus 1.0. I'm new to OCL and have troubles defining general constraints in the Papyrus diagram.
Can someone recommend a good Papyrus OCL tutorial or examples which embrace more complicated constraints than in the Eclipse documentation?
I want to specify constraints like this, is it even possible with OCL?
- All properties / operations / parameters must have a name
- A specific stereotype must use at least once and not more than once in a diagram
- An operation have not more than 1 return type parameter. I tried this in my profile, but it doesn't work. Any ideas why?
self.base_Operation.ownedParameter->select(direction = ParameterDirectionKind::return)->size() < 2
[Updated on: Sun, 12 October 2014 20:42]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02073 seconds