Tutorial: customizing theWebSphere Commerce pricing engine for integration
The Sterling Order Management system can be integrated with the pricing services of WebSphere® Commerce to calculate the price of products.
By default, the WebSphere Commerce price
services calculate pricing based on quality, base offer prices, and
price rules, if applicable. For merchants who sell gift cards online,
the price for the gift card is not only related to the quantity of
the gift card, it is also related to the
value pointsof the card. The
value pointsfor a gift card is like the face value of money. The shopper uses the
value points, like cash, to buy products in the store.
In this tutorial, we customize the WebSphere Commerce price services
and pricing engine to support the additional value points
parameter
passed by the Sterling Order Management.
With this new parameter, the WebSphere Enterprise
Service Bus,
and Sterling Order Management need
customizing as well.
Learning objectives
After completing this tutorial, you should be familiar with the following concepts:- Understand how Sterling Order Management integrates with WebSphere Commerce
After completing this tutorial, you should be familiar with
the following tasks:
- Understand how to customize the WebSphere Commerce pricing engine and pricing service
- Understand how to customize the WebSphere Enterprise Service Bus
This tutorial does not address how to extend Sterling Order Management to pass new parameters. For information on passing parameters, search the customization topics in this Information Center.
Time required
This tutorial should take approximately 4 hours to finish. If you explore other concepts related to this tutorial, it can take longer to complete.Skill level
AdvancedAudience
This tutorial is intended for advanced WebSphere Commerce developers responsible for integrating and customizing WebSphere Commerce with Sterling Order Management.System requirements
Before beginning this tutorial, ensure that you have done the following prerequisites:- Install WebSphere Commerce Developer
- Install WebSphere Integration Developer
- Have access to a WebSphere Enterprise Service Bus server
Prerequisites
To complete this tutorial, you should be familiar with the following terms and concepts:- WebSphere Commerce Developer
- An understanding of the Java™ programming language
- A basic understanding of Enterprise JavaBeans
- A basic understanding of XML
- A basic understanding of WebSphere Enterprise Service Bus
- A basic understanding of WebSphere Commerce distributed order management integration with Sterling Order Management.
- Ensure that you download and extract the CustomizeGetEntitledPrice.zip file to a temporary directory. This file contains code samples required to complete this tutorial. You can get this file here: CustomizeGetEntitledPrice.zip
- Define a new parameter in request messages
In this tutorial, you review the user story and decide how to add the newvalue points
parameter into the existing requested messages from Sterling Order Management. The parameter is then transformed by the WebSphere Enterprise Service Bus. The parameter is to be sent to the WebSphere Commerce GetEntitledPrice service to get the calculated price. - Customizing the WebSphere Enterprise Service Bus to transform the request message from Sterling Order Management to WebSphere Commerce
In this tutorial, you use the WebSphere Integration Developer to modify the message mapping between Sterling Order Management and WebSphere Commerce. - Deploying the customized mediation module EAR on the WebSphere Enterprise Service Bus
In this tutorial, you redeploy the customized mediation module EAR on the WebSphere Enterprise Service Bus to override the original. - Customizing the WebSphere Commerce getEntitledPrice service
In this tutorial, you are customizing the GetEntitledPrice service to create new command classes to override the supplied commands. - Customizing the WebSphere Commerce pricing engine
In this tutorial, you create a price rule element to override the supplied price rule elements. - Testing the new function by mocking the Sterling Order Management message
In this tutorial you are integrating Sterling Order Management with WebSphere Commerce, by deploying the customized code.