Follow these steps to get the index of the symbol in
the article's title:
- Add the existing article variable to the
body of the While true figure. Drill into the var
to the title attribute.
- Add the existing symbol variable to the
body of the While 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.lang.String.
- Click String.
- Click java.lang - WSInstallDir/runtimes/bi_v6_stub/java/jre/lib/core.jar.
- Click indexOf(String).
- Click OK.
- Add the activity to the body of the While true figure
- Add an expression to the body of the While true figure
and label it index.
- Connect the article.title figure to the indexOf figure
- Connect the symbol figure to the indexOf figure.
- Connect the indexOf figure to the index figure.