Accessor-move Transformer

Table of contents

  • Guide

Guide

General description

The Accessor-move Transformer is used to take a part from the entity data and move it somewhere else in the structure. This original data will be moved and not copied, which is what the Accessor-copy Transformer is used for instead, wherein it copies a part of that data and leaves the source unchanged.

A possible use case for the Accessor-move Transformer is when the incoming data has the same fields but on a different level in the structure. In this case, it can take the fields from one location in the input data and move them somewhere else in the structure.

The different parts of the Accessor-move Transformer

  • Source accessor (required field)
    An accessor is a tool that can be used to find the data in the context data based on a pattern.

  • Destination accessor (required field)
    This functions similarly to the Source Accessor but helps determine where the data needs to be moved within the entity.

  • Strip enclosures from keys
    This removes enclosures from keys containing a dot (e.g., product.name becomes product.name ). When enclosures are stripped, the key is interpreted as a path if the destination uses a pattern or key accessor.