This operation concerns the deletion of classes, methods, attributes, and domain items contained in the BOM, which you can display by expanding the BOM to reveal the element tree.
You can delete any of the elements contained in the BOM Explorer as follows:
-
Right-click a class, method, attribute, or domain item and then click Delete on the shortcut menu.
-
Select a class, method, attribute, or domain item and then click Delete on the Edit menu.
-
Select a class, method, attribute, or domain item and click the
button on the main toolbar.
Important |
When you remove a class, the Rule Builder also removes all its subclasses and all the members that reference this class. |
-
You are asked to confirm the deletion.
-
When you click the OK button and the element you want to delete is used in one or more projects, rules, decision tables, decision trees, or templates, a warning panel is displayed that identifies the elements concerned, as shown in Figure 8.7. The information displayed is the same as the label contained in the tooltip of the project element, for example, Sales Conditions. Decision Table Name plus the type of rule (in this case Decision Table).
-
Figure 8.7 Delete Warning Panel
-
When you click the OK button, the element is deleted and removed from the BOM Explorer.
-
For rules, the discrepancy between the BOM and the rule is highlighted in red when you run a check or try to execute the rule, as shown in Figure 8.8. In this example the class
ShoppingCart
has been deleted from the BOM
Note |
Queries are affected in the same way. |
.
-
Figure 8.8 Class ShoppingCart Deleted from the BOM
-
For decision tables, the changes to the BOM are reflected immediately in the BOM Explorer and the decision tables contained in all projects of the current repository are updated. Figure 8.9 shows the decision table after the domain
Silver
belonging to the class Category
in the BOM has been deleted. Note that it is removed from the BOM Explorer and underlined in red in the decision table. The tooltip gives the explanation.
-
Figure 8.9 Domain Item Silver Deleted from the BOM
See Also
Using the BOM Date and Time Classes | Managing Decision Tables
|