SlideShare a Scribd company logo
1 of 25
Calicut MuleSoft Meetup
DataWeave Library Extension
19-AUG-2023
Organizer
Safe Harbour Statement
● Both the speaker and the host are organizing this meet-up in individual capacity only.
We are not representing our companies here.
● This presentation is strictly for learning purposes only. Organizer/Presenter do not
hold any responsibility that same solution will work for your business requirements.
● This presentation is not meant for any promotional activities.
Housekeeping
● A recording of this meetup will be uploaded to events page within 24 hours.
● Questions can be submitted/asked at any time in the Chat/Questions & Answers Tab. Make it more
Interactive!!!
● Give us feedback! Rate this meetup session by filling feedback form at the end of the day.
We Love Feedbacks!!! Its Bread & Butter for Meetup.
● Working as Engineering Leader at Tricon Infotech
Private Limited.
● 13+ years of Total Experience.
● 5+ years experience in Mulesoft.
● Certified MuleSoft Developer and Architect.
● MuleSoft Mentor
● Patna MuleSoft Meetup Leader
● Top Contributors of MuleSoft Help Forum
● Founder of DataWeave Fun
Speaker
Shyam Raj Prasad
Agenda
● DataWeave
● DataWeave Library Extension
● Development of DataWeave library
● Features of Dataweave Library extension
● Packaging and deployment of DataWeave Library
● Demo
● DataWeave is the programming language designed by MuleSoft for data transformation.
● DataWeave enables you to build a simple solution for a common use case for integration developers:
read and parse data from one format, transform the data, and write it out as a different format.
● For example, a DataWeave script can receive a CSV file as input and transform it into an array of
complex JSON objects, or receive an XML input and write the data out to a flat file format.
DataWeave Language
DataWeave Favorite Platform
The DataWeave extension to Visual Studio Code enhances productivity when you are building DataWeave
libraries. The extension provides the following capabilities:
● Ability to work on your DataWeave modules and mappings in a standalone manner, outside of a Mule
application.
● Instant execution of your DataWeave mappings, including live preview of data transformations.
● Language support, including autocompletion, navigation, refactoring, formatting, quick fixes, and syntax
highlighting.
● Debugging support for DataWeave mappings.
● Automatic generation of a documentation template that you can use to provide your own DataWeave
library documentation in Exchange.
● An embedded DataWeave Maven plugin with the following features:
○ Integration of packaging and deployment of your DataWeave libraries with your Maven lifecycle.
○ Integration with Exchange to share and consume DataWeave libraries.
● An embedded DataWeave testing framework that enables you to build automated unit and integration
tests easily.
DataWeave Library Extension
Requirements
● Java 8 or 11 provided
● Apache Maven (3.6.3 minimum)
● Microsoft Visual Studio Code for your specific operating system
● DataWeave 2.0 (BETA) library in VS code (Extensions tab)
Developing DataWeave Libraries
A DataWeave library is a reusable package of DataWeave module and mapping files, and
resource files, such as JSON, XML, and CSV. To develop DataWeave libraries, first create
a new DataWeave project in Visual Studio Code where you then create, preview, and test
custom mappings and modules.
If you want to try out your mapping without creating a DataWeave project, you can either
open your .dwl mapping file directly in Visual Studio Code or create a new one and use
sample data and scenarios.
DataWeave Modules and Mapping
● Dataweave modules can define functions, variables, types, and namespaces. You can import
these modules into a DataWeave script to use the features.
● Dataweave module cannot contain an output directive, body expression, or the separator (---)
between header and body sections.
● Dataweave mapping files are a type of module that contains a complete DataWeave script
that you can import and use in another DataWeave script or reference in a Mule component.
Understanding the DataWeave
Project Structure
DataWeave projects use Apache Maven to build and declare project dependencies. The following
diagram shows the DataWeave project structure:
DataWeave Library Extension Features:
Auto Completion
DataWeave Library Extension Features:
Live preview
DataWeave Library Extension Features:
Testing
DataWeave Library Extension Features:
Debugging
DataWeave Library Extension Features
● Validation
● Hover
● Extract variable
● Goto definition
● Document symbols
● Formatting
● Find references
● Highlight
● Rename symbol
● Quick fixes
● Docs auto-generation
● Dependency management
Packaging and Deploying DataWeave
Libraries
Apache Maven plugin for DataWeave to integrate the packaging and deployment of your
DataWeave libraries with your Maven lifecycle. The plugin enables you to run six main
goals:
● compile Compiles the source code for your DataWeave library.
● test Tests the compiled source code using the DataWeave testing framework.
● data-weave:generate-docs Automatically generates the documentation for your
DataWeave library.
● package : Packages the compiled code in a .jar file.
● data-weave:deploy-docs :Uploads the auto-generated documentation for your
DataWeave library to Anypoint Exchange.
● deploy :Automatically uploads your DataWeave library to the deployment target and
uploads the auto-generated documentation to Exchange.
Demo
Q&A
Take a stand !
●Nominate yourself for the next meetup speaker and suggest a topic as well.
Share:
○ Tweet using the hashtag #MuleSoftMeetups
○ Invite your network to join: https://meetups.mulesoft.com/calicut
Feedback:
○ Fill out the survey feedback and suggest topics for upcoming events
○ Contact MuleSoft at meetups@mulesoft.com for ways to improve the
program
What’s next?
Networking time
Thank You

More Related Content

Similar to #11 DataWeave Extension Library using Visual Studio Code

1 - Introduction of Azure DevOps
1 - Introduction of Azure DevOps1 - Introduction of Azure DevOps
1 - Introduction of Azure DevOpsBhaumik Patel
 
Anypoint connector dev kit
Anypoint connector dev kitAnypoint connector dev kit
Anypoint connector dev kitSon Nguyen
 
Brisbane MuleSoft Meetup 13 MuleSoft Maven and Managing Dependencies Part 1.pptx
Brisbane MuleSoft Meetup 13 MuleSoft Maven and Managing Dependencies Part 1.pptxBrisbane MuleSoft Meetup 13 MuleSoft Maven and Managing Dependencies Part 1.pptx
Brisbane MuleSoft Meetup 13 MuleSoft Maven and Managing Dependencies Part 1.pptxBrianFraser29
 
5 Treding Java Frameworks Offshore Developers Should About
5 Treding Java Frameworks Offshore Developers Should About5 Treding Java Frameworks Offshore Developers Should About
5 Treding Java Frameworks Offshore Developers Should AboutBJIT Ltd
 
Dashboarding with Microsoft: Datazen & Power BI
Dashboarding with Microsoft: Datazen & Power BIDashboarding with Microsoft: Datazen & Power BI
Dashboarding with Microsoft: Datazen & Power BIDavide Mauri
 
Best Practices with Sitecore
Best Practices with SitecoreBest Practices with Sitecore
Best Practices with SitecoreAnant Corporation
 
Database CI Demo Using Sql Server
Database CI  Demo Using Sql ServerDatabase CI  Demo Using Sql Server
Database CI Demo Using Sql ServerUmesh Kumar
 
Basics of Mulesoft Anypoint connector
Basics of Mulesoft Anypoint connectorBasics of Mulesoft Anypoint connector
Basics of Mulesoft Anypoint connectorakshay yeluru
 
Lightning Web Components- Ep 0 - Introduction
Lightning Web Components- Ep 0 - IntroductionLightning Web Components- Ep 0 - Introduction
Lightning Web Components- Ep 0 - IntroductionNishant Singh Panwar
 
Mulesoft kochi meetup 8 custom connector
Mulesoft kochi meetup 8   custom connectorMulesoft kochi meetup 8   custom connector
Mulesoft kochi meetup 8 custom connectorSupriya Pawar
 
Spring Native and Spring AOT
Spring Native and Spring AOTSpring Native and Spring AOT
Spring Native and Spring AOTVMware Tanzu
 
Dirigible powered by Orion for Cloud Development (EclipseCon EU 2015)
Dirigible powered by Orion for Cloud Development (EclipseCon EU 2015)Dirigible powered by Orion for Cloud Development (EclipseCon EU 2015)
Dirigible powered by Orion for Cloud Development (EclipseCon EU 2015)Nedelcho Delchev
 
Asp Net Vs Vue JS Which One You Should Choose for Development.pdf
Asp Net Vs Vue JS Which One You Should Choose for Development.pdfAsp Net Vs Vue JS Which One You Should Choose for Development.pdf
Asp Net Vs Vue JS Which One You Should Choose for Development.pdfIntegrated IT Solutions
 
Rewardenv by ITG Cloud - Meet Magento India
Rewardenv by ITG Cloud - Meet Magento IndiaRewardenv by ITG Cloud - Meet Magento India
Rewardenv by ITG Cloud - Meet Magento IndiaPiyushDankhra
 

Similar to #11 DataWeave Extension Library using Visual Studio Code (20)

Vaadin Jump Start
Vaadin Jump StartVaadin Jump Start
Vaadin Jump Start
 
1 - Introduction of Azure DevOps
1 - Introduction of Azure DevOps1 - Introduction of Azure DevOps
1 - Introduction of Azure DevOps
 
Anypoint connector dev kit
Anypoint connector dev kitAnypoint connector dev kit
Anypoint connector dev kit
 
Brisbane MuleSoft Meetup 13 MuleSoft Maven and Managing Dependencies Part 1.pptx
Brisbane MuleSoft Meetup 13 MuleSoft Maven and Managing Dependencies Part 1.pptxBrisbane MuleSoft Meetup 13 MuleSoft Maven and Managing Dependencies Part 1.pptx
Brisbane MuleSoft Meetup 13 MuleSoft Maven and Managing Dependencies Part 1.pptx
 
5 Treding Java Frameworks Offshore Developers Should About
5 Treding Java Frameworks Offshore Developers Should About5 Treding Java Frameworks Offshore Developers Should About
5 Treding Java Frameworks Offshore Developers Should About
 
Dashboarding with Microsoft: Datazen & Power BI
Dashboarding with Microsoft: Datazen & Power BIDashboarding with Microsoft: Datazen & Power BI
Dashboarding with Microsoft: Datazen & Power BI
 
Azure Devops
Azure DevopsAzure Devops
Azure Devops
 
Best Practices with Sitecore
Best Practices with SitecoreBest Practices with Sitecore
Best Practices with Sitecore
 
Database CI Demo Using Sql Server
Database CI  Demo Using Sql ServerDatabase CI  Demo Using Sql Server
Database CI Demo Using Sql Server
 
Anypoint connector basics
Anypoint connector basicsAnypoint connector basics
Anypoint connector basics
 
Basics of Mulesoft Anypoint connector
Basics of Mulesoft Anypoint connectorBasics of Mulesoft Anypoint connector
Basics of Mulesoft Anypoint connector
 
Lightning Web Components- Ep 0 - Introduction
Lightning Web Components- Ep 0 - IntroductionLightning Web Components- Ep 0 - Introduction
Lightning Web Components- Ep 0 - Introduction
 
Mulesoft kochi meetup 8 custom connector
Mulesoft kochi meetup 8   custom connectorMulesoft kochi meetup 8   custom connector
Mulesoft kochi meetup 8 custom connector
 
Spring Native and Spring AOT
Spring Native and Spring AOTSpring Native and Spring AOT
Spring Native and Spring AOT
 
Spring framework
Spring frameworkSpring framework
Spring framework
 
Dirigible powered by Orion for Cloud Development (EclipseCon EU 2015)
Dirigible powered by Orion for Cloud Development (EclipseCon EU 2015)Dirigible powered by Orion for Cloud Development (EclipseCon EU 2015)
Dirigible powered by Orion for Cloud Development (EclipseCon EU 2015)
 
Asp.net Vs Vue.js.pdf
Asp.net Vs Vue.js.pdfAsp.net Vs Vue.js.pdf
Asp.net Vs Vue.js.pdf
 
Java Framework comparison
Java Framework comparisonJava Framework comparison
Java Framework comparison
 
Asp Net Vs Vue JS Which One You Should Choose for Development.pdf
Asp Net Vs Vue JS Which One You Should Choose for Development.pdfAsp Net Vs Vue JS Which One You Should Choose for Development.pdf
Asp Net Vs Vue JS Which One You Should Choose for Development.pdf
 
Rewardenv by ITG Cloud - Meet Magento India
Rewardenv by ITG Cloud - Meet Magento IndiaRewardenv by ITG Cloud - Meet Magento India
Rewardenv by ITG Cloud - Meet Magento India
 

Recently uploaded

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 

Recently uploaded (20)

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 

#11 DataWeave Extension Library using Visual Studio Code

  • 1. Calicut MuleSoft Meetup DataWeave Library Extension 19-AUG-2023
  • 3. Safe Harbour Statement ● Both the speaker and the host are organizing this meet-up in individual capacity only. We are not representing our companies here. ● This presentation is strictly for learning purposes only. Organizer/Presenter do not hold any responsibility that same solution will work for your business requirements. ● This presentation is not meant for any promotional activities.
  • 4. Housekeeping ● A recording of this meetup will be uploaded to events page within 24 hours. ● Questions can be submitted/asked at any time in the Chat/Questions & Answers Tab. Make it more Interactive!!! ● Give us feedback! Rate this meetup session by filling feedback form at the end of the day. We Love Feedbacks!!! Its Bread & Butter for Meetup.
  • 5. ● Working as Engineering Leader at Tricon Infotech Private Limited. ● 13+ years of Total Experience. ● 5+ years experience in Mulesoft. ● Certified MuleSoft Developer and Architect. ● MuleSoft Mentor ● Patna MuleSoft Meetup Leader ● Top Contributors of MuleSoft Help Forum ● Founder of DataWeave Fun Speaker Shyam Raj Prasad
  • 6. Agenda ● DataWeave ● DataWeave Library Extension ● Development of DataWeave library ● Features of Dataweave Library extension ● Packaging and deployment of DataWeave Library ● Demo
  • 7. ● DataWeave is the programming language designed by MuleSoft for data transformation. ● DataWeave enables you to build a simple solution for a common use case for integration developers: read and parse data from one format, transform the data, and write it out as a different format. ● For example, a DataWeave script can receive a CSV file as input and transform it into an array of complex JSON objects, or receive an XML input and write the data out to a flat file format. DataWeave Language
  • 9. The DataWeave extension to Visual Studio Code enhances productivity when you are building DataWeave libraries. The extension provides the following capabilities: ● Ability to work on your DataWeave modules and mappings in a standalone manner, outside of a Mule application. ● Instant execution of your DataWeave mappings, including live preview of data transformations. ● Language support, including autocompletion, navigation, refactoring, formatting, quick fixes, and syntax highlighting. ● Debugging support for DataWeave mappings. ● Automatic generation of a documentation template that you can use to provide your own DataWeave library documentation in Exchange. ● An embedded DataWeave Maven plugin with the following features: ○ Integration of packaging and deployment of your DataWeave libraries with your Maven lifecycle. ○ Integration with Exchange to share and consume DataWeave libraries. ● An embedded DataWeave testing framework that enables you to build automated unit and integration tests easily. DataWeave Library Extension
  • 10. Requirements ● Java 8 or 11 provided ● Apache Maven (3.6.3 minimum) ● Microsoft Visual Studio Code for your specific operating system ● DataWeave 2.0 (BETA) library in VS code (Extensions tab)
  • 11. Developing DataWeave Libraries A DataWeave library is a reusable package of DataWeave module and mapping files, and resource files, such as JSON, XML, and CSV. To develop DataWeave libraries, first create a new DataWeave project in Visual Studio Code where you then create, preview, and test custom mappings and modules. If you want to try out your mapping without creating a DataWeave project, you can either open your .dwl mapping file directly in Visual Studio Code or create a new one and use sample data and scenarios.
  • 12. DataWeave Modules and Mapping ● Dataweave modules can define functions, variables, types, and namespaces. You can import these modules into a DataWeave script to use the features. ● Dataweave module cannot contain an output directive, body expression, or the separator (---) between header and body sections. ● Dataweave mapping files are a type of module that contains a complete DataWeave script that you can import and use in another DataWeave script or reference in a Mule component.
  • 13. Understanding the DataWeave Project Structure DataWeave projects use Apache Maven to build and declare project dependencies. The following diagram shows the DataWeave project structure:
  • 14. DataWeave Library Extension Features: Auto Completion
  • 15. DataWeave Library Extension Features: Live preview
  • 16. DataWeave Library Extension Features: Testing
  • 17. DataWeave Library Extension Features: Debugging
  • 18. DataWeave Library Extension Features ● Validation ● Hover ● Extract variable ● Goto definition ● Document symbols ● Formatting ● Find references ● Highlight ● Rename symbol ● Quick fixes ● Docs auto-generation ● Dependency management
  • 19. Packaging and Deploying DataWeave Libraries Apache Maven plugin for DataWeave to integrate the packaging and deployment of your DataWeave libraries with your Maven lifecycle. The plugin enables you to run six main goals: ● compile Compiles the source code for your DataWeave library. ● test Tests the compiled source code using the DataWeave testing framework. ● data-weave:generate-docs Automatically generates the documentation for your DataWeave library. ● package : Packages the compiled code in a .jar file. ● data-weave:deploy-docs :Uploads the auto-generated documentation for your DataWeave library to Anypoint Exchange. ● deploy :Automatically uploads your DataWeave library to the deployment target and uploads the auto-generated documentation to Exchange.
  • 20. Demo
  • 21. Q&A
  • 22. Take a stand ! ●Nominate yourself for the next meetup speaker and suggest a topic as well.
  • 23. Share: ○ Tweet using the hashtag #MuleSoftMeetups ○ Invite your network to join: https://meetups.mulesoft.com/calicut Feedback: ○ Fill out the survey feedback and suggest topics for upcoming events ○ Contact MuleSoft at meetups@mulesoft.com for ways to improve the program What’s next?