Adding a while activity
Follow these steps to add a while activity to the PortfolioEvaluatorProcess process:
Switch to the PortfolioEvaluatorProcess editor.
Click the
Choice
icon
on the palette.
Click the
While Loop
icon
on the palette.
Click the connection between
Initialize variables
and
Reply
. The WhileLoop figure
was added.
Switch to the Properties view.
In the details section, click the
Details
tab.
From the
Expression language
list, click
Java
.
From the list, click
Java™
.
Remove the existing
false
figure.
Remove the existing
return
figure.
Add the existing
counter
variable to the canvas.
Add the existing
numberOfSymbols
variable to the canvas.
Click the
Standard...
icon
on the palette. The
Add a Standard Visual Snippet
window opens.
In the navigation tree, click
math > less than
.
Click
OK
.
Click the canvas to add the activity.
Click the Return icon
on the palette
Click the canvas to add the activity.
Connect the
counter
figure to the
less than
figure.
Connect the
numberOfSymbols
figure to the
less than
figure.
Connect the
less than
figure to the
return
figure.
Parent topic:
Completing the PortfolioEvaluatorProcess process
Previous topic:
Adding a snippet to assign the counter and numberOfSymbols variables
Next topic:
Adding a snippet to assign the getQuoteInput variable