Create a global data model

In this step, you create a global data model so it can be reused in other places.

  1. On the TotalAgility Designer Home page, navigate to System data > Data models.
  2. Click New.

    A new browser window appears.

  3. Change the name of the model to MOT History.
  4. Click Load from external source.

    The Load from external dialog box appears.

  5. Copy the following JSON:

    {
      "make": "",
      "model": "",
      "dateFirstUsed": "",
      "fuelType": "",
      "colour": "",
      "engineSize": "",
      "registrationDate": "",
      "manufactureDate": "",
      "manufactureYear": "",
      "motTestReports": [
        {
          "testDate": "",
          "expiryDate": "",
          "testResult": "",
          "odometerReading": 0,
          "odometerUnit": "",
          "motTestNumber": 0,
          "advisoryItems": [
            ""
          ],
          "minorItems": [
            ""
          ],
          "failureItems": [
            ""
          ]
        }
      ],
      "motTestDueDate": ""
    }
    

  6. Paste the JSON in the File content box and click Add.

    All the fields appear under MOT History data model.

  7. Click Release and then click Close and unlock.
  8. Return to the BR MOT Pass Fail Count business rule.

Continue to Create variables.