Discussion

20
Views
Close popover
Braam Smith (BraamCLSA)
PEGA
Partner Success Technical Lead
Pegasystems Inc.
AU
BraamCLSA Member since 2012 100 posts
PEGA
Posted: September 23, 2020
Last activity: September 23, 2020

Data Pages: Loading when dependent on database stored procedures [LSA Data Excellence]

What are the considerations for loading Data Pages that perform stored procedure calls?

These would have to be performed as Connect-SQL calls from an Activity, and the only channel to accomplish this in a Data Page is to use such an Activity as its Data Source. The considerations are no different when the Activity is used to load a Data Page. Ideally in contemporary system integration, the Stored Procedure would have an API -- like a REST API -- in front of it so that the Pega application is not concerned with having to make a Stored Procedure call that couples the Pega application to the vendor of the database.

If invoking a Stored Procedure from Pega is unavoidable, "hide it" in the Data Source of a Data Page so that the rest of the application does not have to be aware that this is the implementation approach. As with all Data Pages, define a clear "contract" of inputs (parameters), outputs (Data Page content) and expected behavior (e.g. exception handling) that the Data Page fulfils for the application, regardless of its actual Data Source.

Should the Stored Procedure eventually be superseded by a REST API or other integration approach, the Data Page becomes the only component of the Pega application that is refactored. The remainder of the application is unaffected by the change in implementation so long as the agreed "contract" remains fulfilled.

 

Discussion on this topic was sought from the LSA Data Excellence (Pega 8.4) webinar conducted in July 2020. The webinar and its full set of discussions that arose from it are available at LSA Data Excellence: Webinar, Questions & Answers

Pega Platform 8.4.1 Data Integration Case Management Lead System Architect Senior System Architect Developer Knowledge Share