An overview of DataWeave
DataWeave is a proprietary functional programming language framework that is included within the MuleSoft platform to allow developers to define data transformations so that they can map datasets that are in one format into another.
DataWeave is a functional language and as such is different in its structure and operating model than Apex, which is an object-oriented language. It is outside the scope of this book to cover a complete guide to functional programming and its differences compared to object-oriented programming, but the key concepts you should be aware of at a high level are as follows:
- Applications are only composed of functions and variables – there is no concept of an object or class
- Data should be immutable (data is not changed after initialization)
- You can define pure functions that, given the same input, will produce the same output with no side effects (such as changing the global state)
There is a lot more...