In this lesson, you will implement a change in the shipping policies for small orders.
Clips and Tacks made a business decision to update the shipping policies for all domestic shipping including small orders. You will implement
Change 1 to the Clips and Tacks policy. The following table represents the Clips and Tacks service-provider endpoint capabilities (assertions) and use cases for service consumers for
Change 1.
Table 1. Clips and Tacks service-provider endpoint capabilities and use cases for Change 1Size and Type of Order |
Internal Shipping |
Better Shipping |
International Express™ |
Order Size = SMALL and Order Type = DOMESTIC |
|
X |
|
Order Size = Large and Order Type = DOMESTIC |
|
X |
|
Order Type = INTERNATIONAL |
|
|
X |
- Switch back to the Business Services perspective in WebSphere® Integration Developer. Remove the InternalShipping endpoint by right-clicking InternalShippingEndpoint and selecting Delete.
- Modify the BetterShipping endpoint.
- Double-click BetterShippingEndpoint to open its editor. Select the Assertions tab and click Add, which is in the upper-right corner of the Endpoint Capabilities table.
- Expand the Interoperability folder, expand the Content Based Assertion folder, and then select OrderSizeAssertion and click OK.
- In the window that opens, select SMALL for the order size, and then click OK.You have created an instance of this assertion type and associated it with this endpoint. There is now a row for this assertion in the table.
- In the Capabilities table, clear the check box in the Required column for OrderSizeAssertion with a value that equals LARGE. Save your work.
- Verify that you have three rows in the Endpoint Capabilities assertions table and close the editor.
- Simulate Change 1 by following the steps as outlined in the section Simulating the initial shipping policies, changing the values of the Test Verify Shipper selection page to the following values:
- CountryAssertion = USA
- PostalCodeAssertion = 30324
- TotalPriceAssertion = 10
Then click Run. The Simulation Operations panel shows only green check marks and the BetterShippingEndpoint is selected. After observing the simulation results close the simulation tab without saving it.