skillworkspaceDataWeavebeginner

DataWeave Transformation Helper

Guides users through writing DataWeave 2.0 transformations with input/output samples and step-by-step mapping.

(0 reviews)
0 forks
MC
by MuleSoft Community
Name
dataweave-helper
Description
Guide DataWeave 2.0 transformation writing with input/output samples
Scope
workspace
Activates when
When the user asks to write or debug a DataWeave transformation

Skill Instructions

When the user needs help with a DataWeave transformation:

  1. Ask for a sample input payload (JSON, XML, CSV, or describe the structure)
  2. Ask for the desired output format and structure
  3. 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
  4. Test with edge cases (empty arrays, null fields, type coercion)
  5. 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

Reviews (0)

Sign in to leave a review.

No reviews yet. Be the first to share your experience!

Comments (0)

Sign in to leave a comment.

No comments yet. Be the first to share your thoughts!