<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by SANDEEP ANUMULA on Medium]]></title>
        <description><![CDATA[Stories by SANDEEP ANUMULA on Medium]]></description>
        <link>https://medium.com/@sandeepanumula7?source=rss-57a499250f12------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*94BX4TssvDnXwiEbn31kVA.png</url>
            <title>Stories by SANDEEP ANUMULA on Medium</title>
            <link>https://medium.com/@sandeepanumula7?source=rss-57a499250f12------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 28 May 2026 00:33:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sandeepanumula7/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[DataWeave : Equality operator (~=)]]></title>
            <link>https://medium.com/another-integration-blog/dataweave-equality-operator-fd51879c3a88?source=rss-57a499250f12------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd51879c3a88</guid>
            <category><![CDATA[equality-operators]]></category>
            <category><![CDATA[dataweave]]></category>
            <category><![CDATA[mulesoft]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[SANDEEP ANUMULA]]></dc:creator>
            <pubDate>Tue, 18 Oct 2022 20:13:41 GMT</pubDate>
            <atom:updated>2022-10-18T20:13:41.722Z</atom:updated>
            <content:encoded><![CDATA[<h3>DataWeave : Equality Operator (~=)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jd3DOLLrr41SqoVZ" /></figure><p>When two values have different types, the equality operator forces them to have the same type.</p><p><strong>Use Case :</strong></p><p>The equality operator is beneficial when we need to compare two values of different types.</p><p>The ~= operator evaluates if two values are similar, regardless of their type.</p><p><strong>Example :</strong></p><p>The string “12345” and the number 12345 are<strong> </strong>not the same type<strong> </strong>but they are recognized as similar values.</p><p>At the time of comparison, the converse <strong><em>==</em></strong> operator verifies both the type and value.</p><h3>Code:</h3><p><strong>DataWeave: equality operator (~=)</strong></p><p><strong>Case 1:</strong></p><p><strong>Comparing string with boolean:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LQewZR_bDc-e1ghf11kjSQ.png" /></figure><p><strong>Case 2 :</strong></p><p><strong>Comparing string with number:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*CfZdV5jAiD1AuzfaLEoypw.png" /></figure><p>In choice-router and transform messages, this is most helpful when making decisions.</p><p>Thank you for taking the time to read this post and I hope you found it useful. If you have any questions or topic recommendations, feel free to comment below.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd51879c3a88" width="1" height="1" alt=""><hr><p><a href="https://medium.com/another-integration-blog/dataweave-equality-operator-fd51879c3a88">DataWeave : Equality operator (~=)</a> was originally published in <a href="https://medium.com/another-integration-blog">Another Integration Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DataWeave Function: GroupBy()]]></title>
            <link>https://medium.com/@sandeepanumula7/dataweave-function-groupby-df40cd4ada41?source=rss-57a499250f12------2</link>
            <guid isPermaLink="false">https://medium.com/p/df40cd4ada41</guid>
            <category><![CDATA[mulesoft-esb]]></category>
            <category><![CDATA[mulesoft-professional]]></category>
            <category><![CDATA[mulesoft]]></category>
            <category><![CDATA[mulesoft-online-training]]></category>
            <category><![CDATA[mulesoft-training]]></category>
            <dc:creator><![CDATA[SANDEEP ANUMULA]]></dc:creator>
            <pubDate>Wed, 13 Jul 2022 10:03:03 GMT</pubDate>
            <atom:updated>2022-07-13T10:03:03.866Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Yr_Mjh0_-ffwZZm5zdV7A.png" /></figure><h3>GroupBy():</h3><p>The <a href="https://developer.mulesoft.com/tutorials-and-howtos/dataweave/groupBy-function/"><em>groupBy </em></a>function is useful for grouping together items based on the value which we define.</p><p>The <a href="https://developer.mulesoft.com/tutorials-and-howtos/dataweave/groupBy-function/"><em>groupBy</em></a><em> </em>signature varies depending on the first parameter ((<strong>input</strong>) whether it’s an Array, String, or Object).</p><ol><li>input: <strong>Array</strong></li></ol><p><strong><em>groupBy(Array&lt;T&gt;, ((T, Number) -&gt; R)): Object&lt;(R), Array&lt;T&gt;&gt;</em></strong></p><p>2. input: <strong>String</strong></p><p><strong><em>groupBy(String, ((String, Number) -&gt; R)): Object&lt;(R), String&gt;</em></strong></p><p>3. input: <strong>Object</strong></p><p><strong><em>groupBy(Object&lt;(K), T&gt;, ((V, K) -&gt; R)): Object&lt;(R), Object&lt;(K), V&gt;&gt;</em></strong></p><pre><em>Note : groupBy does not return an Array or any of the given input values. It always returns an Object.</em></pre><p><strong>Array as Input</strong></p><ol><li>Example:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*pkhmWXxAEeoQDfHzZQX5Yg.png" /></figure><p><strong>similar syntax using $</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*lLAKMn8JfnGg3l38WHUIgA.png" /></figure><p>In above image we are applying groupBy function on an array.</p><p><strong>condition</strong>: group the values based on the <a href="https://docs.mulesoft.com/dataweave/2.4/dw-core-functions-mod"><em>mod </em></a>function.</p><p>2.Example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w17s-sl4ZP-xFuYmDX__bA.png" /></figure><p><strong>similar syntax using $,$$</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BIfharUuObhcmxJQ7R99xQ.png" /></figure><p>In the above image we are applying groupBy function on Array of json object</p><p>and the we are grouping the data based on ids.</p><p><strong>String as Input</strong></p><ol><li>Example:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FjGHbbr1OjLTrDYJPy2qhg.png" /></figure><p><strong>similar syntax using $,$$</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*FkCyzf1oyDZW3AiUm-L42Q.png" /></figure><p>the logic passed to <em>groupBy </em>takes in a <strong>character</strong> from the input String and the <strong>index</strong> of that character. It returns a value that is used to determine the group to which the character belongs. Characters that return the same value belong to the same group. Here’s an example that groups letters based on whether they’re upper or not.</p><p><strong>Object as Input</strong></p><ol><li>Example:</li></ol><p>The logic passed to <em>groupBy </em>takes in a <strong>value</strong> from the input Object and the <strong>key</strong> of that value. It returns a value that is used to determine the group to which the key/value pair belongs.</p><p>Here’s an example that groups key/value pairs based on their value. The Key represents an states (Chicago, Delhi, etc.) and the Value represents their Countries (India, US, Japan and Russia).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*r2WyBCNoCnCWGBPRoCx1Ww.png" /></figure><p><strong>similar syntax using $</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*HIy9INwPz5DiHcIFqhwfGg.png" /></figure><p><em>Thank you for taking out time to read the above post. Hope you found it useful. In case of any questions, feel free to comment below. Also, if you are keen on knowing about a specific topic, happy to explore your recommendations as well.</em></p><p>#mulesoft #dataweave #dw #anypointstudio #mule #muleEsb #groupBy#groupBy()</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df40cd4ada41" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DataWeave : filterObject()]]></title>
            <link>https://medium.com/@sandeepanumula7/dataweave-filterobject-1589a471b04d?source=rss-57a499250f12------2</link>
            <guid isPermaLink="false">https://medium.com/p/1589a471b04d</guid>
            <dc:creator><![CDATA[SANDEEP ANUMULA]]></dc:creator>
            <pubDate>Tue, 15 Mar 2022 06:01:12 GMT</pubDate>
            <atom:updated>2022-03-15T06:03:41.105Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_jJAZwPAIJulZom8G3R2UQ.png" /></figure><h3>DataWeave : filterObject()</h3><h3>filterObject () :</h3><p>filterObject always works on Objects. It Iterates over key-value pairs in an object and applies a conditional expression that returns only matching key value pairs, filtering out the unmatched key value pairs.</p><p>The conditional expression must return true or false. If the expression returns true for a key, value, or index of an object, the object gets in the output.</p><p>If it returns false for any of them, the object gets filtered out of the output. If there are no matches, the output array will be empty.</p><pre>Note : Whenever we are applying filterObject function other than the Objects and null, we get the exception</pre><p><strong>filterObject (Object, (Value,Key,index) -&gt; Object): Object</strong></p><p><strong>Value(default $): </strong>it represents the <strong>value </strong>part of a key-value pair in an object</p><p><strong>Example :</strong></p><p>In the below image we are applying filterObject</p><p><strong>condition: </strong>filtering key-value pairs with values starts with “N” character</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LCoOotSOxChbFdlU" /></figure><p>with default syntax :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/0*n4tlPdhppn6B4odN" /></figure><p><strong>Key(default $$) :</strong> it represents the <strong>key</strong> part of a key-value pair in an object</p><p><strong>Example :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4jBHJTpHH-Tkju47" /></figure><p>with default syntax :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/0*0vTs86Hl_LEdmGaj" /></figure><p><strong>Index(default $$$) :</strong> it represents the <strong>Index</strong> part of a key-value pair in an object</p><p><strong>Example :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/0*XYvGFwb4lAmay8sD" /></figure><p>with default syntax :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/0*fD8lT_Hh0Vi_kuc4" /></figure><p><strong>When input is null:</strong></p><p>filterObject gives null as output when input is null</p><p><strong>Example:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/0*IzPgCYmPJLOxXb8v" /></figure><p><strong>Exception case:</strong></p><p>Here we got an error while applying filterObject on an Array</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-35I1R3efUGwggmV" /></figure><p><em>Thank you for taking out time to read the above post. Hope you found it useful. In case of any questions, feel free to comment below. Also, if you are keen on knowing about a specific topic, happy to explore your recommendations as well.</em></p><p>#mulesoft #dataweave #dw #anypointstudio #mule #muleEsb #filterObject #filterObject ()</p><p><em>Originally published at </em><a href="https://dw.hashnode.dev/dataweave-filterobject"><em>https://dw.hashnode.dev</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1589a471b04d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DataWeave : mapObject()]]></title>
            <link>https://medium.com/@sandeepanumula7/dataweave-mapobject-7effa7df9797?source=rss-57a499250f12------2</link>
            <guid isPermaLink="false">https://medium.com/p/7effa7df9797</guid>
            <dc:creator><![CDATA[SANDEEP ANUMULA]]></dc:creator>
            <pubDate>Thu, 10 Mar 2022 03:36:23 GMT</pubDate>
            <atom:updated>2022-03-10T03:36:23.932Z</atom:updated>
            <content:encoded><![CDATA[<h3>DataWeave : mapObject()</h3><h3>mapObject() :</h3><p>It transforms an Object to a new Object. mapObject is used when we want to change the keys and/or values on an Object to be a different object.</p><p>It does this by iterating over each key/value pair in the object and applying a transformation to each key and value. The result of the transformation is collected together and output as an object.</p><pre>Note : Whenever we are applying mapObject function other than the Objects, we get the exception</pre><p><strong>mapObject(Object, (Value,Key,index) -&gt; Object): Object</strong></p><p><strong>Value(default $): </strong>it represents the value part of a key-value pair in an object</p><p><strong>Example :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/233/0*SKQqkTyTUH88M0gC" /></figure><p>In the above image <strong>James Peter </strong>belongs to <strong>Value(default $)</strong> part</p><p><strong>Example :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/0*gjDVSn5Yn7kZlQHJ" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/0*h3qNXsue--T6tz5x" /></figure><p><strong>Key(default $$) :</strong> it represents the key part of a key-value pair in an object<strong> Example :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/221/0*ZdIV5s4CCvDrKAiz" /></figure><p><strong>Example :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/0*_K2ti3aRoTNtE47B" /></figure><p><strong>Example :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/0*lhavv2fKYdxfPZZc" /></figure><p><strong>Exception case:</strong></p><p>In the above image <strong>name </strong>belongs to <strong>Key(default $$)</strong> part</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/0*e4ttoIXpkgWzAaIK" /></figure><p><em>Thank you for taking out time to read the above post. Hope you found it useful. In case of any questions, feel free to comment below. Also, if you are keen on knowing about a specific topic, happy to explore your recommendations as well.</em></p><p><strong>index(default $$$) :</strong> it represents the position part of a key-value pair in an object</p><p>Here we got an error while applying mapObject on an Array</p><p>#mulesoft #dataweave #dw #anypointstudio #mule #muleEsb #mapObject#mapObject()</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7effa7df9797" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DataWeave : map()]]></title>
            <link>https://medium.com/@sandeepanumula7/dataweave-map-cd60bed6923d?source=rss-57a499250f12------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd60bed6923d</guid>
            <dc:creator><![CDATA[SANDEEP ANUMULA]]></dc:creator>
            <pubDate>Mon, 07 Mar 2022 09:30:02 GMT</pubDate>
            <atom:updated>2022-03-07T09:30:02.659Z</atom:updated>
            <content:encoded><![CDATA[<h3>DataWeave : map()</h3><h3>map() :</h3><p>The map is a function in Dataweave which iterates over the items in an array and outputs them into a new array.</p><p><strong>map(item,index) :</strong></p><p><strong>item (default $): </strong>it represents the element in the input array list.</p><p><strong>index (default $$) : </strong>it represents the position of the element the input array list.</p><blockquote><strong><em>map function is only applicable for an arrays</em></strong></blockquote><p>It basically accepts input as a list of items in an array and transforms the items in the array in order to form a new array as an output.</p><p><strong>Example 1:</strong></p><p>multiplying item with it’s index:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/0*uJeeaUuGfCHVTetI" /></figure><p><strong>Example 2:</strong></p><p>iterating with default symbols ($,$$)</p><p>ex1 :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/0*jNf2CzAb8diJ7MsA" /></figure><p>ex2:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/0*wnZ143uCGNpreVMO" /></figure><p><strong>Example 3 :</strong></p><p>transforming employee data:<br>condition 1: employee id as key.<br>condition 2: value is combination of first and last name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/0*gQSdWjCHNSPOxs-b" /></figure><pre>Note : Whenever we are applying map function other than an arrays we get the exception</pre><p><strong>Example 4:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/0*BF2uIrf_FrYvWm0Y" /></figure><p><em>Thank you for taking out time to read the above post. Hope you found it useful. In case of any questions, feel free to comment below. Also, if you are keen on knowing about a specific topic, happy to explore your recommendations as well.</em></p><p>#mulesoft #dataweave #dw #anypointstudio #mule #muleEsb #map#map()</p><p><em>Originally published at </em><a href="https://dw.hashnode.dev/dataweave-map"><em>https://dw.hashnode.dev</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd60bed6923d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>