Running the FTEInput node sample only

Before you can run the FTEInput node sample, you must have imported and deployed the sample, see Managed File Transfer sample.

If problems arise when you run the sample, see Preparing the environment for WebSphere MQ File Transfer Edition nodes or Resolving problems when running samples in the WebSphere Message Broker documentation.

Input test message

The test message that is used to run this sample represents the product delivery data for a branch. The end-of-day sales application of the branch outlet generates one message with one record for each product, followed by a final message indicating the end-of-data for the branch outlet.

Example stock replenishment message: StockReplenishmentRequest_123.txt

This part of the sample uses the following message flows:

Running the sample:

  1. In the Brokers view, expand the FTEHQ execution group.
  2. Right-click FTENodesSampleMFlow.HQProcessingDriver.
  3. To stop the messages being processed and sent to the FTEOutput node, click Stop.
  4. In the Broker Development view, expand FTENodesSampleFlowProject.
  5. Under Flow Tests, double-click Msg1.StockReplenishmentRequestFromBranch.mbtest to open it in the Test Client.
  6. In the Test Client, click Enqueue.
  7. In the Detailed Properties panel, click Send Message.
  8. In the WebSphere MQ Explorer, switch to the Queues view. Check that the FTE_STOCK_PROCESS_HQ WebSphere MQ queue has messages in the current queue depth.
  9. In the WebSphere Message Broker Toolkit, switch to the Broker Development view:
    1. Under Flow Tests, double-click Msg1.StockReplenishmentRequestFromBranch.mbtest to open it in the Test Client.
    2. In the Test Client, click Dequeue.
    3. In the Detailed Properties panel, click Get Message.
  10. Repeat step 9 until all the messages are dequeued from the FTE_STOCK_PROCESS_HQ WebSphere MQ queue.

If all the preceding steps are successful, the sample is complete. Look at the FTEInput node in the FTEInputBranch2HQMFlow message flow to see how the results were achieved.

Expected output message from the FTEInput node

The output message from the FTEInput node splits up the message sent to the flow into four individual records with the following updates:

<StockReplenishment>
    <BranchNumber>123</BranchNumber>
    <SequenceNumber>1</SequenceNumber>
  	<LineItem>
     	<ItemID>AA0534</ItemID>
     	<Description>2oz White Chocolate</Description>  
     	<MerchandiseHierarchy Level="Department">Chocolates</MerchandiseHierarchy>    
     	<UnitListPrice ForeignAmount="0.87" Currency="GBP">1.64</UnitListPrice>
     	<RegularSalesUnitPrice>1.31</RegularSalesUnitPrice>
     	<ActualSalesUnitPrice>1.31</ActualSalesUnitPrice>
     	<ExtendedAmount>3.62</ExtendedAmount>
     	<Quantity>63</Quantity>
  	</LineItem>
</StockReplenishment>
<StockReplenishment>
    <BranchNumber>123</BranchNumber>
    <SequenceNumber>2</SequenceNumber>
  	<LineItem>
     	<ItemID>AA0533</ItemID>
     	<Description>4oz Milk Chocolate</Description>  
     	<MerchandiseHierarchy Level="Department">Chocolates</MerchandiseHierarchy>    
     	<UnitListPrice ForeignAmount="0.87" Currency="GBP">1.79</UnitListPrice>
     	<RegularSalesUnitPrice>1.63</RegularSalesUnitPrice>
     	<ActualSalesUnitPrice>1.63</ActualSalesUnitPrice>
     	<ExtendedAmount>4.89</ExtendedAmount>
     	<Quantity>35</Quantity>
  	</LineItem>
</StockReplenishment>
<StockReplenishment>
    <BranchNumber>123</BranchNumber>
    <SequenceNumber>3</SequenceNumber>
  	<LineItem>
     	<ItemID>AA7545</ItemID>
     	<Description>4oz Dark Chocolate</Description>  
     	<MerchandiseHierarchy Level="Department">Chocolates</MerchandiseHierarchy>    
     	<UnitListPrice ForeignAmount="0.87" Currency="GBP">1.99</UnitListPrice>
     	<RegularSalesUnitPrice>1.63</RegularSalesUnitPrice>
     	<ActualSalesUnitPrice>1.63</ActualSalesUnitPrice>
     	<ExtendedAmount>4.89</ExtendedAmount>
     	<Quantity>34</Quantity>
  	</LineItem>
</StockReplenishment>
<StockReplenishment>
    <BranchNumber>123</BranchNumber>
    <SequenceNumber>4</SequenceNumber>
    <EndofData>true</EndofData>
</StockReplenishment>

Back to sample home