<?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 Kiran on Medium]]></title>
        <description><![CDATA[Stories by Kiran on Medium]]></description>
        <link>https://medium.com/@kirankry?source=rss-d789359809df------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Kiran on Medium</title>
            <link>https://medium.com/@kirankry?source=rss-d789359809df------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 04:25:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kirankry/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[To capture the total number of vCores utilized in Anypoint Platform based on business units (e.g.,]]></title>
            <link>https://medium.com/@kirankry/to-capture-the-total-number-of-vcores-utilized-in-anypoint-platform-based-on-business-units-e-g-b4042e3cdd01?source=rss-d789359809df------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4042e3cdd01</guid>
            <category><![CDATA[mulesoft]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[anypoint-platform]]></category>
            <category><![CDATA[integration]]></category>
            <category><![CDATA[dataweave]]></category>
            <dc:creator><![CDATA[Kiran]]></dc:creator>
            <pubDate>Tue, 08 Oct 2024 09:42:15 GMT</pubDate>
            <atom:updated>2024-10-09T04:59:59.691Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong><em>vCore — MuleSoft Integration Dashboard</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*434UQeTNJHzEj4m-NT0Kug.png" /></figure><p><em>To capture the total number of vCores utilized in Anypoint Platform based on business units (e.g., Sales, Marketing, Supply Chain, etc.), we have developed a customized dashboard. This dashboard was created using a front-end interface along with MuleSoft and Anypoint Platform API.</em></p><p>Anypoint Platform API details given below.</p><p><a href="https://www.postman.com/salesforce-developers/salesforce-developers/request/9tn6gcv/login-anypoint-platform-with-username-password-deprecated-works-by-exempt-users-only">Login Anypoint Platform with Username/Password (Deprecated: works by Exempt users only) | Salesforce Developers</a></p><h3>Step 1: Develop the Front-End Interface</h3><p>Begin by creating the front-end of your application using technologies like HTML, CSS, and JavaScript, or frameworks such as React, Angular, or Vue.js. This interface will serve as the user-friendly layer that interacts with your back-end APIs.</p><p>The front end includes features such as sorting, downloading data as an Excel file, and displaying graphs that compare vCore usage for each business unit between production and non-production environments. Sorting functionality is available for each column, allowing users to easily organize data as needed.</p><p>The frontend code can be found in the vcore-web-api directory under src/main/resources/web.</p><h3>Step 2: Build and Deploy the API to CloudHub</h3><p>Next, design and develop your API using MuleSoft’s Anypoint Studio. Once the API is ready and tested locally, deploy it to <strong>CloudHub</strong>. After deployment, retrieve the API URL from CloudHub and integrate it with your front-end, allowing seamless communication between the UI and the backend.</p><p>The GitHub repositories listed below are provided for your reference.</p><ul><li><a href="https://github.com/kkyreddy1/vcore-web-api">GitHub - kkyreddy1/vcore-web-api</a></li><li><a href="https://github.com/kkyreddy1/vcore-dashboard-api">GitHub - kkyreddy1/vcore-dashboard-api</a></li></ul><h3>Step 3: Deploy Sample APIs for Business Units</h3><p>Create sample APIs for key business units such as <strong>Sales</strong>, <strong>Marketing</strong>, and <strong>Supply Chain</strong>. Deploy these APIs to both <strong>Production</strong> and <strong>Non-Production</strong> environments, ensuring each environment is properly configured for its specific use case and requirements.</p><p>This approach lays the foundation for a robust integration solution, leveraging MuleSoft and CloudHub to connect your front-end with multiple back-end services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kh5K1VOvWAql9H7JvpMn5g.png" /><figcaption>Prod vCore</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FEjYJtM0DxQRbqFVEn2y2w.png" /><figcaption>Non-Prod vCore</figcaption></figure><p>The output should present data for each business unit individually, as well as a combined view of all business units. This would include:</p><ul><li><strong>Graphs</strong> that visualize vCore usage in both production and non-production environments.</li><li><strong>Sortable tables</strong> for each business unit, with columns that allow easy sorting.</li><li><strong>Excel download</strong> functionality for each unit, as well as for the combined data of all business units.</li></ul><p>This comprehensive view helps to analyze vCore usage efficiently across different departments.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F87DO2OoPf6Y&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D87DO2OoPf6Y&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=google" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/6b483c8d7472c15c1c415304267a00ae/href">https://medium.com/media/6b483c8d7472c15c1c415304267a00ae/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*otmZDLISaynoXQ80qQL7wg.png" /><figcaption>All Bu’s</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*yEz6aKhT3neCIiuHdf0l9w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1zeRubKBlxfazYWx_-nrKQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*osng4aCIKmhz0mii0jLq6w.png" /><figcaption>Sales</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QmKXK4CwSyTS2vQcfTkxig.png" /><figcaption>Marketing</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gkne7jJ-2-ubkTWxi96h7A.png" /><figcaption>Supply Chain</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4042e3cdd01" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Whack-a-Mole Game Integration with Mule 4: A Fun Journey into API-Land]]></title>
            <link>https://medium.com/@kirankry/whack-a-mole-game-integration-with-mule-4-a-fun-journey-into-api-land-41b14fdfa125?source=rss-d789359809df------2</link>
            <guid isPermaLink="false">https://medium.com/p/41b14fdfa125</guid>
            <category><![CDATA[html]]></category>
            <category><![CDATA[mulesoft]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Kiran]]></dc:creator>
            <pubDate>Fri, 29 Sep 2023 08:00:18 GMT</pubDate>
            <atom:updated>2023-09-29T08:00:18.213Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Whack-a-Mole Game Integration with Mule 4: A Fun Journey into API-Land</em></strong></p><p>we are developing a fun game with<strong> HTML and MULE 4</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CJPrFMkmEld_R8xM" /></figure><p><em>we know what integration do correct? so what else to do? let&#39;s make fun with it.</em></p><p><em>Creating sample game, the name of the game is Whack-a-Mole so what is that? it is just a fun game to play with it.</em></p><p><strong>Segments Encompassed</strong></p><p>1. Develop the game code using HTML and JavaScript</p><p>2. Integrate the game code with Mule4.</p><p><em>Whack-a-Mole HTML and JavaScript code</em></p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot;&gt;<br>    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;<br>    &lt;title&gt;Whack-a-Mole Game&lt;/title&gt;<br>    &lt;style&gt;<br>        body {<br>            font-family: &#39;Arial&#39;, sans-serif;<br>            display: flex;<br>            flex-direction: column;<br>            align-items: center;<br>            justify-content: center;<br>            height: 100vh;<br>            margin: 0;<br>            background-color: #87CEEB;<br>        }<br><br>        #score {<br>            font-size: 24px;<br>            margin-bottom: 20px;<br>        }<br><br>        #timer {<br>            font-size: 20px;<br>            margin-bottom: 10px;<br>            color: #000; /* Initial color */<br>            transition: color 0.5s ease-in-out; /* Transition for color change */<br>        }<br><br>        #gameContainer {<br>            position: relative;<br>            width: 400px;<br>            height: 300px;<br>            border: 2px solid #333;<br>            overflow: hidden;<br>        }<br><br>        .heart {<br>            position: absolute;<br>            width: 50px;<br>            height: 50px;<br>            background-color: black; /* Set mole color to black */<br>            border-radius: 50%;<br>            cursor: pointer;<br>            display: flex;<br>            justify-content: center;<br>            align-items: center;<br>            font-size: 20px;<br>            color: #fff;<br>            user-select: none;<br>            transition: transform 0.1s ease-in-out;<br>        }<br><br>        @keyframes moveUp {<br>            0% {<br>                transform: translateY(100%);<br>            }<br>            100% {<br>                transform: translateY(0);<br>            }<br>        }<br><br>        #gameOver {<br>            display: none;<br>            font-size: 24px;<br>            color: red;<br>            transition: opacity 1s ease-out;<br>        }<br><br>        #gameOver.fade-out {<br>            opacity: 0;<br>        }<br>    &lt;/style&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>    &lt;h1&gt;Whack-a-Mole Game&lt;/h1&gt;<br><br>    &lt;p id=&quot;score&quot;&gt;Score: &lt;span id=&quot;scoreValue&quot;&gt;0&lt;/span&gt;&lt;/p&gt;<br><br>    &lt;div id=&quot;timer&quot;&gt;Time remaining: &lt;span id=&quot;timeValue&quot;&gt;30&lt;/span&gt; seconds&lt;/div&gt;<br><br>    &lt;div id=&quot;gameContainer&quot;&gt;<br>        &lt;!-- Moles will be dynamically added here --&gt;<br>    &lt;/div&gt;<br><br>    &lt;p id=&quot;gameOver&quot;&gt;Game Over!&lt;/p&gt;<br><br>    &lt;script&gt;<br>        let score = 0;<br>        let timeRemaining = 30; // Initial time (in seconds)<br>        let isGameOver = false;<br>        const gameContainer = document.getElementById(&#39;gameContainer&#39;);<br>        const scoreValue = document.getElementById(&#39;scoreValue&#39;);<br>        const timeValue = document.getElementById(&#39;timeValue&#39;);<br>        const timerDisplay = document.getElementById(&#39;timer&#39;);<br>        const gameOverMessage = document.getElementById(&#39;gameOver&#39;);<br>        let maxMoles = 5; // Maximum number of moles on the screen<br><br>        function startGame() {<br>            // Clear previous moles and reset variables<br>            gameContainer.innerHTML = &#39;&#39;;<br>            score = 0;<br>            timeRemaining = 30; // Reset time<br>            isGameOver = false;<br>            updateScore();<br>            updateTimer();<br><br>            // Start generating moles<br>            const moleGenerator = setInterval(() =&gt; {<br>                if (!isGameOver) {<br>                    generateMoles(maxMoles);<br>                } else {<br>                    clearInterval(moleGenerator);<br>                }<br>            }, 1000);<br><br>            // Set a timer for the game duration (e.g., 30 seconds)<br>            const gameTimer = setInterval(() =&gt; {<br>                if (timeRemaining &gt; 0) {<br>                    timeRemaining--;<br>                    updateTimer();<br>                } else {<br>                    endGame();<br>                    clearInterval(gameTimer);<br>                }<br>            }, 1000);<br>        }<br><br>        function generateMoles(count) {<br>            for (let i = 0; i &lt; count; i++) {<br>                generateMole();<br>            }<br>        }<br><br>        function generateMole() {<br>            if (isGameOver) {<br>                return;<br>            }<br><br>            const mole = document.createElement(&#39;div&#39;);<br>            mole.className = &#39;heart&#39;; // Use class name for styling<br>            mole.innerHTML = &#39;❤️KIRAAN REDDY&#39;; // Include heart symbol in the content<br>            mole.addEventListener(&#39;click&#39;, () =&gt; {<br>                if (!isGameOver) {<br>                    // Whack the mole and update the score<br>                    whackMole(mole);<br>                }<br>            });<br><br>            gameContainer.appendChild(mole);<br><br>            // Randomly position the mole<br>            const posX = Math.random() * (gameContainer.clientWidth - mole.clientWidth);<br>            const posY = Math.random() * (gameContainer.clientHeight - mole.clientHeight);<br>            mole.style.left = `${posX}px`;<br>            mole.style.top = `${posY}px`;<br><br>            // Animate the mole (move up from bottom)<br>            mole.style.animation = &#39;moveUp 1s ease-out&#39;;<br><br>            // Remove the mole after animation<br>            setTimeout(() =&gt; {<br>                if (!isGameOver) {<br>                    gameContainer.removeChild(mole);<br>                }<br>            }, 1000);<br>        }<br><br>        function whackMole(mole) {<br>            // Increment the score and update the display<br>            score++;<br>            updateScore();<br><br>            // Remove the mole<br>            gameContainer.removeChild(mole);<br>        }<br><br>        function endGame() {<br>            isGameOver = true;<br><br>            // Display game-over message with fade-out effect<br>            gameOverMessage.style.display = &#39;block&#39;;<br>            setTimeout(() =&gt; {<br>                gameOverMessage.classList.add(&#39;fade-out&#39;);<br>            }, 1000);<br><br>            // Clear the game container<br>            gameContainer.innerHTML = &#39;&#39;;<br>        }<br><br>        function updateScore() {<br>            scoreValue.innerText = score;<br>        }<br><br>        function updateTimer() {<br>            timeValue.innerText = timeRemaining;<br><br>            // Flashing effect and color change when time is between 10 and 0 seconds<br>            if (timeRemaining &lt;= 10 &amp;&amp; timeRemaining &gt; 0) {<br>                timerDisplay.style.color = (timeRemaining % 2 === 0) ? &#39;red&#39; : &#39;black&#39;;<br>            } else {<br>                timerDisplay.style.color = &#39;black&#39;; // Reset color to black<br>            }<br>        }<br>    &lt;/script&gt;<br><br>    &lt;button onclick=&quot;startGame()&quot;&gt;Start Game&lt;/button&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><blockquote>the above code will generate the random moles displayed on the container and time is 30seconds to do max score. each hit will count the score.</blockquote><p><strong>Mule Code</strong></p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><ol><li>We will save the above whack-a-mole HTML &amp; JS code in .html format in src/main/resources/web/whack-a-mole.html.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Oaqye91eSjXK-70eH_K-0A.png" /></figure><p>2. use component called <strong><em>Static Resource</em></strong> or <strong><em>Parse Template</em></strong> from Mule Palette. and do the configuration as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X2KnGHLU2v4OHVFjuq4p9Q.png" /></figure><p>Now run the mule code in local as my end point is <strong><em>/whack-a-mole</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o9LjtBsx40N_5GVSkGzC7w.png" /></figure><blockquote>call the api from postman but you can preview but can’t run the game as shown in below. so you can open it in chrome/edge browser to play with it.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rTqGgPthekZEm7mYeSv0MA.png" /></figure><p>let’s run the same in chrome browser and play with it.</p><p>URL is <a href="http://localhost:8081/whack-a-mole"><em>http://localhost:8081/whack-a-mole</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ek_RxfFmeIImMEB87sfOMg.png" /></figure><p>After you clicking the Start Game you will get the Moles displayed randomly. and after you HIT the mole score will count time is 30sec.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rj2ZWXEbdCGagEPzIGEAMA.png" /></figure><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p>Happy Learning! Please do follow if you like the content.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41b14fdfa125" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python code execution in Mulesoft]]></title>
            <link>https://medium.com/@kirankry/python-code-execution-in-mulesoft-f083f63aeeee?source=rss-d789359809df------2</link>
            <guid isPermaLink="false">https://medium.com/p/f083f63aeeee</guid>
            <category><![CDATA[mulesoft]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Kiran]]></dc:creator>
            <pubDate>Sat, 05 Aug 2023 12:31:42 GMT</pubDate>
            <atom:updated>2023-08-05T12:35:17.152Z</atom:updated>
            <content:encoded><![CDATA[<p><em>the name python evolving in the recent IT market. so we should see some basic example to run python code in MuleSoft.</em></p><p>it’s very simple.. yes we have to use <strong>execute</strong> componet.</p><ol><li>you should just create basic flow in AnypointStudio as shown below.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/1*Lo7hZ8v_3jnmPS9WZJyM0w.png" /></figure><p>2. In the execute component we can write python code what ever the logic as per the requirement but that should not be a good practice so we should create a file under <strong>/src/main/resource with .py extension</strong>. in side this file you can write the python logic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*HehiyIb3EuPQuKfgceKjww.png" /><figcaption>Fig. Engine</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*pK_E_i8AFzakbbiB9gnozA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*1y0aLNEZY-G7Wm9IR4QFXA.png" /></figure><pre>num = 12<br>for i in range(1, 11):<br>   print(num, &#39;x&#39;, i, &#39;=&#39;, num*i)</pre><p>3. that shouldn’t work, to make your code to run do the follow steps before run the code.</p><p>add the below code in pom.xml</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4TF2KQ4oMLT2mTRhtgL-ZQ.png" /></figure><pre>   &lt;configuration&gt;<br>    &lt;sharedLibraries&gt;<br>     &lt;sharedLibrary&gt;<br>      &lt;groupId&gt;org.python&lt;/groupId&gt;<br>      &lt;artifactId&gt;jython-standalone&lt;/artifactId&gt;<br>     &lt;/sharedLibrary&gt;<br>    &lt;/sharedLibraries&gt;<br>   &lt;/configuration&gt;    <br>   &lt;/plugin&gt;<br><br>  &lt;/plugins&gt;<br> &lt;/build&gt;<br><br> &lt;dependencies&gt;<br>  &lt;dependency&gt;<br>   &lt;groupId&gt;org.python&lt;/groupId&gt;<br>   &lt;artifactId&gt;jython-standalone&lt;/artifactId&gt;<br>   &lt;version&gt;2.7.2&lt;/version&gt;<br>  &lt;/dependency&gt;</pre><p>once you add the above logic in pom.xml you should be able to see the <strong>Engine as Jython</strong> so this should run your python code.</p><p>4. Let’s deploy the code and see the output. remember the python output should be visible in <strong>console</strong> Anypoint Studio.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1IZpc54fvIBxymZ6RFvRwg.png" /></figure><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p>Now let’s run the python code without creating any file under /src/main/resources. means write the code as below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*WmiEKypZCjjl9TSrTfJbuw.png" /></figure><p>Run the code and see the output in console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7DpcMWEyxW2LH07tM3o-7w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f083f63aeeee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to deploy 2 or more mule applications in Anypoint studio at a time.]]></title>
            <link>https://medium.com/@kirankry/how-to-deploy-2-or-more-mule-applications-in-anypoint-studio-at-a-time-bc685d727394?source=rss-d789359809df------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc685d727394</guid>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[mulesoft]]></category>
            <category><![CDATA[mulesoft-training]]></category>
            <category><![CDATA[mule4]]></category>
            <dc:creator><![CDATA[Kiran]]></dc:creator>
            <pubDate>Mon, 24 Jul 2023 03:11:55 GMT</pubDate>
            <atom:updated>2023-12-19T07:48:13.419Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>How to deploy 2 or more mule applications in Anypoint studio at a time.</strong></p><p>we all know API led architecture means- System,Process&amp;Experience layers.</p><p>Here as an example we are taking 2 applications. one as System API and other is Process API.</p><p><strong>Process API calling → System API.</strong></p><p>create 2 application in any point studio 1st one sys-api 2nd as prc-api.</p><ol><li>in this example, end point of process api is /prc and port number is 8081.</li></ol><p>2. prc-api as looks like below and we are configuring the resource or end point of system api in this flow to call sys-api.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RSbJMHTA6sdewoewUL3oMw.png" /></figure><p>in system api the listener configuration path would be /testsys and port number should be 8082.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DzUquWY2RyRR2njAhcMyrw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*-Rxa_KpRVUc8IPjp3LaooQ.png" /></figure><p>Now deployment part.</p><p>To deploy both at once you should click on Run Configurations…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*MAWfABQeDHtIY5eMzyO_Cg.png" /></figure><p>you can select which application want to deploy as shown below and click run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*92LlQDju0ypL6Cko9Fw7GA.png" /></figure><p>after clicking run you could see the below in console</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZA8R1NrCU9QZrLYMgvDb9g.png" /></figure><p>Both application’s deployed.you can call system api by calling process api.</p><p>hit process api and test it locally</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p6YJnunlzd04_K_xmfqnIw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc685d727394" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[QR code generator using Mulesoft]]></title>
            <link>https://medium.com/@kirankry/qr-code-generator-using-mulesoft-f491312c4e61?source=rss-d789359809df------2</link>
            <guid isPermaLink="false">https://medium.com/p/f491312c4e61</guid>
            <category><![CDATA[qr-code-scan]]></category>
            <category><![CDATA[mulesoft]]></category>
            <category><![CDATA[mule4]]></category>
            <category><![CDATA[integration]]></category>
            <dc:creator><![CDATA[Kiran]]></dc:creator>
            <pubDate>Fri, 21 Jul 2023 10:10:06 GMT</pubDate>
            <atom:updated>2023-07-21T10:13:40.915Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>QR code generator using Mulesoft</strong></p><p>Here we going to discuss about QR code generator using mule4.</p><p>Create sample application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-DQE1EzKiTUD3Dvt" /><figcaption>Photo by <a href="https://unsplash.com/@markuswinkler?utm_source=medium&amp;utm_medium=referral">Markus Winkler</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*OCL__LjNopnpBxCGzzXJjg.png" /></figure><p>In the <strong>transform message</strong> component add the below snippet.</p><pre>%dw 2.0<br>import java!com::utils::GenerateQrCode<br>import * from dw::core::Binaries<br>output image/png with binary<br>var data = payload<br>//Set Height and Width of QR Code in px<br>var heightOfQR = 300<br>var widthOfQR = 300<br>---<br>//Calling Java Code to get Respective QR Code for String<br>fromBase64(GenerateQrCode::generateQRcode(data,heightOfQR,widthOfQR)) as Binary</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*fFrtqlmfPlptVHJXXhvnnQ.png" /></figure><p>In the above snippet if you could observe we are calling java code. put below code in src/main/java/</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OaAPw-zSD_j4rHGyGwIQhQ.png" /></figure><pre>package com.utils;<br>import java.io.ByteArrayOutputStream;<br>import java.io.IOException;<br>import java.util.Base64;<br>import javax.imageio.ImageIO;<br>import com.google.zxing.BarcodeFormat;<br>import com.google.zxing.MultiFormatWriter;<br>import com.google.zxing.WriterException;<br>import com.google.zxing.client.j2se.MatrixToImageWriter;<br>import com.google.zxing.common.BitMatrix;<br><br><br>public class GenerateQrCode {<br>//static function that creates QR Code<br>public static String generateQRcode(String data, int heightOfQR, int widthOfQR) throws WriterException, IOException<br>{<br>    String charset = &quot;UTF-8&quot;;<br>    //the BitMatrix class represents the 2D matrix of bits<br>    //MultiFormatWriter is a factory class that finds the appropriate Writer subclass for the BarcodeFormat requested and encodes the barcode with the supplied contents.<br>    BitMatrix matrix = new MultiFormatWriter().encode(new String(data.getBytes(charset), charset), BarcodeFormat.QR_CODE, widthOfQR, heightOfQR);<br>    <br>    //System.out.print( MatrixToImageWriter.toBufferedImage(matrix));<br>    <br>    //Converting BitMatrix to PNG<br>    String imageString = null;<br>    ByteArrayOutputStream bos = new ByteArrayOutputStream();<br>    try {<br>    ImageIO.write(MatrixToImageWriter.toBufferedImage(matrix), &quot;png&quot;, bos);<br>    byte[] imageBytes = bos.toByteArray();<br>    <br>    //Convert PNG to Base64 String<br>    Base64.Encoder encoder = Base64.getEncoder();<br>    imageString = encoder.encodeToString(imageBytes);<br>    bos.close();<br>    } catch (IOException e) { e.printStackTrace(); }<br>    <br>    //Return Base64 String to Calling Function<br>    return imageString;<br>    }  <br>};<br>/*public class GenerateQrCode {<br><br>}*/</pre><p>now deploy the application locally and test it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*53ev8qi7oMJYAf_xSqs5bg.png" /><figcaption>QR code generator for above text (https://medium.com/@kirankry)</figcaption></figure><p><strong>scan it and follow me for more updates.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f491312c4e61" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dataweave: filter the data using filter and match case functions]]></title>
            <link>https://medium.com/@kirankry/dataweave-filter-the-data-using-filter-and-match-case-functions-61f1f76f3280?source=rss-d789359809df------2</link>
            <guid isPermaLink="false">https://medium.com/p/61f1f76f3280</guid>
            <category><![CDATA[mulesoft]]></category>
            <category><![CDATA[dataweave]]></category>
            <dc:creator><![CDATA[Kiran]]></dc:creator>
            <pubDate>Wed, 19 Jul 2023 05:24:57 GMT</pubDate>
            <atom:updated>2023-07-19T05:24:57.039Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Dataweave: filter the data using filter and match case functions</strong></p><p><em>Let’s consider an example how we can filter the data from March[YYYY]-April[YYYY].</em></p><p>input is:</p><pre>[<br>  {&quot;Month&quot;: &quot;Jan&quot;, &quot;Year&quot;: &quot;2022&quot;, &quot;Event&quot;: &quot;Event 1&quot;},<br>  {&quot;Month&quot;: &quot;Feb&quot;, &quot;Year&quot;: &quot;2022&quot;, &quot;Event&quot;: &quot;Event 2&quot;},<br>  {&quot;Month&quot;: &quot;Mar&quot;, &quot;Year&quot;: &quot;2022&quot;, &quot;Event&quot;: &quot;Event 3&quot;},<br>  {&quot;Month&quot;: &quot;Apr&quot;, &quot;Year&quot;: &quot;2022&quot;, &quot;Event&quot;: &quot;Event 4&quot;},<br>  {&quot;Month&quot;: &quot;May&quot;, &quot;Year&quot;: &quot;2022&quot;, &quot;Event&quot;: &quot;Event 5&quot;},<br>  {&quot;Month&quot;: &quot;Jun&quot;, &quot;Year&quot;: &quot;2022&quot;, &quot;Event&quot;: &quot;Event 6&quot;},<br>  {&quot;Month&quot;: &quot;Jul&quot;, &quot;Year&quot;: &quot;2022&quot;, &quot;Event&quot;: &quot;Event 7&quot;},<br>  {&quot;Month&quot;: &quot;Aug&quot;, &quot;Year&quot;: &quot;2022&quot;, &quot;Event&quot;: &quot;Event 8&quot;},<br>  {&quot;Month&quot;: &quot;Sep&quot;, &quot;Year&quot;: &quot;2022&quot;, &quot;Event&quot;: &quot;Event 9&quot;},<br>  {&quot;Month&quot;: &quot;Oct&quot;, &quot;Year&quot;: &quot;2022&quot;, &quot;Event&quot;: &quot;Event 10&quot;},<br>  {&quot;Month&quot;: &quot;Nov&quot;, &quot;Year&quot;: &quot;2022&quot;, &quot;Event&quot;: &quot;Event 11&quot;},<br>  {&quot;Month&quot;: &quot;Dec&quot;, &quot;Year&quot;: &quot;2022&quot;, &quot;Event&quot;: &quot;Event 12&quot;},<br>  {&quot;Month&quot;: &quot;Jan&quot;, &quot;Year&quot;: &quot;2023&quot;, &quot;Event&quot;: &quot;Event 13&quot;},<br>  {&quot;Month&quot;: &quot;Feb&quot;, &quot;Year&quot;: &quot;2023&quot;, &quot;Event&quot;: &quot;Event 14&quot;},<br>  {&quot;Month&quot;: &quot;Mar&quot;, &quot;Year&quot;: &quot;2023&quot;, &quot;Event&quot;: &quot;Event 15&quot;},<br>  {&quot;Month&quot;: &quot;Apr&quot;, &quot;Year&quot;: &quot;2023&quot;, &quot;Event&quot;: &quot;Event 16&quot;},<br>  {&quot;Month&quot;: &quot;May&quot;, &quot;Year&quot;: &quot;2023&quot;, &quot;Event&quot;: &quot;Event 17&quot;},<br>  {&quot;Month&quot;: &quot;Jun&quot;, &quot;Year&quot;: &quot;2023&quot;, &quot;Event&quot;: &quot;Event 18&quot;},<br>  {&quot;Month&quot;: &quot;Jul&quot;, &quot;Year&quot;: &quot;2023&quot;, &quot;Event&quot;: &quot;Event 19&quot;},<br>  {&quot;Month&quot;: &quot;Aug&quot;, &quot;Year&quot;: &quot;2023&quot;, &quot;Event&quot;: &quot;Event 20&quot;},<br>  {&quot;Month&quot;: &quot;Sep&quot;, &quot;Year&quot;: &quot;2023&quot;, &quot;Event&quot;: &quot;Event 21&quot;},<br>  {&quot;Month&quot;: &quot;Oct&quot;, &quot;Year&quot;: &quot;2023&quot;, &quot;Event&quot;: &quot;Event 22&quot;},<br>  {&quot;Month&quot;: &quot;Nov&quot;, &quot;Year&quot;: &quot;2023&quot;, &quot;Event&quot;: &quot;Event 23&quot;},<br>  {&quot;Month&quot;: &quot;Dec&quot;, &quot;Year&quot;: &quot;2023&quot;, &quot;Event&quot;: &quot;Event 24&quot;}<br>]</pre><p>output should be:</p><pre>[<br>  {<br>    &quot;Month&quot;: &quot;Jun&quot;,<br>    &quot;Year&quot;: &quot;2022&quot;,<br>    &quot;Event&quot;: &quot;Event 6&quot;<br>  },<br>  {<br>    &quot;Month&quot;: &quot;Jul&quot;,<br>    &quot;Year&quot;: &quot;2022&quot;,<br>    &quot;Event&quot;: &quot;Event 7&quot;<br>  },<br>  {<br>    &quot;Month&quot;: &quot;Aug&quot;,<br>    &quot;Year&quot;: &quot;2022&quot;,<br>    &quot;Event&quot;: &quot;Event 8&quot;<br>  },<br>  {<br>    &quot;Month&quot;: &quot;Sep&quot;,<br>    &quot;Year&quot;: &quot;2022&quot;,<br>    &quot;Event&quot;: &quot;Event 9&quot;<br>  },<br>  {<br>    &quot;Month&quot;: &quot;Oct&quot;,<br>    &quot;Year&quot;: &quot;2022&quot;,<br>    &quot;Event&quot;: &quot;Event 10&quot;<br>  },<br>  {<br>    &quot;Month&quot;: &quot;Nov&quot;,<br>    &quot;Year&quot;: &quot;2022&quot;,<br>    &quot;Event&quot;: &quot;Event 11&quot;<br>  },<br>  {<br>    &quot;Month&quot;: &quot;Dec&quot;,<br>    &quot;Year&quot;: &quot;2022&quot;,<br>    &quot;Event&quot;: &quot;Event 12&quot;<br>  },<br>  {<br>    &quot;Month&quot;: &quot;Jan&quot;,<br>    &quot;Year&quot;: &quot;2023&quot;,<br>    &quot;Event&quot;: &quot;Event 13&quot;<br>  },<br>  {<br>    &quot;Month&quot;: &quot;Feb&quot;,<br>    &quot;Year&quot;: &quot;2023&quot;,<br>    &quot;Event&quot;: &quot;Event 14&quot;<br>  },<br>  {<br>    &quot;Month&quot;: &quot;Mar&quot;,<br>    &quot;Year&quot;: &quot;2023&quot;,<br>    &quot;Event&quot;: &quot;Event 15&quot;<br>  },<br>  {<br>    &quot;Month&quot;: &quot;Apr&quot;,<br>    &quot;Year&quot;: &quot;2023&quot;,<br>    &quot;Event&quot;: &quot;Event 16&quot;<br>  },<br>  {<br>    &quot;Month&quot;: &quot;May&quot;,<br>    &quot;Year&quot;: &quot;2023&quot;,<br>    &quot;Event&quot;: &quot;Event 17&quot;<br>  },<br>  {<br>    &quot;Month&quot;: &quot;Jun&quot;,<br>    &quot;Year&quot;: &quot;2023&quot;,<br>    &quot;Event&quot;: &quot;Event 18&quot;<br>  },<br>  {<br>    &quot;Month&quot;: &quot;Jul&quot;,<br>    &quot;Year&quot;: &quot;2023&quot;,<br>    &quot;Event&quot;: &quot;Event 19&quot;<br>  }<br>]</pre><p>Dataweave code is :</p><pre>%dw 2.0<br>output application/json<br>fun getMonthNumber(month: String): Number =<br>   (month) match {<br>    case &quot;Jan&quot; -&gt; 1<br>    case &quot;Feb&quot; -&gt; 2<br>    case &quot;Mar&quot; -&gt; 3<br>    case &quot;Apr&quot; -&gt; 4<br>    case &quot;May&quot; -&gt; 5<br>    case &quot;Jun&quot; -&gt; 6<br>    case &quot;Jul&quot; -&gt; 7<br>    case &quot;Aug&quot; -&gt; 8<br>    case &quot;Sep&quot; -&gt; 9<br>    case &quot;Oct&quot; -&gt; 10<br>    case &quot;Nov&quot; -&gt; 11<br>    case &quot;Dec&quot; -&gt; 12<br>    else -&gt; 0<br>  }<br>---<br>payload filter ((item) -&gt;<br>  ((item.Year as Number) == 2022 and getMonthNumber(item.Month) &gt;= 6) or<br>  (item.Year as Number) &gt; 2022 and (item.Year as Number) &lt; 2023 or<br>  ((item.Year as Number) == 2023 and getMonthNumber(item.Month) &lt;= 7)<br>)<br><br></pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61f1f76f3280" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Splunk Integration with MuleSoft for Seamless Data Analysis and Monitoring”]]></title>
            <link>https://medium.com/@kirankry/unlocking-powerful-insights-splunk-integration-with-mulesoft-for-seamless-data-analysis-and-bd61fafef25b?source=rss-d789359809df------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd61fafef25b</guid>
            <category><![CDATA[integration]]></category>
            <category><![CDATA[splunk]]></category>
            <category><![CDATA[mulesoft]]></category>
            <dc:creator><![CDATA[Kiran]]></dc:creator>
            <pubDate>Mon, 17 Jul 2023 06:51:04 GMT</pubDate>
            <atom:updated>2023-07-17T07:38:16.242Z</atom:updated>
            <content:encoded><![CDATA[<p>“Splunk Integration with MuleSoft for Seamless Data Analysis and Monitoring”</p><p><a href="https://docs.splunk.com/Documentation/Splunk/latest/Data/UsetheHTTPEventCollector">Splunk Documentation</a>.</p><p><strong>Here we can send logs to splunk using splunk rest api and http appender.</strong></p><ol><li><em>Using Splunk Rest API</em></li></ol><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p>Steps involved</p><ol><li>create splunk account. you can create free trail account and then create splunk instance where you can send logs.</li><li>create token.(Settings → DATA(Data inputs) →HTTP Event Collector → New Token)</li></ol><p>→Http Event Collector →The HTTP Event Collector is an endpoint that lets developers send application events directly to the Splunk platform via HTTP or HTTPS using a token-based authentication model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fZsuIXljYAbF2SY5iomS7w.png" /></figure><p>→Fill the name field and goto next</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EtNIjhii2WCsDtsZqVm0PA.png" /></figure><p>→select index as shown below. I have selected the index which I created already(<strong>testindex</strong>). you can select <strong>Main</strong> index. and click <strong>review</strong> and <strong>submit. token has successfully created.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sOhifS9qhaLCn5CsaFwc2A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*omH59q0PC1BynohqmRnKQA.png" /></figure><p>3.Create sample mule application. configure http request as shown below body should {event:payload} and headers should pass token</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i580Z3Nm32Kc1IO14C8kvw.png" /><figcaption>Rest API URL for sending logs to splunk</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hbVaU0GBPKVBMEKn5YrtfA.png" /></figure><p>deploy the api locally and hit the API. you could see the logs in splunk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tTyA3V2uocSnuYMRjTRcSA.png" /></figure><p>2. <em>Using Splunk HTTP Appender</em></p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><ol><li>create token in splunk as shown above. but select sourcetype should be <strong>log4j.</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KBAxUyCg0OaDXpSefvbAew.png" /></figure><p>Click on global settings and edit global settings as shown below.i have choosen index as testindex which is created already. you can select main as default index</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pq9zVpmTdnHMAA8MRxPa8A.png" /></figure><p>add the below configuration in log4j2.xml</p><pre>&lt;Configuration status=&quot;INFO&quot; name=&quot;cloudhub&quot; packages=&quot;com.splunk.logging,org.apache.logging.log4j&quot;&gt;</pre><pre>        &lt;SplunkHttp name=&quot;splunk&quot; url=&quot;https://prd-p-g2fbj.splunkcloud.com:8088&quot;             <br>                    token=&quot;5ea48a5d-c005-4567-b7ce-3754d1c27e22&quot;<br>                    index=&quot;testindex&quot;<br>                    batch_size_count=&quot;1&quot;<br>                    disableCertificateValidation=&quot;true&quot; /&gt;</pre><pre>        &lt;AsyncLogger name=&quot;splunk.Logger&quot; level=&quot;INFO&quot;&gt;<br><br>          &lt;AppenderRef ref=&quot;splunk&quot; /&gt;<br><br>        &lt;/AsyncLogger&gt; </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p_3W0NxmeVPhbHE_cg_bqg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hTuNUrxkOIrYgfImYx4z7w.png" /></figure><p>add dependencies and repository as shown in below pom.xml.</p><pre>  &lt;dependency&gt;<br>   &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;<br>   &lt;artifactId&gt;log4j-core&lt;/artifactId&gt;<br>   &lt;version&gt;2.17.0&lt;/version&gt;<br>  &lt;/dependency&gt;<br>  &lt;dependency&gt;<br>   &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;<br>   &lt;artifactId&gt;log4j-api&lt;/artifactId&gt;<br>   &lt;version&gt;2.17.0&lt;/version&gt;<br>  &lt;/dependency&gt;<br>  &lt;dependency&gt;<br>   &lt;groupId&gt;com.splunk.logging&lt;/groupId&gt;<br>   &lt;artifactId&gt;splunk-library-javalogging&lt;/artifactId&gt;<br>   &lt;version&gt;1.11.6&lt;/version&gt;<br>  &lt;/dependency&gt;<br>  &lt;dependency&gt;<br>   &lt;groupId&gt;com.mulesoft.connectors&lt;/groupId&gt;<br>   &lt;artifactId&gt;mule4-splunk-connector&lt;/artifactId&gt;<br>   &lt;version&gt;3.0.0&lt;/version&gt;<br>   &lt;classifier&gt;mule-plugin&lt;/classifier&gt;<br>  &lt;/dependency&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qQH-NRkHFoLHJxiP5l6adA.png" /></figure><p>repositories</p><pre>  &lt;repository&gt;<br>   &lt;id&gt;splunk-artifactory&lt;/id&gt;<br>   &lt;name&gt;Splunk Releases&lt;/name&gt;<br>   &lt;url&gt;https://splunk.jfrog.io/splunk/ext-releases-local&lt;/url&gt;<br>  &lt;/repository&gt;<br> &lt;/repositories&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*xLaHFZ6165XtTI5021VCjQ.png" /></figure><p>create sample api and test it. in this below we just created start logger has just sample log data and in the Transform message given json payload and in the last logger category should be splunk.logger.</p><pre>%dw 2.0<br>output application/json<br>---<br>{<br> event: (payload.event),<br> sourcetype: (payload.sourcetype),<br> sentby: &quot;KR&quot;,<br> senton: &quot;today&quot;<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1W02cidih5xwlmuHWcsoxQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r014yYqIK4CulvoCYEjDtg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd61fafef25b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Unlocking Success: Navigating the MuleSoft Roadmap to Seamless Integration and Transformation”]]></title>
            <link>https://medium.com/@kirankry/unlocking-success-navigating-the-mulesoft-roadmap-to-seamless-integration-and-transformation-60eda0e40219?source=rss-d789359809df------2</link>
            <guid isPermaLink="false">https://medium.com/p/60eda0e40219</guid>
            <category><![CDATA[mules-clogs]]></category>
            <category><![CDATA[mulesoft-esb]]></category>
            <category><![CDATA[dataweave]]></category>
            <category><![CDATA[mulesoft]]></category>
            <dc:creator><![CDATA[Kiran]]></dc:creator>
            <pubDate>Tue, 11 Jul 2023 10:08:55 GMT</pubDate>
            <atom:updated>2023-07-11T10:08:55.387Z</atom:updated>
            <content:encoded><![CDATA[<p><em>“Unlocking Success: Navigating the MuleSoft </em><strong><em>Roadmap</em></strong><em> to Seamless Integration and Transformation”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sUNd3JSDZ5H_xVvP" /><figcaption>Photo by <a href="https://unsplash.com/@majesticlukas?utm_source=medium&amp;utm_medium=referral">Majestic Lukas</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Hey Mule Bees,</p><blockquote>you are here because to know what is mulesoft,why mulesoft,how to start,where to start.</blockquote><p><strong>What is mulesoft: </strong><em>simple and short answer for this is a leading integration platform in the market.</em></p><p><strong>Why Mulesoft: </strong><em>MuleSoft, as an integration platform, offers numerous advantages that make it a popular choice for organizations looking to streamline their integration processes and drive digital transformation. Here are some key reasons why MuleSoft is highly regarded:</em></p><ol><li>API-Led Connectivity</li><li>Developer Productivity</li><li>Ecosystem and Marketplace</li><li>Analytics and Insights</li></ol><p><strong>How to Start : </strong><em>to learn and start with mulesoft you really not required any prior knowledge of any technology.</em></p><p><em>I would prefer you just need to focus on the learning to embark in this journey.</em></p><p>below are the steps to focus on the areas to familiar with mulesfot.</p><ol><li><strong><em>what is integration</em></strong> - simple general answer is combining 2 or more systems. it includes point to point integration and many to many integration.</li><li><strong><em>know the mulesoft terminology</em></strong> → Anypoint Studio, Anypoint platform,API LED architecture, API life cycle,C4E.</li></ol><p><strong>Where to Start : </strong><em>this is what we need and where your efforts really need to make your journey success.</em></p><p>To kickstart you should know the first step to jump into</p><p>as usual first implement hello world through mulesoft.</p><p>what you need to do this is to do first environment setup.</p><ol><li>Anypoint Studio 7.15 version latest as of today. to develop API</li><li><a href="https://anypoint.mulesoft.com/login/signup">Anypoint Platform 30days free trail</a>. to deploy and manage your API</li></ol><p>some of the useful links to follow the latest content on Mulesoft</p><p>Mulesoft providing free self paced free course to complete end to end as Developer.so you can get free voucher on upon completion of the below course. so you can attend for MCD-L1 certification .</p><p><a href="https://training.mulesoft.com/course/development-fundamentals-mule4-bootcamp">https://training.mulesoft.com/course/development-fundamentals-mule4-bootcamp</a></p><ul><li><a href="https://mulesy.com/">MuleSoft Learning Made Easy platform - Mulesy.com</a></li><li><a href="https://dzone.com/articles/mulesoft-for-beginners-mule-4-development-complete">MuleSoft for Beginners - Mule 4 Development (Complete Series ) - DZone</a></li></ul><p><a href="https://www.udemy.com/course/mule-4x-indepth-beginner-to-expert-with-real-time-use-cases/">https://www.udemy.com/course/mule-4x-indepth-beginner-to-expert-with-real-time-use-cases/</a></p><p><a href="https://www.udemy.com/course/mulesoft-mule4-for-beginners-developers-with-35-live-demo/">https://www.udemy.com/course/mulesoft-mule4-for-beginners-developers-with-35-live-demo/</a></p><h3><strong>Certifications in Mulesoft</strong></h3><p>— — — — — — — — — — — — — — — — —</p><p>Mulesoft Certified Developer L-1(MCD L1)</p><p>Mulesoft Certified Developer L-2(MCD L2)</p><p>Mulesoft Certified Integration Associate(MIA)</p><p>Mulesoft Certified Integration Architect (MCIA)</p><p>Mulesoft Certified Platform Architect(MCPA)</p><p>Expand mulesoft network by following mulesoft related groups and professionals on Linkedin and other social media platforms.</p><p>A<a href="https://meetups.mulesoft.com/events/#/list">ttend the mulesoft meetups to get more latest contnet and new thoughts to share on the stage</a>.</p><p><a href="https://developer.mulesoft.com/tutorials-and-howtos/dataweave/what-is-dataweave-getting-started-tutorial/">Happy Learning! Mulesoft|Data Weave|</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60eda0e40219" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use map and reduce function in Dataweave Mule4]]></title>
            <link>https://medium.com/@kirankry/how-to-use-map-and-reduce-function-in-dataweave-mule4-26e3f30dfe1d?source=rss-d789359809df------2</link>
            <guid isPermaLink="false">https://medium.com/p/26e3f30dfe1d</guid>
            <category><![CDATA[mulesoft-professional]]></category>
            <category><![CDATA[mulesoft]]></category>
            <category><![CDATA[mulesoft-training]]></category>
            <category><![CDATA[mulesoft-esb]]></category>
            <dc:creator><![CDATA[Kiran]]></dc:creator>
            <pubDate>Tue, 11 Jul 2023 08:34:08 GMT</pubDate>
            <atom:updated>2023-07-11T08:34:08.394Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://docs.mulesoft.com/dataweave/2.4/dw-core-functions-map"><strong><em>How to use Map function and Reduce function in Dataweave Mule4</em></strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kgswr0U1eCNqQ8V_" /><figcaption>Photo by <a href="https://unsplash.com/@ymoran?utm_source=medium&amp;utm_medium=referral">Edgar</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Here is the below an simple example will explain using map and reduce effectively.</strong></p><p>Question is how to calculate total amount of array of objects</p><p>Input is :</p><pre>{<br>  &quot;orders&quot;: [<br>    {<br>      &quot;orderNumber&quot;: &quot;1234&quot;,<br>      &quot;customerName&quot;: &quot;John Smith&quot;,<br>      &quot;items&quot;: [<br>        {<br>          &quot;sku&quot;: &quot;A001&quot;,<br>          &quot;name&quot;: &quot;Product A&quot;,<br>          &quot;price&quot;: 10.99,<br>          &quot;quantity&quot;: 2<br>        },<br>        {<br>          &quot;sku&quot;: &quot;B002&quot;,<br>          &quot;name&quot;: &quot;Product B&quot;,<br>          &quot;price&quot;: 5.99,<br>          &quot;quantity&quot;: 3<br>        }<br>      ]<br>    },<br>    {<br>      &quot;orderNumber&quot;: &quot;5678&quot;,<br>      &quot;customerName&quot;: &quot;Jane Doe&quot;,<br>      &quot;items&quot;: [<br>        {<br>          &quot;sku&quot;: &quot;C003&quot;,<br>          &quot;name&quot;: &quot;Product C&quot;,<br>          &quot;price&quot;: 8.99,<br>          &quot;quantity&quot;: 1<br>        },<br>        {<br>          &quot;sku&quot;: &quot;D004&quot;,<br>          &quot;name&quot;: &quot;Product D&quot;,<br>          &quot;price&quot;: 15.99,<br>          &quot;quantity&quot;: 2<br>        }<br>      ]<br>    }<br>  ]<br>}</pre><p>Expected output is:</p><pre>{<br>  &quot;orderDetails&quot;: [<br>    {<br>      &quot;orderNumber&quot;: &quot;1234&quot;,<br>      &quot;customerName&quot;: &quot;John Smith&quot;,<br>      &quot;totalAmount&quot;: 39.95,<br>      &quot;items&quot;: [<br>        {<br>          &quot;sku&quot;: &quot;A001&quot;,<br>          &quot;name&quot;: &quot;Product A&quot;,<br>          &quot;quantity&quot;: 2,<br>          &quot;subtotal&quot;: 21.98<br>        },<br>        {<br>          &quot;sku&quot;: &quot;B002&quot;,<br>          &quot;name&quot;: &quot;Product B&quot;,<br>          &quot;quantity&quot;: 3,<br>          &quot;subtotal&quot;: 17.97<br>        }<br>      ]<br>    },<br>    {<br>      &quot;orderNumber&quot;: &quot;5678&quot;,<br>      &quot;customerName&quot;: &quot;Jane Doe&quot;,<br>      &quot;totalAmount&quot;: 40.97,<br>      &quot;items&quot;: [<br>        {<br>          &quot;sku&quot;: &quot;C003&quot;,<br>          &quot;name&quot;: &quot;Product C&quot;,<br>          &quot;quantity&quot;: 1,<br>          &quot;subtotal&quot;: 8.99<br>        },<br>        {<br>          &quot;sku&quot;: &quot;D004&quot;,<br>          &quot;name&quot;: &quot;Product D&quot;,<br>          &quot;quantity&quot;: 2,<br>          &quot;subtotal&quot;: 31.98<br>        }<br>      ]<br>    }<br>  ]<br>}</pre><p>And the Dataweave code snippet for the above question is:</p><pre>%dw 2.0<br>output application/json<br>---<br>{<br>    &quot;orderDetails&quot; : payload.orders map ((item) -&gt;{<br>        &quot;orderNumber&quot; : item.orderNumber,<br>        &quot;customerName&quot; : item.customerName,<br>        &quot;totalAmount&quot; : (item.items map ((item1) -&gt; (item1.price) *(item1.quantity)  )) reduce ((item, accumulator) -&gt; item + accumulator ),<br>        &quot;items&quot; : item.items map(item2) -&gt;{<br>            &quot;sku&quot; : item2.sku,<br>            &quot;name&quot; : item2.name,<br>            &quot;quantity&quot; : item2.quantity,<br>            &quot;subtotal&quot; : (item2.quantity) * (item2.price)<br>        }<br>    } )<br>}</pre><p><a href="https://dataweave.mulesoft.com/learn/dataweave">you can check output of the same using dataweave playground</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*duPMNS1KlE_p467_rxyw-Q.png" /><figcaption>Data weave playground snippet</figcaption></figure><blockquote><strong><em>Happy Learning! Mulesoft | Dataweave|</em></strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26e3f30dfe1d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>