Follow these steps to populate quantity attribute of
the stockInfo variable in the loop body:
- Click the Java... palette button. The Select a
Java Visual Snippet window opens.
- In the Specify a type (? = any character, * = any String) field,
type java.util.Integer.
- In the Matching types: list, select Integer.
- In the Qualifier: list, select java.util
- WSInstallDir/runtimes/bi_v6_stub/java/jre/lib/core.jar.
- In the Select a Visual Snippet: list, select intValue().
- Click OK.
- Click inside the loop body (lower) canvas of the while
true activity to add the intValue activity.
- Add an expression to the input terminal of the intValue activity.
- Type qtyOfShare.
- Add an expression to the output terminal of the intValue activity.
- Type stockInfo.quantity.