This topic describes how the developer created an Event Handler to fire the Service Ticket Generation Process Flow and then performed some tests to confirm that the process pipeline functions as expected.

  1. Open a new record from the Event Handlers service in the Process Pipeline Administration application.
  2. Select Entity as the Event Scope. This Event Handler is specific only to the Rental Agreements entity.
  3. Enter the Rental Agreements entity in the Entity field.
  4. Enter the BeforeCommitTransaction event definition in the Event field.
  5. Enter the Service Ticket Generation Process Flow in the Process Flow field.
  6. Configure the Event Handler's Input Map.
  7. Save the Event Handlers record.
  8. Test the process pipeline by following this process:
    1. Use the Check-Out wizard to check out a vehicle if one is not already checked out.
    2. Compare the checked out vehicle's Starting Mileage with the vehicle model's Maintenance Schedule to determine a suitable check-in mileage that will require servicing for an oil change and/or major tune-up.
    3. Check in the vehicle, specifying a Return Mileage that is sufficient to require scheduled maintenance and mark the Vehicle as Damaged (and enter Check In Comments, which are required for Damaged vehicles).
    4. Create or open a view of the Service Tickets entity and confirm that two Service Tickets have been generated automatically for the vehicle: one for damage and one for Scheduled Maintenance.