Page 1 of 1

Specifying derivation rules

PostPosted: Tue Nov 13, 2018 1:24 pm
by dchristensen
I've been trying to extend the SysML Requirement class, which has multiple derived properties that are defined in the stereotype itself. As part of the extension, I want to add more derived properties, but I haven't been able to figure out how the derivation rules for those properties are defined. The documentation for OCL (https://docs.nomagic.com/display/MD185/ ... t+Language) describes derivation rules, but does not explain how to define them. Is there a way to define the derivation rule in the stereotype itself and not in a customization?

I have attached an example project for the sake of illustration.

Re: Specifying derivation rules

PostPosted: Wed Dec 05, 2018 10:27 am
by dchristensen
Oops. I forgot to upload the model I referenced in my last post. See attached.

Re: Specifying derivation rules

PostPosted: Tue Mar 12, 2019 4:50 pm
by rjhudson@mitre.org
This answer is most likely too late to be helpful for you, but I still wanted to answer for anybody else that may get stuck with this. The correct way to specify derived properties without using <<customization>> is to set the Default Value field to an opaque expression of type OCL2.0. Took me forever to find this, but it seems to work. Hope this helps.

Re: Specifying derivation rules

PostPosted: Mon Nov 18, 2019 12:38 am
by peteralberto94@gmail.com
The derivation you are providing is really good to see. I want to say if you are a canon printer user then if any kind of problem occurs with your printer then for the proper solution you can go through Support for Canon Printer and it's really helpful for you.