Follow these steps to add another customer snippet:
- Click the Invoke icon
on the palette.
- Click the Snippet icon
on the palette.
- Click the connection between GetNewsArticles and Reply.
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 Filter
articles. The Name field is set to Filterarticles.
- In the details section, click the Details tab.
- Click the Standard... icon
on the palette. The Add a Standard Visual Snippet window
opens.
- In the navigation tree, click SCA services > create specific
BO.
- Click OK. The Data Type Selection window
opens.
- Click getNewsArticlesResponse.
- In the Filter by type, namespace, or file (? = any character,
* = any String) field, type getNewsArticlesResponse.
- Click OK.
- Click the canvas to add the activity.
- Add the existing OutputVariable variable
to the canvas.
- Connect the create getNewsArticlesResponse figure
to the OutputVariable.
- Click the Standard... icon
on the palette. The Add a Standard Visual Snippet window
opens.
- In the navigation tree, click SCA services > create specific
BO.
- Click OK. The Data Type Selection window
opens.
- In the Filter by type, namespace, or file (? = any character,
* = any String) field, type getNewsArticlesListBO.
- Click NewsArticleListBO.
- Click OK.
- Click the canvas to add the activity.
- Add the existing OutputVariable variable
to the canvas, and drill into OutputVariable.newsArticles.
- Connect the create NewsArticlesListBO figure
to OutputVariable.newsArticles.
- Click the Java... icon
on the palette. The Select a Java Visual Snippet window
opens.
- In the Specify a type (? = any character, * = any String) field,
type java.util.ArrayList.
- Click ArrayList.
- Click java.util - WSInstallDir/runtimes/bi_v6_stub/java/jre/lib/core.jar.
- Click ArrayList().
- Click OK.
- Click the canvas to add the activity.
- Add the existing OutputVariable variable
to the canvas, and drill into OutputVariable.newsArticles.value.
- Connect the new ArrayList figure to OutputVariable.newsArticles.value.
- Click the Java... icon
on the palette. The Select a Java Visual Snippet window
opens.
- In the Specify a type (? = any character, * = any String) field,
type java.util.ArrayList.
- Click ArrayList.
- Click java.util - WSInstallDir/runtimes/bi_v6_stub/java/jre/lib/core.jar.
- Click ArrayList().
- Click OK.
- Click the canvas to add the activity.
- Add an expression to the canvas with and type newsArticles as
the label.
- Add the existing GetNewsArticlesOutput variable
to the canvas, and drill into GetNewsArticlesOutput.newsArticles.value.
- Add the existing newsArticles variable to
the canvas.
- Click the Standard... icon
on the palette. The Add a Standard Visual Snippet window
opens.
- In the navigation tree, click SCA services > copy list
contents.
- Click OK.
- Click the canvas to add the activity.
- Connect the GetNewsArticlesOutput.newsArticles.value figure
to the copy list contents figure.
- Connect the newsArticles figure to the copy
list contents figure.
- Add the existing newsArticles figure to
the canvas.
- Click the For Each icon
on the palette.
- Click the canvas to add the activity.
- Add the existing variable item to the For Each figure.
- Add the existing InputVariable to the For
Each figure. Drill into InputVariable.symbols.value.
- Click the Standard... icon
on the palette. The Add a Standard Visual Snippet window
opens.
- In the navigation tree, click logic > IsDisplayArticle.
- Click OK.
- Click the For Each figure to add the activity.
- Click the Choice icon
on the palette.
- Click the For Each figure to add the activity.
- Connect the item figure to the IsDisplayArticle figure.
- Connect the InputVariable.symbols.value figure
to the IsDisplayArticle figure.
- Connect the IsDisplayArticle figure to the if
true figure.
- Add the existing variable OutputVariable to
the if true figure, and drill into OutputVariable.newsArticles.value.
- Add the existing item variable to the if true figure.
- Click the Java... icon
on the palette. The Select a Java Visual Snippet window
opens.
- In the Specify a type (? = any character, * = any String) field,
type java.util.List.
- Click List.
- Click java.util - WSInstallDir/runtimes/bi_v6_stub/java/jre/lib/core.jar.
- Click add(Object).
- Click OK.
- Click inside the if true figure to add the
activity.
- Connect the OutputVariable.newsArticles.value figure
to the add figure.
- Connect the item figure to the add figure
- From the menu, select File > Save (or press Ctrl+S).
- Here is what the process should look like:

- From the menu, select File > Close (or press Ctrl+F4).
The editor closes for GetNewsArticlesProcess.