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

  1. On the Variables tab of the business rule, click New.

    The New variable dialog box appears.

  2. Enter MOT History as the Name.

    Select Data object as the Type.

  3. Keep Input clear.
  4. Select Output.
  5. Select the MOT History data model as the Value.
    New variable dialog for data object variable
  6. 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.