Skip to content

Learn to publish and use DataWeave libraries in Exchange and a Mule application.

License

Notifications You must be signed in to change notification settings

mulesoft-developers/dataweave-libraries-exchange-getting-started

Repository files navigation


Getting started with DataWeave libraries in Anypoint Exchange

Learn how to publish and use DataWeave libraries in Exchange and a Mule application

Tutorial and Video

For a step by step tutorial navigate to the MuleSoft developer website here

Overview

The Standard Date Formats folder is a DataWeave library project example to run with the DataWeave extension in VSCode.

Includes:

  • A module DateFormatConversion with a function dateTimeConversion.
  • A mapping file DateFormatConversionMapping to test the code live.
  • Unit tests in DateFormatConversionTest for quality and CI/CD purposes.
  • Required credentials in the pom.xml file to deploy to Exchange.

The dw-lib folder is a Mule project with a sample application to make use of the DataWeave library from Exchange.

Includes:

  • Changes on the pom.xml to include the Exchange DataWeave library.
  • A simple flow with a Transform Message component making use of the DataWeave library.

Note

You need to change the Organization ID with your own. You need to follow the tutorial to learn how to set up your own Org ID.

Installation Instructions

For the DataWeave library:

  1. Download Visual Studio Code.

  2. Install the DataWeave extension by MuleSoft Inc.

  3. Clone this repository.

  4. Open the Standard Date Formats folder in VSCode.

For the Mule project:

  1. Set up your environment.

  1. Clone this repository.

  2. In Anypoint Studio, select File > Import > Anypoint Studio > Anypoint Studio project from File System and click Next.

  3. Select the dw-lib folder in the Project Root and make sure to uncheck the Copy project into workspace option.

  4. Click on Finish.

Contributing

Contributions are what make the MuleSoft community such an amazing place. Any contributions you make are greatly appreciated.

See contributing.md for the MuleSoft Developer principles.

Code formatting

Prettier is a code formatter used to ensure consistent formatting across your code base. To use Prettier with Visual Studio Code, install this extension from the Visual Studio Code Marketplace. The .prettierignore and .prettierrc files are provided as part of this repository to control the behavior of the Prettier formatter.

About

Learn to publish and use DataWeave libraries in Exchange and a Mule application.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published