Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Vehicle entity

Updated on October 22, 2021

Pega Government Platform provides data support to collect data about vehicles in the form of vehicle entity.

Pega Government Platform Implementation Guide Pega Government Platform Implementation Guide Pega Government Platform Implementation Guide Pega Government Platform Implementation Guide Pega Government Platform Implementation Guide Pega Government Platform Implementation Guide Pega Government Platform Implementation Guide Pega Government Platform Implementation Guide Pega Government Platform Implementation Guide Pega Government Platform Implementation Guide

The Vehicle Entity feature contains a persistent datastore and three supporting case types to manage the Vehicle Entity datastore.

Add Vehicle case type

Add a vehicle case type. Using the PegaPS-Work-Entity-Vehicle-Add case type, you can introduce a new entity of the type Vehicle into the system.

The Add Vehicle case type checks for duplicate vehicle entries based on the Vehicle Identification Number (VIN) and notifies about the same. The case type persists the vehicle details along with the supported data like address, owner, profile image, lien details, and so on.

Adding a new field to the vehicle intake screen

Capture a new field in the vehicle intake screen and persist it. You can add a new data field or property and extend the existing vehicle intake screen.

  1. Create a field, for example, Purchase Date, in the vehicle data type.
  2. Run the Vehicle case type and navigate to the Vehicle details view.
  3. Click the Add icon and add the field created in step 1.
Result: The new field automatically gets persisted in the vehicle table.

Updating duplicate check validation for a field

Update the existing duplicate check fields with new fields.

  1. Open the CheckDuplicate (PegaPS-Data-Entity-Vehicle) case match rule.
  2. Add a new field by clicking Add must match condition.
  3. Update the filter logic accordingly.
  4. Click Save as.
  5. In the Context section, select an application.
  6. In the Add to ruleset area, select a ruleset and the ruleset version.
  7. Click Create and open.

Adding a new list item

Update an existing list of items with new items.

Add a new list item, for example, ServiceHistoryList and persist it.
  1. In Dev Studio, to add a new list item, create a data type ServiceHistory in the PegaDATA database and have the following properties pyID (Primary key), EntityID, and EntityType.
  2. Add other properties related to subsidiary like service center name, service date, and so on.
  3. In the Vehicle data type (PegaPS-Data-Entity-Vehicle), create a field.
    1. In the Field name box, enter ServiceHistoryList.
    2. In the Type list, select Embedded data.
    3. In the Data object list, select ServiceHistory.
    4. Click Submit.

  4. Update the PersitEmbeddedPage (PegaPS-Data-Entity-Vehicle) activity with a new step looping the ServiceHistoryList property and invoke the activity SaveObject by passing the EntityID and EntityType parameters similar to CommList.
  5. Create a UI to capture the service history details so that they persist after you enter the data.

Update Vehicle case type

Update the existing vehicle case type. Using the PegaPS-Work-Entity-Vehicle-Update case type, you can update the details of an existing entity.

The Update vehicle case type fetches the details of the Vehicle entity that needs to be updated. You can make changes to the vehicle data and submit them. The details persist after the duplicate validation check ensures that there are no duplicates.

The D_Vehicle data page fetches the entity details along with associated data like address, lien, and so on.

Updating an existing list property

Update the existing list properties for the household entity.

Fetch the subsidiary details to update the existing list of subsidiaries that are captured as a part of Add Vehicle. Update an existing list property, for example, ServiceHistoryList.

  1. Update the FetchVehicleDetails (PegaPS-Data-Entity-Vehicle) data transform.
  2. Add a step similar to AddressList.

View Vehicle case type

View the details of a vehicle entity. Using the PegaPS-Work-Entity-Vehicle-View temporary case type, view the complete details of an existing vehicle entity.

The Details (PegaPS-Data-Entity-Vehicle) wrapper section contains all the vehicle related views or sections.

Adding a field to the vehicle view

Add new fields to an existing vehicle view.

Add a field, for example, Purchase Date to the vehicle view.
  1. To add the field, navigate to the Details wrapper section and choose the appropriate section to show the field, for example, the Vehicle header RO section.
  2. Add the new field along with the existing ones.

Showing captured list details in the vehicle view

Show the captured list, for example, ServiceHistoryList details in the vehicle view.

  1. Create a view or section in PegaPS-Work-Entity-Vehicle-View class.
  2. Include the section in the Main content region of the pyCaseMainInner view.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us