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.
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:
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.
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>