<?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 Giri Venkatesan on Medium]]></title>
        <description><![CDATA[Stories by Giri Venkatesan on Medium]]></description>
        <link>https://medium.com/@gvensan?source=rss-e91261de1a27------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*VIuoVe3Q-RpAAEy1xUwclQ.jpeg</url>
            <title>Stories by Giri Venkatesan on Medium</title>
            <link>https://medium.com/@gvensan?source=rss-e91261de1a27------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 03:13:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gvensan/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[Message Routing and Topics — A Thought shift]]></title>
            <link>https://gvensan.medium.com/message-routing-and-topics-a-thought-shift-bf11138295a1?source=rss-e91261de1a27------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf11138295a1</guid>
            <category><![CDATA[message-routing]]></category>
            <category><![CDATA[messaging-platforms]]></category>
            <category><![CDATA[hierarchical-topics]]></category>
            <category><![CDATA[event-driven-architecture]]></category>
            <category><![CDATA[integration]]></category>
            <dc:creator><![CDATA[Giri Venkatesan]]></dc:creator>
            <pubDate>Mon, 26 Sep 2022 07:16:11 GMT</pubDate>
            <atom:updated>2022-09-26T07:16:11.578Z</atom:updated>
            <content:encoded><![CDATA[<h3>Message Routing and Topics — A Thought shift</h3><p>I started my Engineering career with a messaging middleware company out of the Bay Area, California, that came around just when CORBA was being retired, giving rise to MoM and other middleware technologies. Integration problems were classified as internal (EAI) vs. external (B2B) integrations. Terms like Enterprise Dial-tone and Enterprise Bus were coined to define the problem and exemplify integration solutions. Fun time, indeed!</p><p>We created a Broker supporting concepts like Territories, Gateways, Adapters, and Visual Designer to design integrations, which I am proud to be part of. Performance was measured by message throughput, i.e., messages routed per second through the Broker. With constraints of the day around CPU power, storage and memory, we were tinkering with TCP windows, swap and page size, memory-mapped IO, all the tricks around multi-threading, and whatnot to get the best performance.</p><p>Fast forward! Today, I am with Solace as a Developer Advocate. After dabbling with many technologies and roles, I was fortunate to return to the Integration domain, where I started. A lot has changed — Memory, Storage, and CPU are cheaper and available on demand. Cloud technologies have also disrupted this domain; we now have Infrastructure as a Service (IaaS) — Scaling, Load Balancing, and DR responsibilities have been delegated to the Cloud service providers. We are currently looking at Integration Platform as a Service (iPaas) where the entire integration service stack can be built, deployed, and scaled in no time with ease. A monumental shift, nothing less would justify in words.</p><p>This post reflects my observations from the MoM perspective and transformation to real-time, event-driven messaging after joining <a href="https://solace.com/">Solace</a>. I use the terms <em>Events</em> and <em>Messages, Payload </em>and <em>Content</em> interchangeably.</p><p>There is one thing that caught my attention and fascination simultaneously. The central theme of a real-time Enterprise Integration is Message Routing. Almost all Messaging systems employ an intelligent, interest-based subscription mechanism that ensures the routing of messages to interested parties. The <em>intelligent</em> part of routing is built with rules around the Event type (name) and the content. Routing decisions based on an Event type name are straightforward because they are easily accessible and available without unpacking the payload. However, a routing based on filtering rules on the content would require unpacking and evaluating the rules to determine a match. This directly impacts message throughput and performance. Content-based message routing (CBR) is performance-penalizing and not the best choice for real-time messaging scenarios where latency costs good decisions. In the early days of integration, content-based routing was considered essential. Almost all messaging systems based their routing on this principle — from Biztalk Server, webMethods Broker, and Integration Servers from JBoss, Oracle to IBM.</p><p>JMS came along and standardized the message exchange interactions with a specification; almost all the vendors followed suit and extended their support. Here came <strong><em>Topics</em></strong> with a simple definition of “<em>a type of destination in a 1-to-many model of distribution”. </em>Topics focused on the context in which the message originated, like systems, applications, and microservices. A Topic can also be treated as a destination helping to identify consumers at run-time based on their subscription.</p><p>Almost all of the Integration products of the day (both past and present) took the notion of Topic as a literal string. Sure, there is nothing wrong. Often, it embodied the business context captured in the carried message.</p><p>How do the following topic names look?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J_nk5I5RW-0r_8CYIMuAvw.png" /></figure><p>Looks great, but do they talk to you about the business context? I don’t think so :)</p><p>They are just literal strings — Why not have it capture the business context at a granular level? Why not use taxonomy in naming, describing, and classifying the data carried in the message? Better than a plain string, sounds good, right? In any business scenario involving data exchange, pumping packets alone won’t cut. Intelligent and efficient message routing matters when the need for real-time and speed is the ask.</p><p>In an ideal world, a messaging broker would never need to open the payload — it can be simply passing messages between producers and consumers based on subscription. Not all consumers are equal; they may be built to handle subsets of messages even if they are of the same class. For example, a Tax Calculation service would need to process the message differently based on the country or region the message is originating from.</p><p>Almost all modern brokers don’t open the message payload for any purpose — in other words, topic-based routing has become the preferred mechanism over traditional content-based routing. However, the content might influence the decision on how the message is processed or the type of service to be invoked. This creates the dilemma of inspecting the payload for specifics at the cost performance. Here is where the notion of <strong><em>Hierarchical Topics</em></strong> comes to the rescue.</p><p>Fortunately, MQTT-based brokers adopted the hierarchical representation of topics from the get-go. Only a handful of Brokers adopted the hierarchical topics in the enterprise realm. Solace Broker pioneered this and made it super-charged with support for multiple protocols, language APIs, and advanced concepts like DMR, Event Portal, and Event Mesh.</p><p>Here are a few examples of hierarchical topics where critical information is captured as <strong><em>levels</em></strong> in the hierarchy.</p><ul><li>A Foreign-exchange Trading platform could build its messaging system based on a hierarchy that captures elements like application, feed, type, source, and target currencies.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0ErBRgqdChJ8v4mQ4uOdXw.png" /></figure><ul><li>A Manufacturing platform could organize its messaging topics with information around company, department, system, version, type, and product.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VOk5PRGmN4G-AK8FFGehaw.png" /></figure><ul><li>A Payments platform could organize its messaging topics with information around an application, type of transaction, bank-id, transaction number, and store-id.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FINp06k7KuDNtQ1Bld-w0g.jpeg" /></figure><p>In essence, you can see the reflection of a <strong><em>topic taxonomy</em></strong> representing the Business terms that users and applications are familiar with. With the topic levels delimited by a separator (<strong>‘/’</strong> in this case), the topic string is now contextual and human-readable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LmDRJkzk8oflKVq7sdr-8Q.png" /></figure><p>The benefits of such a hierarchical scheme don’t stop there. Now we can use wild cards at any level to capture a broader range of message topics in a subscription.</p><p><strong><em>1. Single-level wildcard: *</em></strong></p><p>A single-level wildcard <strong>*</strong> replaces one topic level. Here is an example from the payments processing system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4zefXhnSf6LOEPok7bTA6A.png" /></figure><p><strong><em>2. Multi-level wildcard: &gt;</em></strong></p><p>The multi-level wildcard covers many topic levels. The <strong>&gt;</strong> symbol represents the multi-level wild card in the topic. A multi-level wildcard must be placed as the last character in the topic and preceded by a forward slash.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iei0bOHGywLfUdWOa_-rOQ.png" /></figure><p>The literals at each level are treated as Strings — hence wildcard usage on datatypes like latitude/longitude coordinates and other custom identifiers would also benefit from this simplicity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qtTeJaCwNPpwrmQ8cUlLmQ.png" /></figure><p>A subscription with this topic would capture ALL the messages from vehicles plying in the geographic region bounded by coordinates of 45.3°N to 45.4°N and -75.7°W to -75.8°W.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qOpqR0JpOMrGmP7kLfm4uw.png" /></figure><p>With support for versioning, topics can be altered dynamically without affecting the existing subscribers and overall architecture. It is as simple as creating a new version of the topic, promoting the desired field as a topic level in the hierarchy, and updating subscriptions (wildcards may come in handy depending on the change).</p><p>My fascination with <strong><em>Hierarchical Topics</em></strong> stems from the ability to route messages intelligently without opening the payload. This is fundamental to accomplishing real-time, low-latency message exchange. Solace Broker shines bright in this aspect.</p><p>For more information on Hierarchical Topics, check out the <a href="https://solace.com/blog/beyond-kafka-filtering-and-in-order-delivery/">4-part blog series</a> that dives into details of flexible event filtering and dynamic routing and a quick intro <a href="https://www.youtube.com/watch?v=PP1nNlgERQI">video</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf11138295a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Onboarding — Not All Developers are the same]]></title>
            <link>https://gvensan.medium.com/onboarding-not-all-developers-are-the-same-37eb6ab71c4e?source=rss-e91261de1a27------2</link>
            <guid isPermaLink="false">https://medium.com/p/37eb6ab71c4e</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[devrel]]></category>
            <category><![CDATA[onboarding]]></category>
            <category><![CDATA[developer-engagement]]></category>
            <dc:creator><![CDATA[Giri Venkatesan]]></dc:creator>
            <pubDate>Thu, 17 Jun 2021 04:27:24 GMT</pubDate>
            <atom:updated>2021-06-17T04:27:24.435Z</atom:updated>
            <content:encoded><![CDATA[<h3>Onboarding — Not All Developers are the same</h3><p>Developer community is typically a motley mix of tech folks who may not have much in common but for the shared interest in technology and problem solving. DevRel must employ a persona-based approach in devising their onboarding journey to ensure conversion of each member to a loyal ambassadors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*tSBYgVHxQpOwAcNf0AGG6w.png" /></figure><p>A Developer community is very similar to a real-world community, a techno-social unit made of members from varying experience and backgrounds but celebrating technology, common goals and challenges. DevRel focuses on serving the community needs in every possible way during their journey and hopes to turn them into champions and ambassadors. However, care must be taken not to assume all members are same or equal and employ a one-size-fits-all approach. We will be dealing with people of varying technical experience, backgrounds, expectation, interest level, prior exposure, skillset and above all the intent and goals.</p><p>The most crucial aspect of Developers’ journey is the onboarding and it determines their commitment for a successful and continuous engagement. It should be noted that their experience and engagement may affect the success of the Partners or Customers whoever they are representing. When designing the onboarding journey, DevRel should be aware of the persona of developers and devise paths to engage them correctly from the beginning. Oftentimes, one would assume that creating world-class materials and references, in all possible media forms is enough to turn every Developer into an ambassador — sadly not true. The sifting and searching one has to go through to get their feet on the ground would drain the interest levels, rather than engaging.</p><p>There are numerous classification schemes for learners and learning patterns. Let us look at few of them.</p><p><strong>a) The question of ‘Who’</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UHb7mzFa-2ficOTM98OLdg.png" /></figure><p>Who are they and why are they there? Are they a ‘<strong><em>Student</em></strong>’ — genuinely wanting to learn, a ‘<strong><em>Tourist</em></strong>’ — a drifter, just want to check it out and decide and lastly a ‘<strong><em>Prisoner</em></strong>’ — who doesn’t want to be there. The return on investment is much higher on the Student and even Tourist persona, as their attention span and interest levels are better and will excel eventually without fail.</p><p><strong>b) The question of ‘How’</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qzFkTeJZ624GMQePU_WilA.png" /></figure><p>A study by University of Arizona classifies typical learning patterns as</p><p>i) <em>Sequence</em> — Begin a task by asking basic questions like ‘What are the directions’ and ‘What am I expected to do?’. Learners following this pattern would wait till their questions are cleared and are convinced of the agenda for themselves.</p><p>ii) <em>Precision</em> — Loads of questions, needing information and acting with precision to do things correctly. These are walking encyclopedia 😊</p><p>iii) <em>Reasoning</em> — Hands on, wanting to get a handle on the tools and gadgets and do it themselves. These are tinkerers who love to solve problems and prefer to work alone and DIY guys.</p><p>iv) <em>Confluence</em> — Abstract thinkers, usually think out of the box and use metaphors to explain things as they see and experience, rather than the exactness with words</p><p>I would like to add the following as the fifth pattern for advanced and experienced learners who already have relevant background but might require bit of concept mapping and unlearning 🤔</p><p>v) <em>Cross-reference</em> — Experts with prior experience on similar products, who prefer to map out things to either a standard or vocabulary they are familiar with before claiming victory</p><p><strong>c) The question of ‘What’</strong></p><p>From the wealth of resources and materials, what excites them. Their learning style would steer them towards artifacts of a particular medium — visual, auditory, written and kinaesthetic. Having content in relevant mediums would ensure that they kick start their journey with ease and joy.</p><p>To cover the disparate needs and expectations — the following guideline would help make the first step.</p><blockquote><strong>Collect</strong> key information at the time of signup to know the Developer’s persona, how they learn and their preferences</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l1sFFKEmmd05DGFzaEVTpg.png" /></figure><blockquote><strong>Collate</strong> materials, stitching up a learning path for distinct roles with versions of right mix of different mediums (audio, visual, reading and labs)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HLJJP1KXWJGF8Y7Ol0kPXw.png" /></figure><blockquote><strong>Collaborate</strong> with them to create new assets, present opportunities to showcase their expertise, recognized and reward them</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zg9QPzDmGfW-EuA41ivVQw.png" /></figure><p>Of course, it goes without saying ‘continuous evaluation and tweaking is expected’ and should become part of the process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NltYv8wkfS0jDhAVXhj-PA.png" /></figure><p>A Developer Community that has maximum participation, collaborative knowledge creation and sharing and genuine reach-out with the singular goal of helping is bound to succeed and surely poised to become a sustained community.</p><p>We should be cognizant of this fact and strive to make the onboarding journey a resounding success. It is always a <strong>work in progress</strong>, dressed in the fabric of a continuous feedback for improvements.</p><p>By understanding the persona of developers and community members, organizing the content in a meaningful way for appropriate levels and learning styles — the onboarding journey can be made engaging. Ultimately, such a positive experience and first impression will carry forward making each member an ambassador for the product/platform.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37eb6ab71c4e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 10 lessons from ISO 27001 Certification journey]]></title>
            <link>https://gvensan.medium.com/top-10-lessons-from-iso-27001-certification-journey-a0db9dd9095b?source=rss-e91261de1a27------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0db9dd9095b</guid>
            <category><![CDATA[iso-27001-certification]]></category>
            <category><![CDATA[iso-27001]]></category>
            <category><![CDATA[fintech-startups]]></category>
            <category><![CDATA[numberz]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Giri Venkatesan]]></dc:creator>
            <pubDate>Thu, 04 Jul 2019 11:41:46 GMT</pubDate>
            <atom:updated>2019-07-04T11:44:23.449Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*GH9D0IOspNwrGsgzHipbog.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yHwMQHiVzlAB-_Yv" /></figure><p>The ISO 27001 standard is a well-known framework to implement industry best practices in areas related to security. It is a tall order even for an established, process-driven organization to commit to create, monitor and manage controls and collecting evidence year-around to ensure that the standing is maintained. Over the past few months, I had the fortune of leading the effort of getting the startup <a href="https://www.numberz.co/">numberz</a>, a fintech innovator certified. Oh Boy, it was a journey for sure — to pull along a young crowd that wants to measure and see every action with a tangible and immediate outcome, to undertake such commitment in itself was a task, but hey — the team did it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/0*sHmKPzysNmHx7sv1" /></figure><p>But is ISO 27001 certification worth the trouble? Does it make a difference?</p><p>Absolutely YES — It comes in two folds.</p><p>Internally for the organization, it streamlined the process of everything (literally everything that represents and operates the entity). But it comes with a cost — the cost of transformation and commitment to follow through set policies and procedures. It brings in the perspective of security on everything that happens within an organization. It engages all functions of the organization from Sales, HR, legal to the core Product Development, and take stock of the ‘what if’ on various nebulous security scenarios. Once the exercise is completed, one can see the gaping holes that just got plugged which otherwise could have compromised security across the spectrum — Data, Information, Equipment(s), People, and Processes all the way to the priceless creation ‘the Product’. It is never about how sensitive information is stored, recovered and operated — much beyond that, covering aspects of what, who, how and when on everything and everyone that touches the sensitive assets of the organization.</p><p>Outwardly, even for an established organization a certification issued by an accredited body creates an opportunity with a compelling story and a seat at the table than any loud and limitless claims one can make by themselves. It is a great sales-enabler, expediter and helps cross a major hurdle in the early cycles of sales and partnership engagements with ease when dealing with sensitive and security-conscious Customers and Partners.</p><p>It was quite a journey over the past few months — collectively learned a lot and our perspective on Information Security truly expanded with a new-found respect for standards and frameworks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/0*b_hBilq8ox-KvivE" /></figure><p><strong>Lesson #1:</strong> ISO 27001 adoption is NOT going to turn your organization upside down. The initial fear got dispelled once we realized that ISO 27001 guidelines are a framework and you alone decide what is applicable to you — it is not true that you have to implement changes (policies and procedures) for everything in the specification. It trusts the organization with the responsibility of identifying applicable clauses — and of course, it expects you to review and acknowledge why something is not applicable or why presence or absence of controls or a certain level of risks are acceptable to your organization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/0*qSHzdWCAkucOVEza" /></figure><p><strong>Lesson #2:</strong> Establish the context of the organization. It is about understanding the organizational expectations, interested parties, and scope of the Information Security Management system that will be put in place. This will help with a clear understanding of the affected teams/departments, commitments to be made by the management and members of the organization and the boundaries of such an ISM system that will be periodically audited to evolve over the time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/0*0MoVLv9Hrg7485P4" /></figure><p><strong>Lesson #3:</strong> It all starts with the identification of organizational assets — they are essentially classes of assets ranging from tangible assets like information, paper documents, people, physical, service, and software to non-tangible assets like reputation, company image, etc. It may vary and can be expansive depending on your organization function and business objectives. Once the assets are identified, arrive at a robust formula to compute the risk associated with it based on the perceived threat and vulnerability. For each of the identified risks, you would be able to evaluate the absence of controls or the presence of existing controls and their strengths (preventive, corrective, recovery and awareness). By establishing an acceptable risk severity (i.e., low, medium high, very high), evaluation of the identified risks will shed light on the need for new controls to be implemented and a need for strengthening (additional controls) to keep the risk severity acceptable. Such a risk treatment plan will map each of the identified risks and existing/planned controls to the recommended controls referenced in the ISO framework, thus making your risk management plan ISO compliant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*jZ2mPvFBX2Eu69cD" /></figure><p><strong>Lesson #4:</strong> Often times, the topic of security steers people in the software world to think about server security, data security, disaster recovery, and other typical aspects. They are perfectly fine, but what one misses out is the policies and procedures that govern the setup, operation, and execution of those techniques and technologies. A fool-proof implementation is only as strong as the governing policies and procedures. The scope of security is an inclusive domain covering people, process and technology as a whole aligned with set security objectives.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/0*jSHgdA9Om7ypaG6v" /></figure><p><strong>Lesson #5:</strong> Data alone is not the only asset to be secured. Anything or anyone who touche sensitive assets (including data) directly or indirectly come under the purview of security. The modes and means of controlling access is a matter of technique and implementation. The process around managing the permissions, changes, exceptions (if applicable) to manage the assets is the critical piece of security. Above all, the pieces of equipment (laptop, desktop, server or cloud resources) that are put in place to develop, test, support and host the secured assets also need to be covered under security review. This leads to the formulation of policies and procedures to manage the assets that make up your ISM system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*mMaZg_mzAGO12I9g" /></figure><p><strong>Lesson #6: </strong>Change is the only constant — it can never be more true for a startup and it is part of the DNA making it nimble and adaptable to internal and external demands. Here comes the dampener — every change and its impact on the system need to be evaluated as per the ISM policies and procedures for security risks. Any resulting changes to the policies and procedures need to be captured and respective documents need to be updated with versioning and change tracking. Any exceptions made should be recorded as well for future reference (audit). In essence, changes are fine — but they need to be made responsibly after weighing in impact on overall security. This part requires commitment from the entire team and the team leads to consciously evaluate the change requirements, approve or seek validation from designated security experts within the organization (ISM — Information Security Manager) and maintain evidence of the changes in line with documented policies and procedures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*v-HydEiw9NQtfc8E" /></figure><p><strong>Lesson #7:</strong> Sensitive information handling. Varieties of information and data get generated in a typical day of life in an organization. Some of the information could be sensitive and might pose a security risk if exposed or leaked outside — ranging from simple scribbling on the whiteboards, unattended terminals, unattended printed documents on the printer to information shared with unintended people via email or other means. Education on sensitizing members of the organization on information classification and handling them is paramount, and it comes with the enforcement of certain discipline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*DMVzb0N4HafYX_mW" /></figure><p><strong>Lesson #8:</strong> The great ‘controls’ to monitor the effectiveness of policies and procedures as defined by the ISM system. A periodic review of pieces of evidence collected, documented changes and exceptions will help identify the need for review and upgrade of existing controls. The controls can act as a mitigator (corrective), prevent future issues (preventive), simply for monitoring ongoing activities (awareness) or simply a procedure to recover from situations (recovery). It is a continuous process to monitor, assess and treat risks — forming a cycle of correction and improvement in correspondence with the internal and external changes. The periodicity of the review of evidence and associated controls performance is based on the severity of the risk and sensitivity of the underlying asset and should be set appropriately.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*R_O7Y0UyHNiuNs_G" /></figure><p><strong>Lesson #9: </strong>‘Document classification and tracking’ — in the busy life of a startup, communication is free-flowing and unconstrained — emails are sent, documents created and shared or published all the time. However, from the legal and security perspective — the creator or sender and recipient need to be educated and informed about the sensitivity of the information. It can range from simple versioning and history tracking on documents, calling out the type of information shared (internal, proprietary, confidential, etc) to a simple disclaimer in the email signature. This will ensure that the sender takes responsibility to validate his/her action before sending/sharing information even if it is for the intended recipients.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*lOd-gwVp1TnzRAVq" /></figure><p><strong>Lesson #10: </strong>Simply be prepared to go through the grind on the audit on the first anniversary (surveillance audit) where the focus will be on the review of adherence to committed security policies and procedures as documented in the ISM manual. Collected evidence and change tracking are the only tangible outcome of the past adherence — hence be sure to document evidence wherever applicable. ISO mandates continuous monitoring and improvement to the risk management methodology as per the established ISM system. And finally, on the 3rd anniversary — a fresh audit will be due for renewal of certification :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*mAKOLU5YFl4JLnPd" /></figure><p><strong>Bonus: </strong>For a software organization Business Continuity is super-critical and is the biggest risk to be managed. It is prominently espoused by ISO framework. Putting together an implementable plan is the first step — however, it is difficult to test the same without affecting parts or whole of the functioning and operation. In reality — it is unfathomable to bring down the production systems just to test out the scenarios. ISO offers a practical workaround called ‘Tabletop Exercise’. Run all the identified risks and scenarios in theory and deduce the outcome as to how it will mitigate and offer continuity — just document the outcome which will serve as evidence as well as reference. This can be a complex exercise, if not for the option of tabletop exercise, it does help you explore all scenarios without affecting any of the real-world operations. Thanks to that!</p><p>At the beginning of the ISO Certification process:</p><blockquote>Tasks ranging from a simple document classification, asset classification and tracking to time-consuming evidence collection — though simple, we’re afraid of committing to it. The first reaction was ‘will cause delay and affect velocity’ — no surprise there!</blockquote><p>At the end of the ISO journey, of course with successful certification — we prevailed.</p><blockquote>With a bit of insistence, commitment from management, and continuous education, things turned around. Initial glimmer of hope is now shining bright with the ISO induced changes becoming part of daily routines without any fork or hack!</blockquote><p>It is not that bad, not bad at all, eh?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pUu8Ywz2Vdu0oef5" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0db9dd9095b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Universal Data Mapper: Part 2]]></title>
            <link>https://gvensan.medium.com/building-a-universal-data-mapper-part-2-7cdadd24e396?source=rss-e91261de1a27------2</link>
            <guid isPermaLink="false">https://medium.com/p/7cdadd24e396</guid>
            <category><![CDATA[onboarding]]></category>
            <category><![CDATA[data-mapper]]></category>
            <category><![CDATA[data-migration]]></category>
            <category><![CDATA[data-mapping]]></category>
            <category><![CDATA[dataloader]]></category>
            <dc:creator><![CDATA[Giri Venkatesan]]></dc:creator>
            <pubDate>Tue, 30 Apr 2019 12:55:51 GMT</pubDate>
            <atom:updated>2019-04-30T16:04:53.561Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uZBeD53n_Qwg6NtF" /><figcaption>Mapper Stages</figcaption></figure><h3>UDM Reference Implementation</h3><p>In continuation of the previous article titled <a href="https://medium.com/@wtx/building-a-universal-data-mapper-part-1-1b59ad89f665?source=friends_link&amp;sk=1c74257bc24e1cee43b8a078348437cc">Building a Universal Data Mapper: Part 1</a>, as promised a reference implementation of the specification is ready.</p><p>UDM has design-time and run-time components. The design-time component is a UI-heavy functionality that helps you build the mapper with appropriate rules around data consideration, mapping &amp; transformation, and chaining. The output of the design activity is a JSON construct describing the mapper definition. The run-time component is an engine that takes an input file along with optional reference files for lookups and diff processing and applies a mapper to produce mapped output.</p><p>UDM reference implementation has a web application interface that provides design-time functionality as well as a repository to hold mappers and jobs that can be managed from the portal. The portal supports multi-user functionality.</p><blockquote>Apologies for a long write-up, all with the good intention of sharing details :)</blockquote><h3>Tech Stack</h3><p>UDM’s design-time component requires heavy user interaction to define mapping and transformations. To facilitate rapid development, NodeJS and React framework was made based on the ease of development and community support with tons of modules supporting mundane to pretty interesting features. A JSON Db, file-based data store was used to store mapper definitions, jobs, users and other artifacts that are created and generated on the portal. Intentionally, the components are chosen to facilitate a quick prototyping exercise. Throughout the application, material-UI is used for UI design and numerous node modules (npm modules) are put to use. My sincere thanks to the contributors of those modules. At present, the reference implementation supports only Excel (xlsx) file format for input and output. Extending this to support other desired formats should not be an issue.</p><p>The concept and the architecture can be expanded to use more robust industry-standard components as appropriate. You are welcome to explore this for further enhancements. The reference implementation is open-sourced on GitHub at <a href="https://github.com/gvensan/Universal-Data-Mapper">Git — Universal Data Mapper</a></p><h3>Demo Flow</h3><p>To describe the features and mapper design flow in the UDM tool, a standard <strong>SAP</strong> <strong>FBL5N</strong> (Customer Line Items) report as the mapping source and a custom report with extracts of customers, sales (transactions) and payment details as the mapping target are considered.</p><p><strong>SAP</strong> <strong>FLN5N</strong> is a standard SAP transaction code available within R/3 SAP systems that provides transaction details as customer line items. The target format is a pure-custom template with the goal of extracting entity details with the scope of organizing data proprietary to a target system.</p><p>This write-up takes the approach of UDM walk-through with a sample mapper design in a step-by-step manner, aligned with the specifications described in the article <a href="https://medium.com/@wtx/building-a-universal-data-mapper-part-1-1b59ad89f665?source=friends_link&amp;sk=1c74257bc24e1cee43b8a078348437cc">Building a Universal Data Mapper: Part 1</a> of the series.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2uCDrJG0ej-JtZof9lHbDA.jpeg" /></figure><p>If and when you are ready with your own instance of this reference implementation running on your local machine or in a docker container, you would be able to sign up for an account and login. The same instance can be used to sign up new users.</p><p>So, let us begin.</p><h3>A quickie on the terms used in UDM</h3><p>Following are some of the terms used and referred to in the UDM.</p><p><strong><em>Named Lookups</em></strong> — A named lookup source either internal (source file) or external source file to be used for looking up a value to return an attribute from the source file</p><p><strong><em>Static Value</em></strong> — A plain static value that can be assigned to a target attribute</p><p><strong><em>Lookup Value</em></strong> — A lookup value from the source sheet, a simple value lookup by attribute name</p><p><strong><em>Empty Value</em></strong> — In conditional mapping, it is a check for empty value on a given attribute. On the preprocessors and condition evaluations, it represents the action of resetting the attribute value to empty value.</p><p><strong><em>Skip Row</em></strong> — In conditional mapping, it represents the intent to skip the current source row (ignore row) in the mapping process</p><p><strong><em>vLookup Name</em></strong> — A construct that allows you to specify the named lookup to be used for lookup purposes. Yes, you can have multiple named lookups defined and put to use as appropriate.</p><p><strong><em>Simple Mapping</em></strong> — A simple mapping that assigns a source value to a target attribute</p><p><strong><em>Conditional Mapping</em></strong> — A condition evaluates to TRUE or FALSE and assigns the result of the set condition</p><p><strong><em>Switch Mapping</em></strong> — A traditional switch-case construct allowing multiple conditions to be evaluated to arrive at the desired value for the target attribute. Switch mapping also supports a default condition (a default value) to be assigned to the target attribute when all conditions fail.</p><p><strong><em>Aggregated Mapping</em></strong> — A statistical aggregation of an attribute on the subset of rows grouped by a distinct mode of data consideration and assign the resulting value to the target attribute.</p><p><strong><em>Custom Mapping</em></strong> — A developer friendly, JS code execution and assign the resulting value to the target attribute. There are conventions to be followed while attempting to access the source or target data (later)!</p><p><strong><em>Finally</em></strong> — Even though the mapping and transformation constructs supported in the UDM would do the job, at times you may want an override facility to alter the value before it gets assigned to the target attribute. The <em>finally</em> option simply serves the purpose by providing a facility to execute a custom JS code snippet.</p><p><strong><em>Joiner</em></strong> — Relevant when attempting to construct a value by concatenation of results from two or more conditions. It can be either a single character or a short sting, as appropriate.</p><p>Condition Joiners — When using multiple conditions for evaluation, this helps define how the results of the conditions are joined together. Joiner conditions can be either a logical condition (AND, OR) or an arithmetic condition (Add, Multiply, Subtract, Divide). Computed and Aggregated mapping supports this condition joiners as they support multiple conditions in them.</p><p><strong><em>Stage 1: Mapper Specification</em></strong></p><p>Let us begin by identifying the new mapper with a name. Followed by specifying the source and target templates.</p><blockquote>The uploaded templates are used to identify the sheet and header composition of source and target data, any data (rows) if present will be ignored.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RJoIpFUrG9skFLMM3HhI5A.png" /></figure><p>Note that the mapper design is a guided activity with a step-wise progression towards completing a mapper. At any point in time, you would be able to change the data source or target or other configurations — however, be aware that the change might reset certain dependent configurations allowing you to redefine the strategy.</p><p>You can either use the numbered step navigation or the prev-next navigation to move along the design process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R0FOI9hZ-69HS2zhM1XTXA.png" /></figure><p>If the mapping is about tweaking and making minor changes to the source data, the target template can be set as the source itself. This can serve the use cases like filter &amp; copy, data subsetting on source data. All you have to do is to checkmark the <em>Reuse Source file</em> option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*alhzicZ22PwI4tlvlu0byQ.png" /></figure><p>Occasionally, there could be a use case to lookup value for an attribute dynamically based on the value found on a specific attribute at runtime — (similar to the vLookup feature of Excel). For this purpose, you would be able to define the lookup source. There are two options available for lookup source definition.</p><p>a) The same source file (same or different sheet) can be used as the lookup source <em>(Internal Lookup)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*ICprfQeJzhIQ60eyyj0U8Q.png" /><figcaption>Internal Lookup</figcaption></figure><p>b) A distinct file that serves purely for the purpose of lookup can be uploaded and used at runtime <em>(External Lookup)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*rKnXPW21KMdclnfHrUE1Jg.png" /><figcaption>External Lookup</figcaption></figure><blockquote>Use of Named Lookups is on need basis and optional</blockquote><p><strong><em>Stage 2: Source Validation</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ffk6FtVX01za5U3XXpBRZw.png" /><figcaption>Source Validation Rules</figcaption></figure><p>UDM parses the source template and identifies the sheets with their attribute composition (from the first row on the sheet).</p><p>Though Excel identifies data attributes as a &lt;rowNum, Colum&gt;, UDM uses a notation of &lt;rowNum, Col Name&gt; making it easy to operate on a human-readable attribution.</p><p>In the Source Validation stage, UDM presents the identified sheets and attributes on each sheet.</p><p>Let us analyze some of the controls available on this screen.</p><p><strong>Ignore Sheet</strong> — Mark the sheet as ignored for the mapping.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5qBj7ZRAPr_0WHhD1IT43A.png" /><figcaption>Ignore Sheet</figcaption></figure><p><strong>Header Row</strong> — Typically, the first row carries the header names (column name attribute). If the header column is present in a row other than the first row, you can specify the row number and reload the sheet level configuration to load attribute names appropriately.</p><blockquote>This is useful when the report contains meta-information that is not to be considered for mapping at the beginning of the report.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B9gVAzSVIkPfvk4eWOpXKQ.png" /><figcaption>Header Row Identification</figcaption></figure><p><strong>Merge Sheet</strong> — If the data in the current sheet need to be merged with another sheet for consolidated processing in the mapping, you can specify the merge destination sheet here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NFmtYjOnQ0StrpZ6NpZDNg.png" /><figcaption>Data Merge Destination</figcaption></figure><p><strong>Attribute Setting</strong> — On the set of attributes defined on the sheet, you can</p><p>a) Identify an attribute as the <strong>key (futuristic, </strong>scope and use case is evolving)</p><p>b) Identify the attributes that are <strong>required</strong> (not empty)</p><p>c) identify the attributes that are expected to have a <strong>unique</strong> value in the dataset</p><p>d) Most importantly, identify the data type expected for the attribute.</p><blockquote>Currently, String, Number, and Date types are supported with String as the default data type.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IsgMus0oRI-ggauGSjLXrw.png" /><figcaption>Attribute-level Validation</figcaption></figure><p><strong>Preprocessors</strong> — It is often useful to preprocess the source data to ensure that the corrections and amendments are made to the data before mapping. Sheet preprocessors serve the purpose of data cleanup and corrections with a list of standard preprocessors.</p><p>You can define multiple preprocessors — essentially a data reduction mechanism to derive at a focused dataset to be put through the mapping process.</p><blockquote>Preprocessors will be executed in sequence as a pipeline with input for each preprocessor from the previous preprocessor</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.slideshare.net%2Fslideshow%2Fembed_code%2Fkey%2FDSTaaN9pAqeVCR&amp;url=https%3A%2F%2Fwww.slideshare.net%2Fglobalss1%2Fudm-preprocessor-functions&amp;image=https%3A%2F%2Fcdn.slidesharecdn.com%2Fss_thumbnails%2Fudmpreprocessors-functions-190430112302-thumbnail-4.jpg%3Fcb%3D1556623480&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=slideshare" width="600" height="500" frameborder="0" scrolling="no"><a href="https://medium.com/media/863d9c6da1c2ad20b23eff11ddf552c2/href">https://medium.com/media/863d9c6da1c2ad20b23eff11ddf552c2/href</a></iframe><p>In the current exercise, let us define the following source validation rules.</p><ol><li>Convert the attribute <em>Name1</em> to <em>uppercase</em></li><li>Mark the <em>Customer</em> and <em>Name1</em> attribute as <em>required</em></li><li><em>Posting Date, Clearing Date</em>, and <em>Document Date</em> attributes to be of type <em>Date</em></li><li><em>Amount in local currency</em> attribute to be of type <em>Number</em></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KWEFy_agKHBQq1Ek0wBNKg.png" /></figure><p><strong><em>Stage 3: Target Validation</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KBAoWNaf8u08HXt5PHWfUA.png" /></figure><p>UDM parses the target template and identifies the sheets with their attribute composition (from the first row on the sheet). Though Excel identifies data attributes as a &lt;rowNum, Colum&gt;, UDM uses a notation of &lt;rowNum, Col Name&gt; making it easy to operate on a human-readable attribution.</p><p>In the Target Validation stage, UDM presents the identified sheets and attributes on each sheet.</p><p>Let us analyze some of the controls available on this screen.</p><p><strong>Ignore Sheet</strong> — Mark the sheet as ignored for the mapping. It simply means that the target sheet will not be presented in the Map &amp; Transform stage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eTYJFRNlOMR70JU0Eb8U8w.png" /></figure><p><strong>Attribute Setting</strong> — On the set of attributes defined on the sheet, you can</p><p>a) Identify an attribute as the <strong>key (futuristic, </strong>scope and use case is evolving)</p><p>b) Identify the attributes that are <strong>required</strong> (not empty)</p><p>c) identify the attributes that are expected to have a <strong>unique</strong> value in the dataset</p><p>d) Most importantly, identify the data type expected for the attribute.</p><blockquote>Currently, String, Number, and Date types are supported with String as the default data type.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pBZKJCgf8Tv0v4bgrHQBHQ.png" /></figure><p>In the current exercise, let us define the following target validation rules.</p><ol><li>On the <em>Sales</em> sheet, update the data types of the following attributes:</li></ol><p><em>Due Date</em> as <em>Date</em></p><p><em>Total Amount</em> as <em>Number</em></p><p>2. On the Payment Receipts sheet, update the data types of following attributes:</p><p><em>Payment Date </em>as <em>Date</em></p><p><em>Payment Amount </em>as<em> Number</em></p><p>3. On the Payment Receipt Details sheet, update the data types of following attributes:</p><p><em>Ref Document Date </em>as <em>Date</em></p><p><em>Payment Amount </em>and <em>Adjustment Amount</em> as<em> Number</em></p><p><strong><em>Stage 4: Map &amp; Transform</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fWB4ZrNmM0zEsvCDYJRevA.jpeg" /></figure><p>UDM presents the chosen target sheets for building mapping and transformation rules.</p><blockquote><strong>Note:</strong> that the target sheets that are marked as Ignore will not be presented as a candidate for mapping.</blockquote><p>Start defining mapping and transformations as required for each of the target sheet attributes.</p><p>Formulate the strategy for mapping of each sheet:</p><p>a) Mapping Consideration</p><p>b) Identify the source sheet</p><p>c) Identify the data-consideration strategy</p><p>d) Define preprocessors</p><p>e) Define a mapping for the target attribute</p><p>f) Define transformation at attribute-level as appropriate</p><p><strong>Mapping Consideration</strong> — Decide whether the target sheet requires mapping or to be ignored. If appropriate, enable the copy attributes by name in order to pre-populate the mapping of target attributes with the source attributes of the same name. This is a handy feature to save time and get a quick and simple mapping for attributes, use only when applicable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s-9ZIf3e0jFNhHg2R_Hs8g.png" /></figure><p><strong>Identify Source sheet</strong> — For a given target sheet, choose the source sheet where the data will be picked up for mapping.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EKTGyC99rgw3e9eCS6H6gw.png" /><figcaption>Source Sheet selection</figcaption></figure><p><strong>Data Consideration Strategy</strong> — Identify a suitable strategy to consider rows of data from the chosen source sheet for mapping. Following strategies are available:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yLqUOep55LwKKGfJjw7P-A.png" /></figure><p>a) <em>All Rows</em> — Consider all rows from the source sheet. This will result in mapping every single row from the source sheet to the target sheet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z39GxZKBhPB0-aLoFb5lYw.png" /></figure><p>b) <em>Distinct Rows</em> — Consider rows from the source sheet with distinct values on the specified attribute.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4J1OzrGkle7gHc-FTRex_w.png" /></figure><p>c) <em>Distinct Composite Rows</em> — Consider rows that are distinct based on the composite values on the specified attributes (typically more than one)</p><p>An <em>All Rows</em> mode is a simple row-for-row mapping from source to target. However, the <em>Distinct</em> modes segregate the source data as groups based on the composite scheme and may result in multiple groups with each group having one or more rows in them. In such cases, the mapping would default to values found on the first row in the group. But, for number values — use of Aggregate mapping would consolidate the number values from all the rows in the group.</p><blockquote>Use of Distinct and Distinct Composite modes for data consideration should be thoroughly evaluated for use case fitment. Otherwise, it might result in partial data processing.</blockquote><p>Now, let us go mapping!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e2w2IyjmkLI5zsaZFndOZQ.png" /><figcaption>Attribute Mapping</figcaption></figure><p>Each of the attributes in the target sheet can be mapped to attributes found on the source sheet. The mapping can range from a simple assignment to mapping with transformation. Wide range of transformations is supported — simple arithmetic, string manipulation to statistical aggregations along with conditional evaluation and executions. If the standard transformation options does not suffice, a custom transformation in the form of a plain JS script can be used as well.</p><p>a. <strong><em>Simple Mapping</em></strong> — Used for assigning static value, lookup value from a lookup source or a looked up value from the source sheet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zoy8rhKcN38aERU1XmIi3Q.png" /></figure><p>Assign a looked up value from the source sheet found on the specified attribute</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*84sl7NliMfbTLvixtJKLFQ.png" /></figure><p>Assign a looked up value from a pre-defined lookup source</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Actau7-6JkZNdKT3iPHE6g.png" /></figure><p>Assign a static value to the target attribute</p><p>b. <strong><em>Conditional Mapping</em></strong> — Assigning a value for the target attribute based on a logical condition. This gives an opportunity to choose the value to be assigned to a target attribute based on the TRUE or FALSE outcome of the condition evaluation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XRxn37n3VyDeMPYN1CqptQ.png" /></figure><p>The condition could be based on a looked up value from the source sheet or a looked up value from a lookup source.</p><p><strong>Conditions</strong> — Essence of conditional mapping is to evaluate a logical condition to arrive at a TRUE or FALSE result. Based on the mapping defined for the TRUE/FALSE conditions, the resulting value will be assigned to the target attribute. Following are the conditions supported in the conditional mapping.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.slideshare.net%2Fslideshow%2Fembed_code%2Fkey%2FEVuEcg1gquBmAT&amp;url=https%3A%2F%2Fwww.slideshare.net%2Fglobalss1%2Fudm-conditional-mapping-functions&amp;image=https%3A%2F%2Fcdn.slidesharecdn.com%2Fss_thumbnails%2Fudmconditionalmapping-functions-190430122310-thumbnail-4.jpg%3Fcb%3D1556627006&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=slideshare" width="600" height="500" frameborder="0" scrolling="no"><a href="https://medium.com/media/681af495a1276f9f1a1a81d1b16ba4d3/href">https://medium.com/media/681af495a1276f9f1a1a81d1b16ba4d3/href</a></iframe><p><strong>Result</strong>— A conditional mapping evaluates the specified condition and arrives at a TRUE or FALSE value. The TRUE and FALSE condition can be associated with its own evaluation construct ranging from Skip Row, Empty Value to Static, Lookup and Looked Up values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XC0KCp4mTRYgzJt7VTHWVg.png" /><figcaption>TRUE Condition</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wPbhSedB9USRb-tw6VR45w.png" /><figcaption>FALSE Condition</figcaption></figure><p>c. <strong><em>Switch Mapping</em></strong> — Used for evaluating multiple conditions and assign a value from the condition that successfully evaluates to TRUE.</p><p>Note that the conditions supported for evaluation are the same as the list of functions supported in the Conditional Mapping.</p><p>They are Is Empty, Is Not Empty, Equals to, Not Equals to, Less than, Less than or equals to, Greater than or equals to, Starts With, Ends With, Contains and Substring.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dStyFs4bmnnBNPDp6aM4xA.png" /><figcaption>First Condition of the Switch Mapping</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-hpZdiwIFDBuu2lBDJRtGw.png" /><figcaption>Second Condition of the Switch Mapping</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nx-TRg-dG5ug1G8Z1yViww.png" /><figcaption>Default Condition of the Switch Mapping</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R8SEjw6F6THA-lg9YcHWNw.png" /><figcaption>The final form of Switch Mapping</figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.slideshare.net%2Fslideshow%2Fembed_code%2Fkey%2F8HovxB5EfWNKHc&amp;url=https%3A%2F%2Fwww.slideshare.net%2Fglobalss1%2Fudm-switch-mapping-functions&amp;image=https%3A%2F%2Fcdn.slidesharecdn.com%2Fss_thumbnails%2Fudmswitchmapping-functions-190430154339-thumbnail-4.jpg%3Fcb%3D1556639036&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=slideshare" width="600" height="500" frameborder="0" scrolling="no"><a href="https://medium.com/media/f8876b478d1011569a18c02815cfbd7d/href">https://medium.com/media/f8876b478d1011569a18c02815cfbd7d/href</a></iframe><p>d. <strong><em>Computed Mapping</em></strong> — Used for evaluating multiple conditions and assign the resulting values joined by appropriate join functions.</p><p>The supported conditions for evaluation are Uppercase, Lowercase, Concatenate, Substring, Convert to String, Convert to Number, MD5 Token, Add, Subtract, Multiply and Divide.</p><p>Ensure that the right functions are chosen based on the data types defined on the target and source attributes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dStyFs4bmnnBNPDp6aM4xA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zWSHbNfFX1_3HUMZtj6mog.png" /><figcaption>First Condition</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xB4g-8ub0Cse-za6PqAsgA.png" /><figcaption>Second Condition</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5HiMKQDjOFLnLw--0Qr6qg.png" /><figcaption>Join the result of the conditions via a Join function (concatenate)</figcaption></figure><p>Here is a list of functions supported in the Computed Mapping.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.slideshare.net%2Fslideshow%2Fembed_code%2Fkey%2FtaetJvaELRrA2X&amp;url=https%3A%2F%2Fwww.slideshare.net%2Fglobalss1%2Fudm-computed-mapping-functions&amp;image=https%3A%2F%2Fcdn.slidesharecdn.com%2Fss_thumbnails%2Fudmcomputedmapping-functions-190430145449-thumbnail-4.jpg%3Fcb%3D1556636109&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=slideshare" width="600" height="500" frameborder="0" scrolling="no"><a href="https://medium.com/media/6095f89e91272f816cffec50a4506590/href">https://medium.com/media/6095f89e91272f816cffec50a4506590/href</a></iframe><p>e. <strong><em>Aggregated Mapping</em></strong> — Used for evaluating multiple numeric functions and assign the resulting values joined by appropriate join functions.</p><p>The supported conditions are typical statistical and aggregation functions such as Sum, Average, Min, Max, Mean, Median, Variance, Standard Deviation, and Percentile.</p><p>Ensure that the right functions are chosen and data types defined on the target and source attribute is <em>Number.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yla8ZaiOp4UxLYRpRTgx3g.png" /><figcaption>First Condition</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lP8KoClpi57wTjLw9tI6hQ.png" /><figcaption>Second Condition</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*befgLoFilULYh8YJl9L-GA.png" /><figcaption>Join the result of the conditions via a Join function (Add)</figcaption></figure><p>Skip Conditions functionality allows you to skip rows from the aggregation activity. Use it as appropriate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2bPmztPsO_pHjNwLeu5FYQ.png" /><figcaption>Skip Rows that have the amount value less than 0</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t0fHnFfgn8eYjQQy5RZQ6w.png" /><figcaption>The final form of Aggregated Mapping with Skip Condition</figcaption></figure><p>f. <em>Custom Mapping</em> — A pure JS code snippet execution and assigning the returned value to the target attribute.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dwh8CNYtO-67g6vsIzhJlw.png" /></figure><p>Use of Finally functionality — an example</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6bs75T8ZiWJgC7-h61pVKg.png" /><figcaption>The final block executes the code snippet and the result is assigned to the target attribute</figcaption></figure><p>A bit about the source data template:-</p><ul><li>It contains financial transactions like Invoices, Credit &amp; Debit Notes and Payment Receipts</li><li>It also contains clearing details around the knock-off, association of one or more credit entries with one or more debit entries</li></ul><p>On the same note, the target template expects the data to be organized in a manner</p><ul><li>Extract distinct customer details referred in the source data in <em>Customers</em> sheet</li><li>Consolidate transactions of type Invoice, Credit and Debit notes in the <em>Sales</em> sheet</li><li>Consolidate unutilized payments (uncleared, i.e., Clearing Document reference is empty) and capture a record with the aggregated sum of receipt amounts in the <em>Payment Receipts</em> sheet</li><li>Aggregate the customer level outstanding on the <em>Customer Outstanding</em> sheet</li></ul><p>It should be noted that the mapper needs to account for Cleared and Open receipts, which are distinct in nature and cannot be processed in a single-pass at the source data. Hence, another mapper is engaged specifically focusing on processing cleared documents and chained to the main mapper. The chained mapper processes</p><ul><li>Consolidate utilized payments (cleared, i.e., Clearing Document reference is found) and capture a record with the aggregated sum of receipt amounts in the <em>Payment Receipts</em> sheet</li><li>Consolidate the transactional documents (Invoice, Credit and Debit notes) that are cleared by a clearing document in the <em>Payment Receipt Details</em> sheet</li></ul><p>In essence, both the mappers operate on the same source but executes different logic and consolidate them into a single output file conforming to the specified target template.</p><h3><strong>Main Mapper — SAP FBL5N Mapper (Stage 1)</strong></h3><p>In the Main mapper, the focus is to map the open documents (not cleared)</p><p><strong>Customers Sheet Mapping</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g2eRn6g4d9gQFlYXHuc9NA.png" /><figcaption>Customers Sheet Mapping</figcaption></figure><p>Following mapping &amp; transformation applied to generate Customers sheet</p><p>a) Choose Distinct rows from the source on <em>Customer</em> attribute</p><p>b) From the grouped records by the distinct key, a simple map for <em>Customer</em> to the <em>Customer ID</em> attribute</p><p>c) From the grouped records by the distinct key, a simple map for <em>Name 1 </em>to the <em>Customer Name </em>attribute</p><p>Rest of the attributes are not required, hence not mapped</p><p><strong>Sales Sheet Mapping</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wb8OZxvRHdo5DPTdnnOwuA.png" /><figcaption>Sales Sheet Mapping</figcaption></figure><p>Following mapping &amp; transformation applied to generate <em>Sales</em> sheet.</p><p>Apply following preprocessors:-</p><p>i) Skip rows that are of payment types by checking the <em>Document Type</em> attribute value equal to DZ</p><p>ii) Skip rows that are cleared — non-empty value on <em>Cleared Document</em> attribute</p><p>a) Choose Distinct Composite rows from the source on <em>Customer</em> and <em>Document Number </em>attributes</p><p>b) A simple map for <em>Document Number </em>to the <em>Doc # </em>attribute</p><p>c) A switch map for on <em>Document Type — </em>If RV, assign <em>Tax Invoice</em> else <em>Debit Note</em> as the <em>default</em> value for the <em>Type </em>attribute</p><p>d) A simple map for <em>Customer</em> to the <em>Customer ID</em> attribute</p><p>e) A simple map for <em>Name 1 </em>to the <em>Customer Name </em>attribute</p><p>f) A simple map for <em>Document Date </em>to the <em>Document Date </em>attribute</p><p>g) A computed map for <em>Due Date</em> by adding <em>45</em> to the <em>Document Date</em> attribute</p><p>h) An aggregated map for <em>Total Amount</em> by summing the <em>Amount in local currency</em> values on the grouped records. Add a final block and check if the aggregated sum is found to be &lt; 0, update the Type attribute on the constructed row with <em>Credit Note.</em></p><p>i) A computed map for <em>Doc Id </em>by concatenating <em>Customer</em> and <em>Document Number </em>attributes</p><p>Rest of the attributes are not required, hence not mapped.</p><p><strong>Payment Receipts Sheet Mapping</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xfmOVrt4tdeKLYi0W9PQMA.png" /><figcaption>Payment Receipts Sheet</figcaption></figure><p>Following mapping &amp; transformation applied to generate <em>Payment Receipts</em> sheet.</p><p>Apply following preprocessors:-</p><p>i) Skip rows that are of payment types by checking the <em>Document Type</em> attribute value equal to DZ</p><p>ii) Skip rows that are cleared — non-empty value on <em>Cleared Document</em> attribute</p><p>a) Choose Distinct Composite rows from the source on <em>Customer</em> and <em>Document Number </em>attributes</p><p>b) A simple map for <em>Document Number </em>to the <em>Doc # </em>attribute</p><p>c) A simple map for <em>Customer</em> to the <em>Customer ID</em> attribute</p><p>d) A simple map for <em>Name 1 </em>to the <em>Customer Name </em>attribute</p><p>e) A simple map for <em>Payment Date </em>to the <em>Document Date </em>attribute</p><p>f) An aggregated map for <em>Payment Amount</em> by summing the <em>Amount in local currency </em>values on the grouped records.</p><p>g) A computed map for <em>Doc Id </em>by concatenating <em>Customer</em> and <em>Document Number </em>attributes</p><p>Rest of the attributes are not required, hence not mapped.</p><h3><strong>Second Mapper: SAP FBL5N Mapper (Stage 2)</strong></h3><p>In the Main mapper, the focus is to map the cleared documents and populate the outstanding sheet.</p><p><strong>Sales Sheet Mapping</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zXGirR_CLleEtUCRWdGfgQ.png" /><figcaption>Sales Sheet Mapping</figcaption></figure><p>The following mapping &amp; Following mapping &amp; transformation applied to generate <em>Sales</em> sheet.</p><p>Apply following preprocessors:-</p><p>i) Skip rows that are of payment types by checking the <em>Document Type</em> attribute value not equal to DZ</p><p>ii) Skip rows that are not cleared — empty value on <em>Cleared Document</em> attribute</p><p>a) Choose Distinct Composite rows from the source on <em>Customer</em> and <em>Document Number </em>attributes</p><p>b) A simple map for <em>Document Number </em>to the <em>Doc # </em>attribute</p><p>c) A switch map for on <em>Document Type — </em>If RV, assign <em>Tax Invoice</em> else <em>Debit Note</em> as the <em>default</em> value for the <em>Type </em>attribute</p><p>d) A simple map for <em>Customer</em> to the <em>Customer ID</em> attribute</p><p>e) A simple map for <em>Name 1 </em>to the <em>Customer Name </em>attribute</p><p>f) A simple map for <em>Document Date </em>to the <em>Document Date </em>attribute</p><p>g) A computed map for <em>Due Date</em> by adding <em>45</em> to the <em>Document Date</em> attribute</p><p>h) An aggregated map for <em>Total Amount</em> by summing the <em>Amount in local currency</em> values on the grouped records. Add a final block and check if the aggregated sum is found to be &lt; 0, update the Type attribute on the constructed row with <em>Credit Note.</em></p><p>i) A computed map for <em>Doc Id </em>by concatenating <em>Customer</em> and <em>Document Number </em>attributes</p><p>Rest of the attributes are not required, hence not mapped.</p><p><strong>Payment Receipts Sheet Mapping</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2jet-zjWaXHeQhhTJAmGjQ.png" /><figcaption>Payment Receipts Mapping</figcaption></figure><p>Following mapping &amp; transformation applied to generate <em>Payment Receipts</em> sheet.</p><p>Apply following preprocessors:-</p><p>i) Skip rows that are of payment types by checking the <em>Document Type</em> attribute value not equal to DZ</p><p>ii) Skip rows that are not cleared — empty value on <em>Cleared Document</em> attribute</p><p>a) Choose Distinct Composite rows from the source on <em>Customer</em> and Clearing <em>Document </em>attributes</p><p>b) A simple map for <em>Document Number </em>to the <em>Doc # </em>attribute</p><p>c) A simple map for <em>Customer</em> to the <em>Customer ID</em> attribute</p><p>d) A simple map for <em>Name 1 </em>to the <em>Customer Name </em>attribute</p><p>e) A simple map for <em>Payment Date </em>to the <em>Document Date </em>attribute</p><p>f) An aggregated map for <em>Payment Amount</em> by summing the <em>Amount in local currency </em>values on the grouped records.</p><p>g) A computed map for <em>Doc Id </em>by concatenating <em>Customer</em> and <em>Document Number </em>attributes</p><p>Rest of the attributes are not required, hence not mapped.</p><p><strong>Payment Receipts Detail Sheet Mapping</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P5TxHYikE2HqjlmZL9mWdg.png" /><figcaption>Payment Receipts Detail</figcaption></figure><p>Following mapping &amp; transformation applied to generate <em>Payment Receipt Details</em> sheet.</p><p>Apply following preprocessors:-</p><p>i) Skip rows that are of payment types by checking the <em>Document Type</em> attribute value equal to DZ</p><p>ii) Skip rows that are cleared — empty value on <em>Cleared Document</em> attribute</p><p>a) Choose Distinct Composite rows from the source on <em>Customer</em> and Clearing <em>Document </em>attributes</p><p>b) A simple map for <em>Clearing Document </em>to the <em>Doc # </em>attribute</p><p>c) A simple map for <em>Document Number </em>to the <em>Ref Doc # </em>attribute</p><p>c) A switch map for on <em>Doc Type — </em>If RV, assign <em>Tax Invoice</em> else <em>Debit Note</em> as the <em>default</em> value for the <em>Type </em>attribute</p><p>d) An aggregated map for <em>Payment Amount</em> by summing the <em>Amount in local currency </em>values on the grouped records.</p><p>e) A computed map for <em>Doc Id </em>by concatenating <em>Customer</em> and <em>Clearing Document </em>attributes</p><p>f) A computed map for <em>Ref Doc Id </em>by concatenating <em>Customer</em> and <em>Document Number </em>attributes</p><p>g) A simple map for <em>Document Date </em>to the <em>Ref Document Date </em>attribute</p><p>h) A simple map for <em>Customer</em> to the <em>Customer ID</em> attribute</p><p>Rest of the attributes are not required, hence not mapped.</p><p><strong>Customer Outstanding Sheet Mapping</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y5ABQKuYcs1q0bu3UMuQvg.png" /><figcaption>Customer Outstanding Sheet</figcaption></figure><p>Following mapping &amp; transformation applied to generate <em>Customer Outstanding </em>sheet.</p><p>a) Choose Distinct row from the source on <em>Customer</em> attribute</p><p>b) A simple map for <em>Customer</em> to the <em>Customer No</em> attribute</p><p>c) An aggregated map for <em>Total Receivable </em>by summing the <em>Amount in local currency </em>values on the grouped records with a skip condition to skip rows with a <em>Document Type</em> value equal to DZ (consider only non-receipt, transactional documents)</p><p>d) An aggregated map for <em>Total Received </em>by summing the <em>Amount in local currency </em>values on the grouped records with a skip condition to skip rows with a <em>Document Type</em> value not equal to DZ (consider only receipt documents)</p><p>e) An aggregated map for <em>Total Outstanding </em>by summing the <em>Amount in local currency </em>values on the grouped records (all documents)</p><p>f) A simple map for <em>Name 1</em> to the <em>Customer Name</em> attribute</p><p>Rest of the attributes are not required, hence not mapped.</p><p>A summary of the mapping and transformations on the Mapper available for a quick snapshot of the mapping and transformation.</p><h3><strong>Chaining Mappers: Stage 3</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PBukr3VFocUY5pCtK0infQ.png" /></figure><p>In the Main mapper, in the Post Processing stage enable chaining and add the SAP FBL5N Mapper — Stage2 mapper as a chained mapper. This will ensure that any execution of the Main mapper will also execute the chained mapper(s) at all times.</p><p>On the UDM portal, the chained mapper construct will appear as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6kr-QRBUudvdKBsU7nxy6A.png" /><figcaption>Chained Mapper</figcaption></figure><p>Now, let us submit a job to execute the mapper.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HOYZenM_EJSwpMS3mk9flQ.png" /><figcaption>New Job submission</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L7HW-iB_oYmk4vebyTmBRw.png" /><figcaption>Job Execution — In Progress</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uz5IOUgcooGFMaEJkFUk6w.png" /><figcaption>Job Execution Successful</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_X28tc1RzHY7V-v7NO7OQg.png" /><figcaption>Jobs Repository</figcaption></figure><p>Available actions on a submitted Job.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*ONKVNm2uV5e6KbMTSYJkjg.png" /><figcaption>Supported Job Actions</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RLwofA8zdGijK5KfJ099NA.png" /><figcaption>Maps Repository</figcaption></figure><p>Available actions on an existing Map.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*TzmUCduErB8ek6Nvqqp2IA.png" /><figcaption>Supported Map Actions</figcaption></figure><p>At this point, you can continue to make changes to the mappers for iterative enhancements making it a reusable map. Similarly, the jobs can be re-executed without needing to upload again to make use of mapper changes.</p><p>New jobs can be created for mappers at any time.</p><p>With this long write-up, Part 2 of Universal Data Mapper as a tool and a walkthrough of a reference implementation is complete.</p><p>The source code of the UDM tool is available on GitHub at <a href="https://github.com/gvensan/Universal-Data-Mapper">Git — Universal Data Mapper</a>. Looking forward to hearing your feedback and thoughts on how this can be enhanced and put to real-world scenarios around data loading, mapping, and migrations.</p><p>I can be reached at iamgvensan -at- gmail -dot- com.</p><p>The UDM series would be concluded with Part 3 discussing around pre-built mapper for real-world migration use cases and finer feature and nuances of the UDM tool. For tech/dev oriented queries and discussions, let us switch to Git.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7cdadd24e396" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Universal Data Mapper: Part 1]]></title>
            <link>https://gvensan.medium.com/building-a-universal-data-mapper-part-1-1b59ad89f665?source=rss-e91261de1a27------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b59ad89f665</guid>
            <category><![CDATA[onboarding]]></category>
            <category><![CDATA[dataloader]]></category>
            <category><![CDATA[data-mapper]]></category>
            <category><![CDATA[data-mapping]]></category>
            <category><![CDATA[data-migration]]></category>
            <dc:creator><![CDATA[Giri Venkatesan]]></dc:creator>
            <pubDate>Mon, 22 Apr 2019 09:12:25 GMT</pubDate>
            <atom:updated>2019-04-30T10:39:35.932Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p>One of the fun things about working in a start-up is that you get to explore new things — constantly challenging yourself, channeling creativity on unexplored things and unsurprisingly the effort and outcome creates excitement and accelerates the path to success.</p><p>Hi, this is Giri Venkatesan — a member of numberz, a fintech startup, providing SaaS solution for Accounts Receivables automation and management with clients in India, the Middle East, and the US. My primary focus was to cater to strategies around Ecosystem Growth &amp; Integration, however, it extended to GTM activities, Solution Architecture and things of priority and strategic interest.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*igVYDN_BEXua4-Bs" /></figure><p>Apart from playing to the role, had the opportunity to build solutions, prototypes and explore ideas that filled a gap or gave a head-start for the product in the right direction. Here I am sharing the journey of one such engagement involving a simple idea that evolved from concept to realization in a short span of time resulting in a working solution, and that gave me the opportunity to dabble with the fun domain of solutions and application building.</p><p>After spending time sifting through data from various ERPs, realized that a general-purpose data mapper tool capable of supporting complex mapping and transformations can expedite data ingestion from source systems. It might sound like classic ETL problem — true, but the problem is not E or L of the ETL — it is more around T, transformation. Essentially, the business processes, ERP customizations and data entry practices that exist in a Business, permeates into the data domain making it complex and unwieldy for a uniform data mapping and transformation strategy. Use of standard tools could help, but lacked the flexibility and added overhead around integration made it unattractive. So, the idea for a general-purpose reusable mapper-transformer tool supporting standard file formats (Excel, csv, tsv) with a rule-based mapping and transformation was born — a Universal Data Mapper tool. Such a data mapper tool could offer a wide range of capabilities to realize a framework capable of reusing mappers with the potential for automated execution (RPA).</p><p>The goal was set to build a reusable mapper for a set of source and target systems that can be reused across customer installations with minimal or no re-working. If accomplished, it can become a tool of great help for ERP implementers and Data Migration specialists dealing.</p><blockquote>For example, an SAP to SFDC migration or vice-versa could become a simpler and quicker affair saving time on the redundant efforts. The oft-repeated bulk transformation activities can become simpler.</blockquote><p>So, the exercise started out by defining a clear set of requirements for the UDM tool that can process data, mapping the records from source to a target format.</p><p>This article is organized in two parts, with the first part around the dissemination of the problem, requirements and a concept for a solution, and the second part around a prototype (reference implementation) that came about at the end of the exercise.</p><h3>Universal Data Mapper (UDM)</h3><p>UDM is a workbench with support for design and run-time activities while working with data files. As a design tool, it enables users to build mappers to produce a map definition. The outcome of the design activity is a named mapper, capturing details of the source and target data templates, mapping and transformation rules and post-processing rules as configuration metadata. At run-time, a mapper can be executed with appropriate input files to produce mapped output. The mapper should be reusable and the execution may be tied to a schedule — e.g., monitoring the arrival of a file on an FTP endpoint or an email on a designated inbox to trigger mapper execution. Such automation can extend to direct loading of mapped data if the target system supports relevant interfaces. The mapper would also be available for an on-demand execution via manual invocation on a web portal or command-line interface.</p><h3>UDM — Mapper Design</h3><p>A guided, step-by-step approach is desired to make the design process intuitive and user-friendly. With each stage refining and preparing the source data for mapping and transformation, supporting more complex pre- and post-processing rules.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uZBeD53n_Qwg6NtF" /><figcaption>Mapper Stages</figcaption></figure><p>Input and output data shall be put through various validation rules over and above the key mapping and transformations.</p><p>At each stage, data errors shall be captured and returned, presenting an opportunity to fix the errors and retry.</p><p>A mapper shall be uniquely identified with an id and can be modified iteratively.</p><p><em>NOTE</em>: Terms <em>row</em> and <em>records</em> are used interchangeably throughout this article.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gZCarYvbz3yqCz_o" /><figcaption>Data Subsetting</figcaption></figure><p>One of the fundamental requirement is to support filter and reduce activities on the source data, represented as conditions/checks. Such a mapper is ideal for data subsetting without needing any transformation to arrive at the final dataset. The mapper should support a flexible framework for defining data filtering, reduce and aggregate rules at appropriate stages.</p><p><strong><em>Stage 1: Mapper Specification</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*fGKIo0WivpRXO2AQ" /></figure><p>The design process caters to stage setting for the mapper.</p><ul><li>Specify a name and a brief description of the mapper</li><li>Upload a source data template, an excel file representing the data layout — sheet names, and within each sheet the data layout around column names and position</li><li>In the same fashion, a target data template shall be uploaded representing the desired layout of output data. If the mapper is all about in-place tweaking or filtering on the source data, it should support an option to reuse the source template as the target without needing to upload again.</li><li>Optionally, one or more lookup sources shall be incorporated in the mapper. A named lookup source is a simple list of &lt;key, value&gt; pairs captured in a file that can be looked up at run-time for mapping and transformation activities.</li></ul><blockquote>A lookup functionality helps in looking up data from external source at runtime in the mapping and transformation rules.</blockquote><p><strong><em>Stage 2: Source Validation Rules</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*A1Bo9PohOe6XnXOG" /></figure><p>It is always a good idea to put the source data through validation checks to ensure the validity of incoming data. Based on the source file template, each sheet shall be presented with identified attributes extracted from a designated header row within the sheet (typically first row, but can be different). You should be able to specify validation rules at the attribute level on each sheet. Here are a few sample validation rules:</p><p>a) <strong>Ignore Sheet</strong> — It is not necessary that every sheet of the source file is of interest for the mapping process. You should be able to ignore a source sheet so as not to consider that sheet data as a source for the mapping process.</p><p>b) <strong>Identify the Header Row</strong> — Each sheet might have different data format, hence may have the header positioned in a row different from the conventional first row. For the mapping process, it is critical to identify the header row on each sheet, as the attributes from the designated row will define the structure/layout of the data on that sheet. A wrong selection may result in erroneous tagging of attributes as the header.</p><blockquote><strong>Data Filtering</strong> — Mapper should be able to weed out the garbage (data that is of no interest) from the processing. This will help identify and operate on the *right* subset derived by the application of appropriate filter conditions that can be contextual, logical or otherwise. The filtering rules are stateless in nature that allows to either skip or retain individual records based on a condition.</blockquote><p>c) <strong>Preprocessors</strong> — Often times data captured on files are in a report format. A report may contain information and attribution that are not necessarily mappable data. In order to build the focused dataset, a subset of records need to be extracted for processing, and preprocessors offer a means to achieve that. At run time, the preprocessors will deduce the subset of data for further processing. A rich set of preprocessors help to identify the subset of processable data. Following are a few potential preprocessors:</p><ul><li><em>Duplicate removal</em> — Identify and remove duplicates</li><li><em>Skip first/last N rows</em> — Skip a number of rows</li><li><em>Skip after N rows</em> — Skip content after a number of rows</li><li><em>Skip row if equals/not equals to</em> — Skip rows matching the condition</li><li><em>Skip row</em> if empty/not empty — Skip rows matching the condition</li><li><em>Skip row</em> <em>if greater than/greater than or equals to</em> — Skip rows matching the condition</li><li><em>Skip row</em> <em>if less than/less than or equals to</em> — Skip rows matching the condition</li></ul><p>d) <strong>Type Validation</strong> — UDM supports three fundamental data types viz., String, Date, and Number. Identifying attributes with the type of Date or Number offers support for type-based validation and transformations. At runtime, these validation rules will identify and report issues, if found.</p><p>e) <strong>Required Validation</strong> — A check for missing values on required attributes. At runtime, these validation rules will identify and report issues, if found.</p><p>f) <strong>Unique Validation</strong> — A check to verify the uniqueness of value on an attribute on the entire dataset. At runtime, these validation rules will identify and report issues, if found.</p><p><strong><em>Stage 3: Target Validation Rules</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*mx7sLBeOg3ncBqgA" /></figure><p>Based on the mapping and transformation rules, a mapper execution will produce the mapped output. A sanity check on the output data can be enforced by defining validation rules at the attribute level.</p><p>Based on the target file template, each sheet is presented with the identified header attributes. You can specify validation rules at the attribute level on a target sheet.</p><p>a) <strong>Ignore Sheet</strong> — It is not necessary that all sheets of the target file required to be populated by the mapper. If a target sheet is not expected to be mapped, the sheet shall be marked as ignored. Ignored target sheets will not be presented as a target while defining mapping rules in the later phase.</p><p>b) <strong>Type Validation</strong> — UDM supports three fundamental data types viz., String, Date, and Number. Identifying attributes with the type of Date or Number offers support for type- validation on the mapper output. At runtime, these validation rules will identify and report issues, if found.</p><p>c) <strong>Required Validation</strong> — A check for missing values on required attributes. At runtime, these validation rules shall identify data issues on the output, if found.</p><p>d) <strong>Unique Validation</strong> — A check to verify the uniqueness of value on an attribute on the entire dataset. At runtime, these validation rules will identify and report issues, if found.</p><p><strong><em>Stage 4: Mapping &amp; Transformation Rules</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*jyMkobGkxmxbhhDM" /></figure><p>With the source and target data layout configured appropriately, necessary rules for mapping (associating a target attribute with a source attribute) and transformation (massaging and manipulation) at an attribute level shall be defined.</p><p>This is the most critical activity in a mapper design. For each of the target sheets, the mapping process involves configuring attribute association and transformation rules.</p><blockquote><strong>Data Reduction</strong> — At times, a decision to skip or retain one or more records can be based on an empirical value derived from a grouped records. The grouping shall be based on data distinctness either at an attribute level or a composite value derived from multiple attributes. It serves as a means to reduce the group to into a single record with numerically aggregating values on an attribute, while retaining other attribute values from the first record. This is a stateful operation and takes into account the entire dataset to identify the group of records for reduce operation.</blockquote><blockquote>The data consideration settings at a sheet level determines the rules for grouping records.</blockquote><p>a) <strong>Sheet Mapping</strong> — A step that identifies and associates a source sheet from which data will be picked up for assignment for a target sheet</p><p>b) <strong>Preprocessors</strong> — Depending on the target context, the focus of mapping is around the subset of data found on the source sheet. Preprocessors provide a set of rules (filters) to locate appropriate data subset to put through the mapping process. Here Following are few potential preprocessors:</p><p>a. <em>Skip row if equals/not equals to</em> — Skip the rows matching the condition on the specified attribute</p><p>b. <em>Skip row if empty/not empty</em> — Skip the rows matching the condition on the specified attribute</p><p>c. <em>Skip row if greater than/greater than or equals to </em>— Skip the rows matching the condition on the specified attribute</p><p>d. <em>Skip row if less than/less than or equals to</em> — Skip the rows matching the condition on the specified attribute</p><p>e. <em>Skip row if starts/ends with</em> — Skip the rows matching the condition on the specified attribute</p><p>f. <em>Skip row if empty</em> — Skip the rows if found to contain no value or empty on the specified attribute</p><p>c) <strong>Data Consideration</strong> — Specify which rows to be considered for processing (from the preprocessed output)</p><p>a. <em>All Rows</em> — Consider all rows for mapping</p><p>b. <em>Distinct Rows</em> — Consider rows with distinct values on the specified attribute. This presents a group of records that will have the same value (distinct on the whole dataset) on the attribute for mapping purposes. An attribute level mapping would consider the first record from the dataset and will ignore the rest; however, it is possible to numerically aggregate values on an attribute from the grouped records and assign to a target attribute.</p><blockquote>Example: Building customer master from records where customer info is repeated across multiple records of the same customer.</blockquote><p>c. <em>Distinct Composite Rows</em> — Consider rows with distinct values composed from one or more attributes on the dataset. This presents a group of records that are having the same composite value for mapping purpose. An attribute level mapping would consider the first record from the dataset and will ignore the rest; however, it is possible to numerically aggregate values on an attribute from the grouped records and assign to a target attribute.</p><blockquote>Example: Building a customer-location master from records where multiple records are found for a customer with each capturing a distinct location.</blockquote><p>d) <strong><em>Attribute Mapping</em></strong> — Association of a source attribute to a target attribute. For each of the source record, the value found on the specified attribute would be copied over to the mapped target attribute.</p><ul><li>A mapping can be augmented with transformation rules that modify the value before assigning with appropriate computation and logical conditions. Supported operations can range from simple arithmetic, conditional/logical to complex aggregations.</li><li>A transformation supports appropriate data massaging/manipulation rules based on the source attribute data type (String, Number or Date). Complex transformation supporting multiple computations and conditions on one or more attributes on the source record with a logical consolidation should also be supported.</li></ul><p>Here are a few potential mapping rules:</p><p>a. <em>Simple Mapping</em> — A simple association of a source and target attribute (without any transformation)</p><p>b. <em>Conditional Mapping</em> — Association of a target attribute with source attributes based on a logical condition. This gives an opportunity to choose the value to be assigned to a target attribute based on the TRUE or FALSE outcome of the condition evaluation.</p><p><em>NOTE: </em>Equivalent to an IF-ELSE condition found in any programming language.</p><p>A condition has three parts</p><ol><li>Source attribute to be considered</li><li>Operator and</li><li>Target attribute to be considered.</li></ol><p>At runtime, a condition would be evaluated for a TRUE or FALSE outcome. Based on the outcome, the mapping specified for the resulting condition would be executed. Following are a few potential condition operators:</p><p>i. <em>Is Empty/Is Not Empty</em> — Evaluate the value on a source attribute for the specified condition</p><p>ii. <em>Is Equals to/Is Not Equals to</em> — Evaluate the value on a source attribute for the specified condition</p><p>iii. <em>Is Less than/Is Less than or Equals to</em> — Evaluate the value on a source attribute for the specified condition</p><p>iv. <em>Is Greater than/Is Greater than or Equals to </em>— Evaluate the value on a source attribute for the specified condition</p><p>v. <em>Substring</em> — Evaluate the substring value on a source attribute for the specified condition</p><p>c. <strong>Switch Mapping</strong> — Switch mapping is an enhanced conditional mapping with support for multiple conditions. Each of the condition would follow the same semantics of conditional mapping as specified above. At runtime, the first condition that evaluates to TRUE would get executed and the rest of the conditions would be ignored. If no condition is satisfied, if defined the DEFAULT condition would be executed.</p><p><em>NOTE: </em>Equivalent to a SWITCH-CASE-DEFAULT construct found in any programming language.</p><p>d. <strong>Computed Mapping</strong> — Assigning a target attribute with the result of a series of computation (arithmetic and string operations) on the source attributes. Essentially, a Computed Mapping employs one or more computing conditions with the result of each condition is passed as input to the next condition, and a chaining operator to consolidate the result. At runtime, the final result of these computations will be assigned to the target attribute.</p><p>Following are a few potential computing operators:</p><p>i. <em>Uppercase/Lowercase</em> — Convert the input attribute of the condition as appropriate</p><p>ii. <em>Concatenate</em> — Concatenate the input and output attribute of the condition</p><p>iii. <em>Substring</em> — Extract the substring from the input attribute of the condition</p><p>iv. <em>Add/Subtract/Divide/Multiply</em> — Apply arithmetic operation on the input and output attributes as appropriate</p><p>Following are a few potential chaining operators:</p><p>i. <em>Concatenate</em> — Concatenate results of the current condition and next condition</p><p>ii. <em>Add/Subtract/Divide/Multiply</em> — Apply the arithmetic operator on the results of the current condition and next condition</p><p>e. Aggregated Mapping — Assigning a target attribute with the result of an aggregate operation applied on the source attribute on the grouped records. This is applicable to only attributes that are identified with Number as data type and a Distinct or Distinct Composite data consideration mode is chosen.</p><p>Following are a few potential aggregation operators:</p><p>i. <em>Sum</em> — Compute the sum of values found on the source attribute in the grouped dataset</p><p>ii. <em>Average</em> — Compute the average of values found on the source attribute in the grouped dataset</p><p>iii. <em>Min/Max</em> — Identify the Min/Max of values found on the source attribute in the grouped dataset</p><p><strong><em>Stage 5: Post-processing Rules</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*WIqLWaovH4Kvvks8" /></figure><p>Occasionally, the desired mapping and transformation cannot be accomplished in a single pass at the source data. It is mainly due to different processing requirements for different groups/categories of data within the source dataset. In such cases, multiple mappers can be created with each mapper focusing on a specific aspect and the mappers can be chained. It is possible to design the chaining that feeds the output of one mapper as input to the next mapper or consolidate the output of all chained mappers into a single output. At runtime, such a mapper with chaining can be executed as a single unit producing the desired output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*usuSL6mqBgekv-yl" /><figcaption>Chained Mappers</figcaption></figure><p>Chaining is optional and should be employed based on the need for multi-pass processing to accomplish the desired mapping.</p><p>Part 1 of the article on <strong><em>Building a Universal Data Mapper</em></strong> is now complete. The primary focus was to set the stage for an ideal UDM tool and requirements that will make it complete and usable potentially for any mapping requirement. In the next part, I will be following up with the details of a reference implementation (prototype) of UDM and dive into a few use cases.</p><p>Also, happy to share that the UDM reference implementation will be open-sourced under MIT license on GitHub soon.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b59ad89f665" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>