|
Rule Set InheritanceNew to version 4.5, Rule Sets can be inherited. That is, a Rule Set can be created as an extension of an existing Rule Set. The new Rule Set inherits all the rules of the parent Rule Set and can add new rules and/or override inherited rules. If the parent Rule Set is modified, the extended Rule Set inherits the modifications. This allows companies to centrally manage core Rule Sets and project teams can extend as needed. This type of Rule Set creation is only available on the server. To create an extended Rule Set, select the Rule Set you would like to extend, from either your My Rule Sets page or My Team Rule Sets page, and click the Extend button at the bottom of the Customize Rule Set page. There are a few things to note about Rule Set Inheritance:
A Detailed Example of InheritanceIn order to see the properties of inheritance, follow this example.
By editing the configurations of these rule sets, the effect of inheritance can be shown. For example, when making any changes to the inh_example rule set, the changes will propagate down to all of its children. Create a new General Pattern as displayed in the screenshot below. The effect on the child rule sets can be seen. A change to the inh_example_2 rule set will affect the child inh_example_3 rule set, as well as the inh_example_3_copy rule set. However, it will not affect the inh_example rule set. Create a new General Pattern as displayed in the screenshot below. The effect on the child rule sets can be seen. The inh_example_3 and inh_example_3_copy rule sets are not extended by any more rule sets, therefore, changes made to them are local, they will not affect any other rule set. Note that these rule sets are determined by the edits to both inh_example and inh_example_2. Create a new General Pattern in inh_example_3 as displayed in the screenshot below. Here, the effect of all 3 new patterns can be seen in inh_example_3. The patterns are inherited from their respective parent rule set. MyDateFormat is inherited from inh_example, and MyDateFormat2 is inherited from inh_example_2. MyDateFormat3 is not displayed as inherited since it was created locally for use by this rule set alone (and its children, if it had any).
|