TP3374

DataWeave Programming Language Overview Training

This DataWeave Programming Language training course is appropriate for any integration specialist that desires to build their transformation skillset. The course starts with a review of basic DataWeave objectives before covering complex expressions with real-world use cases. In addition, students will use the DataWeave extension for Visual Studio, publish Libraries to Anypoint Exchange, and use a library in a MuleSoft Project.
Course Details

Duration

3 days

Prerequisites

  • Proficiency working with Anypoint Studio and Anypoint Platform
  • Strong analytical skills
  • Some experience in organizing a Mule application in a standard way for a team of developers is helpful but not required

Skills Gained

  • Explore the concepts of Functional Programming Language.
  • Create simple transformations in DataWeave Playground, Anypoint Studio, and Visual Studio.
  • Import project metadata in Anypoint Studio for course use cases.
  • Configure various input sources using readUrl.
  • Use Selectors to access various data values.
  • Create variables, functions, and reusable modules.
  • Iterate and modify arrays and objects.
  • Robust DataWeave principles<.
  • Publish a Library to Exchange to be used in Mule Projects.
Course Outline
  • Introduction
    • Functional Programming Languages
    • Why use DataWeave?
    • Transformation work areas
    • What is DataSense?
    • Import Metadata
    • Troubleshooting tips
  • DataWeave Basics
    • Codeblock Structure
    • Core Modules
    • Supported data types
    • DWL file type
    • Simple DataWeave Expressions
  • DataWeave Coding
    • Conditional Expressions
    • Custom Variables
    • Custom Functions
    • Lambda expressions
    • Custom Modules
    • Import Modules
  • Working with Arrays and Objects
    • Iterate with map and mapObject
    • Filter with filter and filterObject
    • Use functions: distinctBy, groupBy, flatten, pluck, reduce, and more.
  • Joining Arrays and Objects
    • Import Arrays module
    • Use map and concatenation
    • Use mapObject
    • Use join function
  • Robust DataWeave principles
    • Create defensive expressions
    • Use match operator
    • Handling errors
    • Create a custom log mechanizim with DataWeave logging
  • DataWeave Reuse
    • Custom Module Review
    • Export Library to Anypoint Exchange
    • Configure Mule Project to use Library in Exchange