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