Adding the Assign Output Snippet

Follow these steps to add the Assign Output Snippet:
  1. Click the Invoke icon on the palette.
  2. Click the Snippet icon on the palette.
  3. Click the Flow 1 figure Flow 1. The Snippet figure Snippet was added.
  4. Switch to the Properties view.
  5. In the Display Name field, type Assign newsArticles, stockPortfolio and brokerageAccount. The Name field will be set to AssignnewsArticlesstockPortfolioandbrokerageAccount.
  6. In the details section, click the Details tab.
  7. Add the existing getNewsArticlesOutput variable to the canvas and drill into getNewsArticlesOutput.newsArticles.value.
  8. Add the existing OutputVariable to the canvas and drill into OutputVariable.portalInfo.news.
  9. Connect the getNewsArticlesOutput.newsArticles.value figure to the OutputVariable.portalInfo.news figure.
  10. Add the existing getBrokerageAccountOutput variable to the canvas and drill into getBrokerageAccountOutput.brokerageAccount.
  11. Add the existing OutputVariable to the canvas and drill into OutputVariable.portalInfo.brokerageAccount.
  12. Connect the getBrokerageAccountOutput.brokerageAccount figure to the OutputVariable.portalInfo.brokerageAccount figure.
  13. Add the existing getValueOfPortfolioOutput variable to the canvas and drill into getValueOfPortfolioOutput.outputStockPortfolio.
  14. Add the existing OutputVariable variable to the canvas and drill into OutputVariable.portalInfo.stockPortfolio.
  15. Connect the getValueOfPortfolioOutput.outputStockPortfolio figure to the OutputVariable.portalInfo.stockPortfolio figure.
  16. Return to the process editor and right-click the Flow 2 figure.
  17. From the pop-up menu, select Add Link.
  18. 20. Click the Assign newsArticles, stockPortfolio and brokerageAccount figure Flow 1
  19. Click the com.ibm.wbit.activity.ui.figures.ActivityDefinitionFigure figure.
  20. From the pop-up menu, select Add Existing > getNewsArticlesOutput.
  21. Click the com.ibm.wbit.activity.ui.figures.ActivityDefinitionFigure figure. Click the getNewsArticlesOutput text figure getNewsArticlesOutput.
  22. In the navigation tree, expand getNewsArticlesOutput : getNewsArticlesResponseMsg > newsArticles : NewsArticleListBO > value : List.
  23. In the getNewsArticlesOutput field, type getNewsArticlesOutput.newsArticles.value.
  24. Click the type:List(java.util) figure type:List(java.util).
  25. From the pop-up menu, select Add Existing > OutputVariable.
  26. Click the type:List(java.util) figure type:List(java.util). Click the OutputVariable text figure OutputVariable.
  27. In the navigation tree, expand OutputVariable : gatherPortalInfoResponseMsg > portalInfo : PortalInfoBO > news : List.
  28. In the OutputVariable field, type OutputVariable.portalInfo.news.
  29. Click the getNewsArticlesOutput.newsArticles.value figure getNewsArticlesOutput.newsArticles.value.
  30. From the pop-up menu, select Add > Link.
  31. Click the OutputVariable.portalInfo.news figure OutputVariable.portalInfo.news.
  32. Click the type:List(java.util) figure type:List(java.util).
  33. From the pop-up menu, select Add Existing > getBrokerageAccountOutput.
  34. Click the type:List(java.util) figure type:List(java.util). Click the getBrokerageAccountOutput text figure getBrokerageAccountOutput.
  35. In the navigation tree, expand getBrokerageAccountOutput : getAccountResponseMsg > brokerageAccount : BrokerageAccountBO.
  36. In the getBrokerageAccountOutput field, type getBrokerageAccountOutput.brokerageAccount.
  37. Click the type:List(java.util) figure type:List(java.util).
  38. From the pop-up menu, select Add Existing > OutputVariable.
  39. Click the type:List(java.util) figure type:List(java.util). Click the OutputVariable text figure OutputVariable.
  40. In the navigation tree, expand OutputVariable : gatherPortalInfoResponseMsg > portalInfo : PortalInfoBO > brokerageAccount : BrokerageAccountBO.
  41. In the OutputVariable field, type OutputVariable.portalInfo.brokerageAccount.
  42. Click the getBrokerageAccountOutput.brokerageAccount figure getBrokerageAccountOutput.brokerageAccount.
  43. From the pop-up menu, select Add > Link.
  44. Click the OutputVariable.portalInfo.brokerageAccount figure OutputVariable.portalInfo.brokerageAccount.
  45. Click the type:List(java.util) figure type:List(java.util).
  46. From the pop-up menu, select Add Existing > getValueOfPortfolioOutput.
  47. Click the type:List(java.util) figure type:List(java.util). Click the getValueOfPortfolioOutput text figure getValueOfPortfolioOutput.
  48. In the navigation tree, expand getValueOfPortfolioOutput : getStockPortfolioValueResponseMsg > outputStockPortfolio : StockPortfolioBO.
  49. In the getValueOfPortfolioOutput field, type getValueOfPortfolioOutput.outputStockPortfolio.
  50. Click the type:List(java.util) figure type:List(java.util).
  51. From the pop-up menu, select Add Existing > OutputVariable.
  52. Click the type:List(java.util) figure type:List(java.util). Click the OutputVariable text figure OutputVariable.
  53. In the navigation tree, expand OutputVariable : gatherPortalInfoResponseMsg > portalInfo : PortalInfoBO > stockPortfolio : StockPortfolioBO.
  54. In the OutputVariable field, type OutputVariable.portalInfo.stockPortfolio.
  55. Click the getValueOfPortfolioOutput.outputStockPortfolio figure getValueOfPortfolioOutput.outputStockPortfolio.
  56. From the pop-up menu, select Add > Link.
  57. Click the OutputVariable.portalInfo.stockPortfolio figure OutputVariable.portalInfo.stockPortfolio.
  58. Right-click the getValueOfPortfolio figure getValueOfPortfolio.
  59. From the pop-up menu, select Undo Snippet Change.
  60. Right-click the Flow 2 figure Flow 2.
  61. From the pop-up menu, select Add Link.
  62. Click the Flow 1 figure Flow 1

Feedback
(C) Copyright IBM Corporation 2005. All Rights Reserved.