Tutorials > Management Center


Next >


Tutorial: Adding a Recipes tool to the Management Center

This tutorial shows you how to add a tool, the Recipes tool, to the Management Center. You will learn to use the Management Center programming framework to create a presentation layer using OpenLaszlo and JSPs files.

The tool that you are creating will use the services provided by the Project service module that you created in Tutorial: Creating the Project BOD service module. Adding the Recipes tool is continuation of that tutorial, and we will use and expand on the assets and configuration changes that you have made.

A recipe is an object that describes how to use several products that the retailer sells. Recipe is only one concrete example, directed to a retailer who sells cooking related items. This approach can be used for other market segments as well. A retailer who sells building supplies may call this object a Project plan. It would describe how you could build something from the things that they sell, such as a dog house. In our case, Recipe is a new primary object that we will create.

The Recipes tool uses the Project service module. This is a design choice. Project is a more general term, and more appropriate for a service module. You will be using Recipe as the name of the objects in the presentation layer, which will be tailored to Recipes.

The Recipe object has the following attributes.

Name

Recipe name

Time

The time it takes to complete the recipe.

Difficulty

Difficult, medium, or easy.

RecipeDescription

The short and long descriptions. Only the short description is shown in the Recipe list.

The ingredients and recipe instructions are child objects of Recipe. Ingredients are items that are incorporated into the recipe. An ingredient for the recipe can be a product that the store sells or something that is not in the catalog.

Within the new Recipes tool, business users can create, delete, or change a recipe, tag a recipe to facilitate grouping them together, associate a recipe with one or more products within the Recipes tool and associate a product with one or more recipes within the Catalogs tool. In the storefront, shoppers can navigate recipes by recipe collection, and the recommended products for that recipe are listed. Product pages also provide links to recipes that use that product.


Learning objectives

After completing this tutorial you should be able to:


Time required

Expect this tutorial to take 4-5 hours to complete.


Skill level

Advanced


Audience

This tutorial is intended for WebSphere Commerce developers responsible for creating and customizing WebSphere Commerce SOA services and customizing the Management Center user interface.


System requirements

  1. WebSphere Commerce v7

  2. WebSphere Commerce Developer v7

  3. Downloaded and extracted the RecipeTool tutorial file to a temporary folder, for example TutorialSource.


Lessons in this tutorial

Next >


+

Search Tips   |   Advanced Search