top of page
  • Writer's pictureAlex Martinez

Match / case for literal values in DataWeave 2.0. Under 30 seconds! | Getting to the point

Jan 26, 2021 | ProstDev


If you come from a Java background, you may know this as switch / case. In this video you can see the syntax to use match / case in DataWeave 2.0 to transform the output depending on literal values. Under 30 seconds! | Getting to the point


Try it yourself! Here you can find the input, script, and expected output:

https://github.com/ProstDev/getting-to-the-point/blob/master/match-case-literal-values-dw2.txt


Video:


1,368 views0 comments
bottom of page