Integration examples — StockTrader Portal |
The Pega 7 StockTrader portal is an online sample web application that allows the user to buy and sell stocks, manage a stock portfolio, and update account details. The application serves as a client for services that process buy and sell orders.
StockTrader demonstrates how Pega 7 can connect to and interact with third-party services and applications running on other technologies, such as .NET and Spring.
This is a demonstration application, and the buys and sells you execute do not involve real stock or real money transactions.
Using Pega 7 connectors, your application can connect with external services such as SWO2 services. Pega 7 supports WS-* specifications such as:
You can use the StockTrader feature to demonstrate the integration of Pega 7 services with third-party products.
Note: StockTrader portal requires Microsoft SQL Server.
In order to use the StockTrader portal, ensure that the StockTrader application has been installed. The StockTrader application and installation instructions are available in the Resource Kit folder on the Pega 7 distribution media.
Note: If you upgrade Pega 7 that includes StockTrader from 6.3 SP1 to Pega 7.1.6, you must manually remove the pegalp-integration ruleset from the application ruleset list. This ruleset is not included in a new install of StockTrader, but may be carried forward if it exists in your application and you then upgrade Pega 7.
After StockTrader is installed:
The TraderPortal welcome screen appears. Click Continue-> to display the portal in tabular form.
The Config tab provides configuration services in three tabs:
This tab has two sections:
Configuration Service
Set the configuration service endpoint in the field provided, then click Save Configuration Endpoint.
Client Mapping
To map a client to a business service, select a client in the Client Name field and the service in the Business Service field and click Map Client to Service.
Click Save As Default Client to set this mapped client as the default client. The portal will prepare to work with the default client's settings unless instructed otherwise.
On this tab you can map a business service to its related order processing service, to configure them to work together. Select the services to map in the Business Service and Order Processing Service fields, then click Map Service.
You can add both business and order-processing services on this tab. For each new service provide the following:
Click Add Service to add the service.
Log in on this tab to use the StockTrader services.
Integration category - connectors
How to detect lengthy service operations |