Creating a rule specialized by a class or ruleset
Provide a version of a rule that your application triggers only during resolution of rules that belong to a specified class or ruleset. When you define the conditions for a rule resolution, you ensure that users interact with actions and the application behavior that are relevant in a given scenario. You also save time and resources because you promote reuse across your application.
Consider a scenario in which Vehicle-Insurance and Loan-Request classes in your application are outside a class hierarchy and have no shared rulesets, but you want to apply a service-level agreement (SLA) rule from the Loan-Request class to the Vehicle-Insurance class. You can specialize the SLA rule so that your application can resolve it during processing of the Vehicle-Insurance class.
- In the navigation pane of Dev Studio, click Records.
- Expand the category that you want to open, and then open the subcategory that holds the rule that you want to circumstance.
- In the list of instances, open the rule.
- In the rule form header, click the Down arrow next to the Save button, and then click Specialize by class or ruleset.
- Optional: To provide more information about the purpose of a new rule, in the
Label field, enter a new short description.The identifier remains the same even if you provide a new label.
- In the Context section, define a new location with which
to reference your rule:
- In the list of built-on applications, select an application layer for the rule.
- In the Apply to field, enter a class that you want to associate with the rule.
- In the Add to ruleset list, select a ruleset and a ruleset version to associate with the rule.
- Optional: To override the default work item that your application associates with this
development change, press the Down arrow key in the Work item to
associate field, and then select a work item.For more information about your default work item, see Setting your current work item.
- Click Create and open.
Previous topic Rule resolution exceptions Next topic Defining the input parameters of a rule