Adding Rules Manually in the Rule Manager
The Rule Manager allows you not only to inspect, manipulate and optimize a set of rules created with the LLM tasks, but also to manually add heuristic rules, by simply linking it to a Data Manager.
the required datasets have been imported into the process
a task has generated a ruleset in the process
The following additional tabs are provided:
Documentation tab where you can document your task,
Parametric options tab where you can configure process variables instead of fixed values. In this task the parametric options are available for alert options only.
History tab, which tracks all the operations that have been performed in the Rules Manager task, and behaves in the same way as the Data Manager History tab, with icons for the main operations:
Minus, for the deletion of rules or conditions
Plus, for the creation of new rules or conditions
Question mark, for query operations.
After having selected the output attribute in a Data Manager task, drag the Rule Manager task onto the stage.
Link it to a Data Manager.
Double click the Rule Manager task.
Click the plus button located under the Rules tab.
Choose the output value and define its conditions by right-clicking onto the Output value and selecting Append Condition.
Choose the condition and click Ok to add it.
Choose the attribute value(s) to add and click Ok.
Save and compute the task.
Repeat the operation to add other conditions.
The Rule spreadsheet, with the generated ruleset, contains the following columns:
In this spreadsheet you can modify rules and conditions:
The Covering spreadsheet, with additional information related to the covering of each rule in the following columns:
The Error spreadsheet, with additional information about the error scored by each rule in the following columns:
The following example uses the Go to work business rules dataset, provided below.
Import the dataset through an Import from Excel File task, then drag a Data Manager and define the Transport attribute as Output in the Attributes tab.
After having imported the dataset, drag a Rule Manager task onto the stage and link it to the Data Manager task (if you have added it) or directly to the Import from Excel File task.
Double click the Rule Manager task to open it. As you can see, no rules have been created for this dataset.
Click the plus button to add a new rule.
In this example we want to add three rules, stating that:
Let’s start by adding the first rule, so select Bicycle as the output value and click OK. The rule has been added onto the Rules tab.
Right-click on the Output value and select Append condition.
In this example, we will need to append two conditions: starting with the first one, choose the Weather attribute and click OK, then choose the condition, which will be in Sunny.
Repeat the same step mentioned above and add the second condition, which will be Smart Working and the value will be in No.
The first rule has been created.
Add a new rule by clicking on the plus button, choosing the output and appending the conditions needed.
This is the final result after we have added all the rules mentioned in the first step of this example, so we can analyze the Covering spreadsheet and the Error spreadsheet using the directories provided in the Results table at the beginning of this page.