Creating the createStockPortfolio visual snippet
Follow these tasks to create the createStockPortfolio visual snippet:
Creating a new visual snippet
Creating the input symbolsList variable
Creating the input quantityOfSharesList variable
Creating the output Result variable
Maximize the editor
Creating the stockPortfolio variable
Creating the listsNonEmpty variable
Adding the Choice condition to the canvas
Adding the Choice activity to the canvas
Returning the stockPortfolio Business Object
Creating the stockInfoList Business Object variable in the 'if true' section of the Choice canvas
Creating the symbolsIterator variable in the 'if true' section of the Choice canvas
Creating the qtySharesIterator variable in the 'if true' section of the Choice canvas
Adding the While activity to the 'if true' section of the Choice canvas
Creating the loop condition
Creating the symbol variable in the loop body
Creating the qtyOfShare variable in the loop body
Creating the stockInfo Business Object variable in the loop body
Populating symbol attribute of the stockInfo variable in the loop body
Populating quantity attribute of the stockInfo variable in the loop body
Populating the shareValue attribute of the stockInfo variable in the loop body
Adding the stockInfo Business Object to stockInfoList in the loop body
Restore the editor
Parent topic:
Creating the Brokerage Interface Map
Previous topic:
Creating the withdraw to withdraw operation map
Next topic:
Creating the getAccount to retrieveCustomer operation map