< Previous | Next >

Adding the variables

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:
  1. 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:
    1. Click the Add Variable figure Add a new variable.
    2. Rename Variable to getQuoteInput by typing over the highlighted text.
    3. In the Properties view, click Details.
    4. Click Data Type.
    5. Click Browse. The Data Type Selection window opens.
    6. From the list, click string and click OK.
  2. 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:
Variables list

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.

Feedback
(C) Copyright IBM Corporation 2005, 2006. All Rights Reserved.
< Previous | Next >