For more information, see MQL Command Reference: inheritancerule Command. When defining an inheritance rule, you specify a relationship and whether the ownership or access operates on the object at the from or to end of the relationship. Include clauses in the rule, based on object types and policies, that define when this inheritance rule should be applied. To define the from and to criteria for an inheritance rule, specify the object type and policy type. You can specify all for the type or policy. For example: add inheritancerule SoftwareRule operateson to appliesto ProductRelationship ownership SoftwareOwnerRI from type Part,Product policy all to type "Software Product" policy "Software Development" as show,read In this example:
The interpretation of the above inheritance rule is that whenever an app uses the ProductStructure relationship to connect an object of type Part or Product being governed by any policy to an object of type Software Product being governed by the Software Development policy, then the shown access (show,read) is added to the ownership of the Software Product (the to side of the relationship as defined by operateson). When the app determines that the criteria for an inheritance rule have been met, it adds a comment to the business object (as defined by the operateson and from or to clauses) in this format: enorule_<rel_pid>_<tenant_id>_<rule_id>_<rule_item_id> Where:
Whenever a modify, delete, or reroute connection operation occurs, the system re-evaluates all the related inheritances for the affected object. For example, a connection exists between BusObject1 and BusObject2, and an inheritance rule applies to BusObject 2 based on that connection. If you move the relationship from BusObject2 to BusObject3, the inheritance rule on BusObject2 is removed and the inheritance rule is applied to BusObject3 (if the criteria of the rule are still met). |