Create variables
In this step you create one Data object variable and six other variables to use in the business rule.
Create a new Data object variable
-
On the
Variables tab of the business rule, click
New.
The New variable dialog box appears.
-
Enter
MOT History as the
Name.
Select Data object as the Type.
- Keep Input clear.
- Select Output.
-
Select the
MOT History data model as the
Value.
- Click Add.
Add the following additional variables
Use the same procedure you followed for adding the MOT History variable to create six more variables.
| Name | Type | Input | Output | Value |
|---|---|---|---|---|
| Licence_Plate | String | Selected | Clear | |
| EntryFound | Bool | Clear | Clear | false |
| CurrentIndex | Short | Clear | Clear | 1 |
| PassCount | Short | Clear | Selected | 0 |
| FailCount | Short | Clear | Selected | 0 |
| TestReport | Data object | Clear | Clear | Mot History. motTestReports |
Next, return to the rule Design tab to add nodes to your business rule. Continue to Add and configure activities.