Nav
You are viewing an older version of this topic. To go to a different version, use the version menu at the upper-right. +

Set Message Processors

  1. New name for the message processor:

    MUnit 1.x
    <munit:set />
    MUnit 2.x
    <munit:set-event />
  2. New attribute to the parent node cloneOriginalEvent:

    MUnit 2.x
    <munit:set-event cloneOriginalEvent="[false/true]" />

    This attribute is optional and by default set to false so it won’t change previous behavior.

  3. Payload from attributes to child node:

    MUnit 1.x
    
                
             
    1
    2
    
    <munit:set payload="a simple payload"  mimeType="text/plain" encoding="UTF-8" >
    </munit:set>
    MUnit 2.x
    
                
             
    1
    2
    3
    
    <munit:set-event>
      <munit:payload value="payload_value" mediaType="text/plain" encoding="UTF-8" />
    </munit:set-event>

    Payload is now optional, if not present it should be null.

  4. New child node attributes:

    MUnit 2.x
    
                
             
    1
    
    <munit:attributes value="" />

    This element is new so no migration required.

  5. Invocation properties to variables (it reflect the actual names):

    MUnit 1.x
    
                
             
    1
    2
    3
    
    <munit:invocation-properties>
        <munit:invocation-property key="prop_key" value="prop_value" mimeType="text/plain" encoding="UTF-8" />
    </munit:invocation-properties>
    MUnit 2.x
    
                
             
    1
    2
    3
    
    <munit:variables>
      <munit:variable key="variable_key" value="variable_value" mediaType="text/plain" encoding="UTF-8" />
    </munit:variables>
  6. Add support for inbound and outbound attachments:

    MUnit 1.x
    
                
             
    1
    2
    3
    
    <munit:inbound-attachments>
      <munit:inbound-attachment key="prop_key" value="prop_value" mimeType="text/plain" encoding="UTF-8" />
    </munit:inbound-attachments>
    MUnit 2.x
    
                
             
    1
    2
    3
    
    <munit:outbound-attachments>
      <munit:outbound-attachment key="prop_key" value="prop_value" mediaType="text/plain" encoding="UTF-8" />
    </munit:outbound-attachments>
  7. Session, Inbound, Outbound properties will remain as are.

  8. Change the attribute name mimeType to mediaType whenever used.

  9. New child node error:

    MUnit 2.x
    
                
             
    1
    
    <munit:error id="" exception=""/>
Set message processor syntax in MUnit 1.x:

         
      
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<munit:set payload="a simple payload" encoding="UTF-8" mimeType="text/plain">
  <munit:invocation-properties>
    <munit:invocation-property key="prop_key" value="prop_value" encoding="UTF-8" mimeType="text/plain"/>
  </munit:invocation-properties>

  <munit:inbound-properties>
    <munit:inbound-property key="prop_key" value="prop_value" encoding="UTF-8" mimeType="text/plain"/>
  </munit:inbound-properties>

  <munit:session-properties>
    <munit:session-property key="prop_key" value="prop_value" encoding="UTF-8" mimeType="text/plain"/>
  </munit:session-properties>

  <munit:outbound-properties>
    <munit:outbound-property key="prop_key" value="prop_value" encoding="UTF-8" mimeType="text/plain"/>
  </munit:outbound-properties>
</munit:set>
Set message processor syntax in MUnit 2.x:

         
      
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<munit:set-event cloneOriginalEvent="[false|true]">
  <munit:payload value="payload_value" mediaType="text/plain" encoding="UTF-8"/>
  <munit:variables>
    <munit:variable key="variable_key" value="variable_value" mediaType="text/plain" encoding="UTF-8"/>
  </munit:variables>
  <munit:attributes value=""/>
  <munit:error id="" exception=""/>
  <munit:session-properties>
    <munit:session-property key="prop_key" value="prop_value" mediaType="text/plain" encoding="UTF-8"/>
  </munit:session-properties>
  <munit:inbound-properties>
    <munit:inbound-property key="prop_key" value="prop_value" mediaType="text/plain" encoding="UTF-8"/>
  </munit:inbound-properties>
  <munit:outbound-properties>
    <munit:outbound-property key="prop_key" value="prop_value" mediaType="text/plain" encoding="UTF-8"/>
  </munit:outbound-properties>
  <munit:inbound-attachments>
    <munit:inbound-property key="prop_key" value="prop_value" mediaType="text/plain" encoding="UTF-8"/>
  </munit:inbound-attachments>
  <munit:outbound-attachments>
    <munit:outbound-property key="prop_key" value="prop_value" mediaType="text/plain" encoding="UTF-8"/>
  </munit:outbound-attachments>
</munit:set-event>

In this topic:

We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can read more and make your cookie choices here. By continuing to use this site you are giving us your consent to do this.

+