Uploaded image for project: 'Synapse'
  1. Synapse
  2. SYNAPSE-716

Supporting Message Copying and Content Enriching with Enrich Mediator

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Core
    • None

    Description

      It is often required to copy/replace message content from/with a specified source such as a inline xml, localentry or a property. Also we need to store a given message to a property or create a custom message from a given source.
      Enrich Mediator can process a message based on a given source configuration and then perform the specified action on the message by using the target configuration. It basically gets an OMElement using the configuration specified in the source and then modify the message by putting it on the current message using the configuration in the target.

      Syntax:
      <enrich>
      <source [clone=true|false] [type=custom|envelope|body|property|inline] xpath="" property="" />
      <target [action=replace|child|sibiling] [type=custom|envelope|body|property|inline] xpath="" property="" />
      </enrich>

      Enrich Mediator that is included in this patch facilitates these requirements.

      Use Cases
      ---------------

      1. Copy Message Content to a Property

      • Portion of a message (using xpath) to property
      • SOAP Body to Property
      • SOAP Envelope to Property
      • SOAP Headers to Property
      • Inline XML to property
      • Resource content(local entries) to property

      2. Enrich a message from a given source

      • Property to a portion of the Message Body (using xpath)
      • Property to SOAP Body
      • Property to Envelope
      • Property to SOAP Header

      3. Message to Message (self enriching)

      • Content of message can be move/copy with in the same message.

      Attachments

        1. enrich-mediator-j10.patch
          37 kB
          Kasun Indrasiri
        2. enrich-inlinetext_J19.patch
          7 kB
          Kasun Indrasiri

        Activity

          People

            Unassigned Unassigned
            kasun.indrasiri Kasun Indrasiri
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: