OCL Failing

Other topics that do not fit in any of categories.

Moderator: Moderators

OCL Failing

Postby ryan.hill@gtri.gatech.edu » Tue Jul 14, 2020 10:40 am

I am trying to learn OCL to implement validation rules. I'm simply trying to get something to evaluate to true. I have selected the Constrained Element to be InputPin [UML Standard Profile::UML2 Metamodel]. I run the following constraint in Evaluate mode, specifying THIS to be a specific input pin in my model:

Code: Select all
context InputPin inv getPinType:
body
self.oclIsTypeOf(Pkg::SubPkg::TypeFromInputPinTypeField)


yet the result is False. Can anyone help?
User avatar
ryan.hill@gtri.gatech.edu
Forum Newbie
Forum Newbie
 
Posts: 13
Posts Rating:0
Joined: Wed Jun 24, 2020 11:25 am
Full name: Ryan Hill

Re: OCL Failing

Postby lucillemcmahan89 » Thu Jan 27, 2022 5:36 am

I also got the same question. Hopefully will soon find the answer
lucillemcmahan89
Forum Newbie
Forum Newbie
 
Posts: 2
Posts Rating:0
Joined: Thu Jan 27, 2022 5:29 am


Return to Other

Who is online

Users browsing this forum: No registered users and 0 guests