This is intended as a short guide. For detailed instructions + video, please see this article.
Set up Visual Studio Code
- Install Visual Studio Code.
- Install Java 8 and Maven (3.6.3 or higher).
- Install the DataWeave extension for Visual Studio Code.
Export/open the code
- From the Playground, click on Export.
- Extract the .zip file.
- Open this folder from VSCode File > Open Folder.
Configure the layout
- Open the input file from
src/test/resources/main/Playground/inputs
. - Open the
main.dwl
file fromsrc/main/dw
. - From the
main
file, click Run Preview. - Drag-and-drop the layout as you wish.
- From the
main
file, right-click on the canvas and select DataWeave: Enable AutoPreview for the same functionality as the Playground.