Design a process

Design a process to review each of the failed tests.

  1. On the TotalAgility Designer Home page, navigate to Workflow > Business processes.
  2. Click New.

    A new process opens in a different browser tab.

  3. Enter MOT Test Failure Review as the Name.
  4. Proceed with the following steps to design and configure the process:

Add variables

  1. On the Variables tab of the MOT Test Failure Review process, click New.
  2. Enter Test Details History as the Name.
  3. Select Data object as the Type.
  4. Select Initialization.
  5. In the Value field, select the MOT History data model and drill down to select motTestReports.

    This is a quick way to create an object based on the structure of a row in a list.

  6. Use the same procedure to create the following variables.

    Name Type Initialization Value
    Licence Plate String Selected
    Engineer Inspection Required Bool Clear false
    Inspection Request Document Clear default
    System AWF_JOBID

Add and configure activities

  1. On the Design tab of the MOT Test Failure Review process, add an activity to the Start node.
    1. Enter Review as the Name.
    2. Select Ordinary activity as the Type.
    3. Add the following Input variables:

      • License plate

      • Test Details History.testDate

      • Test Details History.testResult

      • Test Details History.odometerReading

      • Test Details History.odometerUnit

      • Test Details History s.motTestNumber

      • Test Details History

      • JOBID

    4. Add the following Output variables: Engineer Inspection Required
  2. Select the Review activity and add a decision.
  3. Select the decision and add an activity and End node.
  4. Configure the decision:
    1. Rename to Manual Inspection Required?.
    2. Right-click on the rule editor and set the Condition text as Engineer Inspection Required.
    3. Select Activity 3 (the activity added at step 3) as the True path.
  5. Configure Activity 3:
    1. Rename to Generate Inspection Request.
    2. Select Document creation as the Type.
    3. Select Load document template from store.
    4. Select Inspection Request as the Document template name.
    5. Select Document as the Format.
    6. Select the Inspection Request process variable as the Document save location.
    7. Map the Template placeholders as shown below:
  6. Select the Generate Inspection Request activity and add an activity to it.
  7. To convert the Microsoft Word document that is generated to .tiff format so you can easily view it, configure Activity 5 (the activity added at step 6) as follows:
    1. Rename the activity to Convert to Tiff.
    2. Select Capture > Image processing as the Type.
    3. Select the Inspection Request variable as the Input document/folder.
    4. Leave all other properties at their default value.
  8. Add an End node to the Convert to Tiff activity.

    The process looks similar to the following example.

  9. Release your process.

Next, update your business rule to create a new job for every failed test. Continue to Update the business rule.