Skip to main content


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

Facility entity

Updated on October 14, 2021

Pega Government Platform provides data support to collect data about facilities in the form of Facility 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 Pega Government Platform Implementation Guide Pega Government Platform Implementation Guide

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

Add Facility case type

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

After you add a new facility and successfully submit, the details of the facility are persisted along with supported data, for example, Address.

Note: Unlike other Pega Government Platform entities, facility does not have any duplicate validation check.

Adding a new field to the facility intake screen

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

  1. Create a field, for example, Permission Date in the facility data type.
  2. Run the household case type and navigate to the Facility Information view.
  3. Click the Add icon and add the field created in step 1.
Result: The new field automatically gets persisted in the household table.

Introducing duplicate check validation for a field

Create duplicate check fields and update them with new fields.

  1. Create the CheckDuplicate (PegaPS-Data-Entity-Facility) case match rule.
  2. Add a new field by clicking Add must match condition, similar to how you add for Vehicle entity.
  3. Update the filter logic accordingly.
  4. Create an activity: CheckDuplicate (PegaPS-Data-Entity-Facility), and include the steps 2 and 3 by referring to the activity of the Vehicle entity.
  5. Create a post processing activity for FacilityOverview (PegaPS-Work) and invoke the new CheckDuplicate activity as a first step in the activity with the step page as .Facility and in the second step, send a warning message when the property value .Facility.IsDuplicate is true.

Adding a new list item

Update an existing list of items with new items.

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

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

Update Facility case type

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

The Update facility case type fetches the details of the Facility entity that needs to be updated. You can make changes to the facility data and submit them. The details persist after you submit.

The D_Facility data page fetches the entity details along with associated data, like Address, Communication, and so on.

Updating an existing list property

Update an existing list property, for example, InspectionList.

Fetch the facility details to update the list of item details in a facility that are captured as a part of Add Facility.

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

View Facility case type

View the details of a facility entity. Using the PegaPS-Work-Entity-Facility-View temporary case type, you can view the complete details of an existing facility entity.

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

Adding a field to the facility view

Add new fields to the existing facility view.

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

Showing captured list details in the facility view

Show the captured list, for example, InspectionList details in the facility view.

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

Search entities

Search for information across multiple record types. The search entities feature returns real-time results in entity data.

You can directly access the search page of an entity from the navigation panel. Each entity has its own landing page for search. You can build a landing page for an entity using the associated harness.

The following table shows the list of harnesses for each entity:

EntityHarness classHarness name
Person PegaPS-Data-Portal Person
Business PegaPS-Data-Portal Business
Facility PegaPS-Data-Portal Facility
Vehicle PegaPS-Data-Portal Vehicle
Household PegaPS-Data-Portal Household
The following table shows a list of data pages and report definitions that you can use for each entity search from the landing pages.
Entity Data page Report definition
Person D_PersonList PersonList
Business D_BusinessList BusinessList
Facility D_FacilityList FacilityList
Vehicle D_VehicleList VehicleList
Household D_SearchHouseholdList SearchHouseholdList
Each harness contains two areas, the header area and the content area. The Content region holds the section which shows the entities in a grid. The following are the sections for each entity:
Entity Section Class Section name
Person PegaPS SearchPersonTable
Business PegaPS SearchBusinessTable
Facility PegaPS SearchFacilityTable
Vehicle PegaPS SearchVehicleTable
Household PegaPS SearchHouseholdTable

Introducing new search criteria

Complete the following steps to introduce new search criteria for an entity:

  1. Open the data page and the report definition of the entity.
  2. Add the new search criteria as a parameter.
  3. Update the filer logic of the report definition with the appropriate relationship.
  4. Add the property in the Edit columns list of the report definition.
  5. In the section, pass the search text to the newly added parameter of the data page. If you cannot view the parameter, reselect data page.
  6. Add the property as a column to the table in the section.

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