How to change the value of an entity key

This page lists examples of configuration for the Data integration mappings

Bind Key

We are going to use the Bind key operation in order to rename an instance of a Step Entity.

Mapping

Routes

<routes xmlns="http://camel.apache.org/schema/spring" xmlns:u="http://www.systar.com/aluminium/camel-util">
  <route>
    <from uri="timer:foo?repeatCount=1" />
    <setBody>
      <u:map-create>
        <u:map-entry key="oldName" value="Credit Check" />
        <u:map-entry key="newName" value="Updated Credit Check" />
      </u:map-create>
    </setBody>
    <to uri="tnd-absorption:renameStep" />
  </route>
</routes>

Alternate version using Groovy

<routes xmlns="http://camel.apache.org/schema/spring" xmlns:u="http://www.systar.com/aluminium/camel-util">
  <route>
    <from uri="timer:foo?repeatCount=1" />
    <setBody>
        <groovy>[oldName: "Credit Check", newName: "Updated Credit Check"]</groovy>
    </setBody>
    <to uri="tnd-absorption:renameStep" />
  </route>
</routes>

Related Links