Tutorial: Creating the Process TutorialStore service

In this tutorial, you follow the development of a sample service module, TutorialStore, based on the concept of a Store in WebSphere Commerce version 7. The services that are provided by the tutorial store are Get and Process services. In this tutorial part, the Process service initiates a business process for the tutorial store

Since this is an SOI tutorial, the pattern creates a service module that provides service-oriented integration into your existing controller commands, access beans, and EJBs.

Learning objectives

The Process service initiates a business process for the tutorial store. This tutorial demonstrates how to reuse existing WebSphere Commerce commands for the following business process actions.

  • Open a store (com.ibm.commerce.store.commands.StoreOpenCmd)
  • Close a store (com.ibm.commerce.store.commands.StoreCloseCmd)

For this tutorial, the definition of the TutorialStore contains the information that is listed in the following table. The table shows the access profile that includes this information for the preceding XPath expressions.

Data Description Applicable Access Profiles
Store identifier information Information to uniquely identify the store. Summary, Detail, All
Store description Description information about the store. Detail, All
State Whether the store is "Open", "Closed" or "Suspended." Detail, All
Store category The category of the store, such as B2C or B2B. Detail, All
Inventory system The inventory system that is used by the store. Detail, All
Store relationship The store directory that contains the file resources that are associated with the store. Detail, All
Supported languages The languages that are supported by the store. All
Support currencies The currencies that are supported by the store. All
Fulfillment center The fulfillment center that is associated with the store. All

Time required

Expect this tutorial to take 2 hours to complete.

Audience

This tutorial is intended for WebSphere Commerce developers who are responsible for creating and customizing WebSphere Commerce services.

Prerequisites

Before you begin this tutorial, ensure that you complete the following prerequisites:

Prerequisite knowledge

To complete this tutorial, ensure that you are familiar with the following terms and concepts:

  • WebSphere Commerce service module
  • Eclipse plug-ins
  • The Java programming language
  • Rational Application Developer
  • How to import code into Rational Application Developer
  • XML and related XML technologies such as XSD
  • Registering commands with WebSphere Commerce
  • Running SQL scripts against a relational database