MY CONTENT

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

Updated: Aug 24

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:


80 views0 comments