DZone
Integration Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Integration Zone > Mulesoft Data Mapper

Mulesoft Data Mapper

This quick article gets you started up with DataMapper and shows how to configure an instance of DataMapper in your flow.

Sahil Talwar user avatar by
Sahil Talwar
·
May. 18, 16 · Integration Zone · Tutorial
Like (1)
Save
Tweet
6.87K Views

Join the DZone community and get the full member experience.

Join For Free

First of all, the latest Anypoint Studio doesn’t work with tools like DataMapper. Instead, Anypoint has come up with a tool like Transformation, but then Anypoint allows you to work with the tools which have already been deprecated. So for this connector to show up you need to go to Window > Preferences > Anypoint Studio > Palette Profiles and then on the right side select the runtime(s) and click the box labeled 'Show deprecated Mule components and attributes'.

Now on to the use of Data Mapper. Anypoint DataMapper takes data in a specific format and outputs the same data in the format of your choice. For example, you can take data stored as XML and output the same data in JSON format.

Both the input and the output can be in any of the formats supported by Mule:

"Flat," row-oriented formats:

  • CSV

  • Fixed-width

  • MS Excel sheets

Structured formats:

  • XML

  • JSON

  • POJO object trees

  • Key-value Maps

You configure DataMapper using its GUI, called the graphical mapping editor. This editor has two panes: an Input pane and an Output pane, where you define your input metadata (format, names of fields, etc.) and your output metadata respectively.

Basic Usage

Let’s start with some basic usage of DataMapper:

Configuring an instance of DataMapper in your flow involves several high-level steps:

  1. Insert a DataMapper transformer at the desired location in your application flow.

  2. Tell DataMapper what comes in and what comes out.

    Image title

  3. Click Create mapping to create an initial data mapping. DataMapper will automatically map corresponding fields between the input and output data and will leave any other fields unmapped.

  4. If necessary, graphically modify the mapping, defining input elements and attributes to output elements and attributes:

Image title

With the above article, one can start up with DataMapper and get a little clue about what this connector is all about. We just need to manually match the connectors on both the input and output sides. However, values with the same name are sensed by Data Mapper itself and are mapped automatically.

Data (computing) MuleSoft

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Why Should You Choose ReactJS for Your Next Project?
  • Get Started With Kafka and Docker in 20 Minutes
  • 50 Common Java Errors and How to Avoid Them
  • Back to Basics: Accessing Kubernetes Pods

Comments

Integration Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo