Introduced in Feature Pack 2

Testing the customization for error handling

Introduced in Feature Pack 2 In the lesson, you test your error handling customization for restore by associating a product to a recipe, deleting that product, and then restoring the recipe.

About this task

Procedure

  1. Start the WebSphere Commerce server.
  2. Open the URL: https://localhost:8000/lobtools.
  3. Log on to the Management Center tool using the Recipe Manager you registered previously.
  4. From the Management Center drop-down list, select Recipes.
  5. From the Select Store drop-down list, select MadisonEsite.
  6. From the explorer tree, navigate to the recipe Delicious Foods. Double-click on Rotisserie Beef.
  7. In the Versions tab, create a version for the raw data.
  8. In the Usage Association tab, add the associated product A00001570, and save the changes.
    Note: Any product can be used for this example.

    Recipe content versioning customization screen capture
  9. In the Versions tab, create a new version named UA to include the changes you made.
  10. Restore to the previous version
  11. Apache DerbyDB2OracleFrom the command line, run the following SQL command:
    Update catentry set MARKFORDELETE=1 where PARTNUMBER='A00001570'; 
    By running this command, the state of the product A00001570 is changed to MARKFORDELETE.
  12. In the Versions tab, restore the version UA, and click Yes to continue with the restore.
  13. An error message is shown:

    Recipe content versioning customization error handling screen capture
  14. Optional: If desired, you can undelete the product you deleted in this lesson by running the following SQL command from the command line:
    Update catentry set MARKFORDELETE=0 where PARTNUMBER='A00001570';
    If you've used a different product than the one specified in this example, substitute the part number of the product you deleted.

Results