Develop a message flow and message model for dealing with repeating elements

Before you start
This is the fifth stage of the scenario to perform simple message enrichment. This topic demonstrates how to develop a message flow and message model for dealing with repeating elements, a single instance and all instances.
  1. Create a message called addev3, which has the following structure:
    addev3
        frepstr        (xsd:string) local element, minOcc=3, maxOcc=3
        vrepstr       (xsd:string) local element, minOcc=1, maxOcc=4
        urepstr       (xsd:string)  local element, minOcc=1, maxOcc=-1
  2. Create a message flow called addev3, which contains the following mapping: MQInput -> Mapping -> MQOutput.
  3. Open the map and select addev3 as both source and target
  4. In the upper pane, map each source to the corresponding target, as illustrated in this example:
    frepstr --- frepstr
    vrepstr --- vrepstr
    urepstr --- urepstr
  5. In the Spreadsheet pane, expand fully the target addev3.
  6. Highlight and delete the For item above the vrepstr entry.
  7. Create an instance message with the appropriate RFH2 header and the following data:
    <addev3>
    <frepstr>this</frepstr>
    <frepstr>that</frepstr>
    <frepstr>other</frepstr>
    <vrepstr>only one</vrepstr>
    <vrepstr>extra</vrepstr>
    <urepstr>first</urepstr>
    <urepstr>second</urepstr>
    <urepstr>third</urepstr>
    <urepstr>fourth</urepstr>
    <urepstr>fifth</urepstr>
    </addev3>
You have created the following resources:
Now deploy the message set and message flow.

Deploy the message set and message flow

This is the sixth stage of the scenario to perform simple message enrichment. This topic demonstrates how to deploy the message set and message flow and run the data through the broker.
  1. Create a broker archive (bar) file called addev3.
  2. Add the message set MAPPING3_SIMPLE_messages and the message flow addev3 to the bar file.
  3. Deploy the bar file to the broker.
  4. Put the instance document on the input queue.
The output message looks like this:
<addev3>
<frepstr>this</frepstr>
<frepstr>that</frepstr>
<frepstr>other</frepstr>
<vrepstr>only one</vrepstr>
<urepstr>first</urepstr>
<urepstr>second</urepstr>
<urepstr>third</urepstr>
<urepstr>fourth</urepstr>
<urepstr>fifth</urepstr>
</addev3>