Adding a custom snippet

Follow these steps to add a custom snippet:
  1. Click the Empty Action icon on the palette.
  2. Click the Snippet icon on the palette.
  3. Click the Flow1 figure Flow1. The Snippet figure Snippet was added.
  4. Switch to the Properties view. The Display Name field is set to Snippet. The Name field is set to Snippet.
  5. In the details section, click the Description tab.
  6. In the Display Name field, type Check if categories were inputted. The Name field is set to Checkifcategorieswereinputted.
  7. In the details section, click the Details tab.
  8. Add the existing InputVariable to the canvas. Drill into the var until you reach InputVariable.categories.value.
  9. Click the Standard... icon on the palette. The Add a Standard Visual Snippet window opens.
  10. In the navigation tree, click logic > IsListEmpty.
  11. Click OK.
  12. Add the existing isCategoriesSpecified figure to the canvas.
  13. Connect the InputVariable.categories.value figure to the IsListyEmpty activity.
  14. Connect the IsListEmpty figure to the isCategoriesSpecifiged activity.

Feedback
(C) Copyright IBM Corporation 2005. All Rights Reserved.