To prepare your application for production, replace simulated data with the data from real data sources.
- Connecting to a new source system
- You can use the External Data Entities landing page to add a new source of data for the application. The green circle and yellow triangle icons in the SOURCED BY section denote the status of a source system or data source. The green circle indicates that the source system or data source is active and production-ready. The yellow triangle indicates that the data source is being simulated and needs a replacement before going to production. Existing production applications display green for all source systems. When you build a new application or extend a Pega-supplied application, most of the status icons on the landing page display yellow in the beginning. You can replace the sample systems and data sources with production-ready systems to change the status icons from yellow to green. You can use a data type with a simulated source (a source system that is marked with a yellow triangle) during development because data types in the Pega 7 Platform are virtualized data pages. You can continue developing the rest of the application before the integration layer is ready. You can build the integration layer simultaneously and use it when it becomes available. To connect a data type to a new source system, rename the sample source system that the data type is connected to and then replace the simulated data sources with production sources. You can repeat the tasks for each entity on the landing page with a yellow icon and change it to green. After all the source systems are green, the data layer of your application is ready for production.
- Renaming a sample source system.
Do the following actions to rename the sample source system to reflect the actual name of the target source system:
- On the External Data entities landing page, expand a data type that is connected to a sample source system that needs to be replaced, as shown in the following figure:
- Open a data page and find the simulated source in the list
- Update the System name field with the name of the source system to use in production
- Repeat steps 2 and 3 for each data source that is connected to the sample source system in the list.
- Refresh the External Data Entities landing page. The data type now displays the name of your actual physical source system, as shown in the following figure. The status is still yellow because it is still being simulated for now.
- Replacing a sample source system
When the integration layer is ready and the data sources that are required to connect to the source system are built, you can replace the simulated data sources with production sources to change the status icon to green.
Do the following actions to replace a source system with a new source of data:
- Open the data page, and then find the simulated source in the list
- Clear the Simulate data source check box.
- Select the source type based on the interface that is used to connect to the new source system.
- Enter the name of the data source. This rule is specific to the source type that captures the configuration details required to interact with your source system. If this record does not exist yet, create one.
- If needed, define additional source and mapping information such as
request mapping or response mapping.
The mapping rules are a critical component for Pega Live Data. These rules facilitate the exchange of data between the logical (virtualized) data layer and the physical source systems.
- Repeat steps 1 to 5 for each simulated data source that you want to connect to the new source system.
- Refresh the External Data Entities landing page. The source system should now have the green icon next to it.