Create the variables used to store the data that is exchanged within
the process logic, and also between the process and its partners.
To add the variables to the process, follow these steps:
- We require a variable to store the symbol for the stock that we
select from the stock quote web service. Start creating this variable as follows:
- Click the Add Variable figure
.
- Rename Variable to getQuoteInput by
typing over the highlighted text.
- In the Properties view, click Details.
- Click Data Type.
- Click Browse. The Data Type
Selection window opens.
- From the list, click string and click OK.
- Similarly, add several other variables as follows:
Name |
Data Type |
Purpose |
getQuoteOutput |
float |
Contains the stock value obtained from invoking the
web service. |
counter |
int |
Contains the current index used to identify a specific
stock in the stock portfolio. This value is incremented after each loop. |
numberOfSymbols |
int |
Contains the number of stocks in the stock portfolio. |
stockInfo |
StockInfoBO |
Contains a business object that describes an individual
stock, including its symbol, quantity, and share price. |
You should now have all of the variables necessary for activities
within business process, as shown below:

Now that
you have defined the variables, next you will initialize them with values
from the stock portfolio so that you can begin to assess the portfolio's value.