Play with brackets () {} [] and Complex If-else conditions It’s very important to understand the bracket available in Dataweave and how smartly we can use to yield different results based on their usage. Over here we play with brackets like () {} and [] to see them in action. Also we will look into…
Read MoreOnline Dataweave Debugging MuleSoft has provided an online Dataweave debugging platform where developers can go and test the Dataweave. We don’t need Anypoint Studio debugging mode to test the Dataweave. https://developer.mulesoft.com/learn/dataweave/playground It has mainly three section Input Explorer – we can add the input payload against which we want to test the Dataweave Script…
Read MoreDataweave Streaming In Mule 4 In this tutorial we will demonstrate how we can use dataweave streaming in mule 4 which is useful to process the large files in quickly without any memory issues which consume less resources compare to old way of reading and writing big documents. Supported Format JSON XML CSV Limitations…
Read MoreDynamic Evaluate In Mule 4 In this tutorial we will demonstrate how can we Select Dataweave(DWL file)dynamically using Dynamic Evaluate In Mule 4. Dynamic evaluate is useful if you wanted to select the dataweave script dynamically out of multiple DWL files on the basis of some conditions passed at runtime. Create a sample…
Read MoreXML processing or parsing XML processing or parsing in Dataweave become somewhat tricky as it depend on the input type of the XML Two type of XML input request we can get Include NameSpace No Namespace Processing of both somewhat get differ in dataweave Let’s start with Namespace first For the namespace…
Read MoreDataweave Tips & Guidelines Dataweave Tips & Guidelines – Here are few tips and best practices which could be useful to consider while writing dataweave. There are plenty of operators in dataweave which can make your life easy while writing complex dataweave transformation. Obviously the list below is not an exhaustive list, but we…
Read MoreReduce Function Reduce function is used to do any computation while iterating on an array, computation result is not lost while iteration. it’s a very helpful function where you have to do computation on some array element. reduce(Array<T>, (item: T, accumulator: T) -> T): T | Null or Array<T> reduce( (item: T, accumulator: T)…
Read MoreConvert String To Array In Dataweave 2.0 To convert string to array you can use SplitBy function of dataweave 2.0 Example 1: Input Hello World Dataweave 2.0 Expression Output Example 2: Input a.b.c.d Dataweave 2.0 Expression Output
Read MoreConvert Array To String In Dataweave 2.0 You can use joinBy Dataweave 2.0 function to convert array to string Example Input: [1,2,3,4,5] Dataweave Expression: Result:
Read MoreInvoke Custom Java Class using Dataweave To Invoke Custom Java Class Using Dataweave, Let’s create a project in Anypoint studio. Create Java Class in Anypoint studio Set the variable value Drag and drop Transform message and write code to invoke java class in Dataweave Dataweave Deploy the project and test …
Read More