Calculating value of derived property

Discussions about Domain Specific Language customizations

Moderator: Moderators

Re: Calculating value of derived property

Postby rimvydas.vaidelis » Fri Aug 23, 2019 4:40 am

You need to cast to stereotype Risk before accessing the property value:

self.oclAsType(MyProfile::Risk).likelihood
rimvydas.vaidelis
Customer Support
Customer Support
 
Posts: 264
Posts Rating:14
Joined: Fri May 28, 2010 4:45 am

Re: Calculating value of derived property

Postby patrick.d.dees@boeing.com » Mon Aug 24, 2020 1:17 pm

I would like to revive this discussion. Does anyone on this thread have a working example of a calculated derived property such as the Risk stereotype spoken about in this thread? I've been following along with the discussion and have attempted multiple times to get an example working but have been so far unsuccessful. I would very much like some help in the matter.
patrick.d.dees@boeing.com
Forum Newbie
Forum Newbie
 
Posts: 16
Posts Rating:2
Joined: Wed Sep 11, 2019 1:42 pm

Re: Calculating value of derived property

Postby rimvydas.vaidelis » Tue Aug 25, 2020 3:59 am

Please attach a sample project that would allow to reproduce the problem.
rimvydas.vaidelis
Customer Support
Customer Support
 
Posts: 264
Posts Rating:14
Joined: Fri May 28, 2010 4:45 am

Previous

Return to DSL

Who is online

Users browsing this forum: No registered users and 0 guests