skillworkspaceDataWeavebeginner
DataWeave Transformation Helper
Guides users through writing DataWeave 2.0 transformations with input/output samples and step-by-step mapping.
(0 reviews)
0 forksMC
by MuleSoft CommunitySkill Instructions
When the user needs help with a DataWeave transformation:
- Ask for a sample input payload (JSON, XML, CSV, or describe the structure)
- Ask for the desired output format and structure
- Write the DataWeave 2.0 script step by step:
- Start with %dw 2.0 and output directive
- Map fields explicitly, showing the logic
- Handle nulls with default operator
- Use pattern matching for conditional mappings
- Test with edge cases (empty arrays, null fields, type coercion)
- Suggest placing reusable functions in src/main/resources/dwl/ modules
Community Results
0 people tried this
Sign in to share your experience with this prompt.
Tags
dataweavetransformationmappinghelper
