Follow these steps to add the Assign Output Snippet:
- Click the Invoke icon
on the palette.
- Click the Snippet icon
on the palette.
- Click the Flow 1 figure
. The Snippet figure
was added.
- Switch to the Properties view.
- In the Display Name field, type Assign
newsArticles, stockPortfolio and brokerageAccount. The Name field
will be set to AssignnewsArticlesstockPortfolioandbrokerageAccount.
- In the details section, click the Details tab.
- Add the existing getNewsArticlesOutput variable
to the canvas and drill into getNewsArticlesOutput.newsArticles.value.
- Add the existing OutputVariable to the canvas
and drill into OutputVariable.portalInfo.news.
- Connect the getNewsArticlesOutput.newsArticles.value figure to
the OutputVariable.portalInfo.news figure.
- Add the existing getBrokerageAccountOutput variable
to the canvas and drill into getBrokerageAccountOutput.brokerageAccount.
- Add the existing OutputVariable to the canvas
and drill into OutputVariable.portalInfo.brokerageAccount.
- Connect the getBrokerageAccountOutput.brokerageAccount figure
to the OutputVariable.portalInfo.brokerageAccount figure.
- Add the existing getValueOfPortfolioOutput variable
to the canvas and drill into getValueOfPortfolioOutput.outputStockPortfolio.
- Add the existing OutputVariable variable
to the canvas and drill into OutputVariable.portalInfo.stockPortfolio.
- Connect the getValueOfPortfolioOutput.outputStockPortfolio figure
to the OutputVariable.portalInfo.stockPortfolio figure.
- Return to the process editor and right-click the Flow
2 figure.
- From the pop-up menu, select Add Link.
- 20. Click the Assign newsArticles, stockPortfolio and brokerageAccount figure

- Click the com.ibm.wbit.activity.ui.figures.ActivityDefinitionFigure figure.
- From the pop-up menu, select Add Existing > getNewsArticlesOutput.
- Click the com.ibm.wbit.activity.ui.figures.ActivityDefinitionFigure figure.
Click the getNewsArticlesOutput text figure
.
- In the navigation tree, expand getNewsArticlesOutput
: getNewsArticlesResponseMsg > newsArticles : NewsArticleListBO > value :
List.
- In the getNewsArticlesOutput field, type getNewsArticlesOutput.newsArticles.value.
- Click the type:List(java.util) figure
.
- From the pop-up menu, select Add Existing > OutputVariable.
- Click the type:List(java.util) figure
. Click the OutputVariable text
figure
.
- In the navigation tree, expand OutputVariable : gatherPortalInfoResponseMsg
> portalInfo : PortalInfoBO > news : List.
- In the OutputVariable field, type OutputVariable.portalInfo.news.
- Click the getNewsArticlesOutput.newsArticles.value figure
.
- From the pop-up menu, select Add > Link.
- Click the OutputVariable.portalInfo.news figure
.
- Click the type:List(java.util) figure
.
- From the pop-up menu, select Add Existing > getBrokerageAccountOutput.
- Click the type:List(java.util) figure
. Click the getBrokerageAccountOutput
text figure
.
- In the navigation tree, expand getBrokerageAccountOutput
: getAccountResponseMsg > brokerageAccount : BrokerageAccountBO.
- In the getBrokerageAccountOutput field,
type getBrokerageAccountOutput.brokerageAccount.
- Click the type:List(java.util) figure
.
- From the pop-up menu, select Add Existing > OutputVariable.
- Click the type:List(java.util) figure
. Click the OutputVariable
text figure
.
- In the navigation tree, expand OutputVariable : gatherPortalInfoResponseMsg
> portalInfo : PortalInfoBO > brokerageAccount : BrokerageAccountBO.
- In the OutputVariable field, type OutputVariable.portalInfo.brokerageAccount.
- Click the getBrokerageAccountOutput.brokerageAccount figure
.
- From the pop-up menu, select Add > Link.
- Click the OutputVariable.portalInfo.brokerageAccount figure
.
- Click the type:List(java.util) figure
.
- From the pop-up menu, select Add Existing > getValueOfPortfolioOutput.
- Click the type:List(java.util) figure
. Click the getValueOfPortfolioOutput
text figure
.
- In the navigation tree, expand getValueOfPortfolioOutput
: getStockPortfolioValueResponseMsg > outputStockPortfolio : StockPortfolioBO.
- In the getValueOfPortfolioOutput field,
type getValueOfPortfolioOutput.outputStockPortfolio.
- Click the type:List(java.util) figure
.
- From the pop-up menu, select Add Existing > OutputVariable.
- Click the type:List(java.util) figure
. Click the OutputVariable
text figure
.
- In the navigation tree, expand OutputVariable : gatherPortalInfoResponseMsg
> portalInfo : PortalInfoBO > stockPortfolio : StockPortfolioBO.
- In the OutputVariable field, type OutputVariable.portalInfo.stockPortfolio.
- Click the getValueOfPortfolioOutput.outputStockPortfolio figure
.
- From the pop-up menu, select Add > Link.
- Click the OutputVariable.portalInfo.stockPortfolio figure
.
- Right-click the getValueOfPortfolio figure
.
- From the pop-up menu, select Undo Snippet Change.
- Right-click the Flow 2 figure
.
- From the pop-up menu, select Add Link.
- Click the Flow 1 figure
