Tutorials > Program model


Next >


Tutorial: Creating new business logic

Attention: This tutorial is currently under revision. The content might contain errors or inaccuracies. Subscribe to this page to be notified when an updated version is available.

In this tutorial, you create new business logic. New business logic is required when a change is made to the default business logic behavior of WebSphere Commerce.

In this tutorial, the change is the ability to keep track of a customer's bonus points.

The types of assets created include...

This tutorial is for demonstration purposes only and does not reflect all the logic required to build a loyalty program application. Instead, from this tutorial, we will learn the development steps that are common to creating each of the previously listed types of code assets.


Learning objectives


Time required

Expect this tutorial to take about 3 hours to complete, not including the step that includes deploying the bonus points logic to a target WebSphere Commerce Server.

You can load the completed tutorial code instead of performing each step. After loading the completed tutorial code into the workspace, you can run the code as if you performed each step in the tutorial. However, in order to fully attain the learning objectives, it is recommended that you perform the tutorial step by step.


Audience

This tutorial is intended for WebSphere Commerce Store developers who are responsible for creating new business logic.


Prerequisites

Saving the sample code

Before beginning this tutorial, download the WCSample.zip package that contains the starting point for these programming tutorials. Save this file onto the development machine. As an example, you might save the file into the WCDE_INSTALL/ directory.

Preparing the workspace

Before beginning this tutorial, prepare the workspace .

Ensure you enable Struts Development in WebSphere Commerce Developer, if it is currently disabled:

  1. Select Window > Preferences.

  2. Select General > Capabilities.

  3. Click Advanced... and select Web Developer (advanced) > Struts Development, if it is currently disabled.

  4. Click OK to accept the changes and close the Advanced Capabilities Settings window.

  5. Click OK to accept the changes and close the Preferences window.

Knowledge prerequisites

Before beginning this tutorial ensure that you have:


Resources

The following pages contain the source code for this tutorial:


Lessons in this tutorial

Next >


+

Search Tips   |   Advanced Search