{"id":950,"date":"2022-10-10T17:01:04","date_gmt":"2022-10-10T16:01:04","guid":{"rendered":"https:\/\/wp.bizoir.dk\/?p=950"},"modified":"2022-10-11T17:04:06","modified_gmt":"2022-10-11T16:04:06","slug":"how-to-compare-two-revisions-of-a-boomi-component","status":"publish","type":"post","link":"https:\/\/wp.bizoir.dk\/?p=950","title":{"rendered":"How to compare two revisions of a Boomi component"},"content":{"rendered":"<p>Everything that you develop in <a href=\"https:\/\/boomi.com\/\">Boomi<\/a> (processes, maps, connectors, profiles, etc.) is a component and a component in Boomi is always represented (behind the pretty GUI) as a XML document.<\/p>\n<p>This means, that if you have made any change in a Boomi component, and wants to verify which change that you made, you can determine this by comparing two revisions of the <span style=\"color: #0000ff;\">ComponentXML<\/span> for the changed component. This will be a <strong>text<\/strong>-comparison and not a GUI-one, but with a little practice, it is easy enough to interpret.<\/p>\n<p><!--more--><\/p>\n<p>You can use whatever tool you want to compare the two revision. One suggestion is to use <a href=\"https:\/\/notepad-plus-plus.org\/\">Notepad++<\/a> together with the <a href=\"https:\/\/sourceforge.net\/projects\/npp-compare\/\">Compare<\/a> plug-in. They work reasonably well.<\/p>\n<p>First you need to extract the <span style=\"color: #0000ff;\">ComponentXML<\/span> for the two revisions that you want to compare. This can be done both via the Website or by using the <a href=\"https:\/\/wp.bizoir.dk\/?p=842\">Boomi API<\/a>.<\/p>\n<p>The easiest (but least flexible) solution is to use the Website. In the bottom right corner, click on the &#8220;Revisions&#8221; link (marked with blue). This will show you a screen like this:<\/p>\n<figure id=\"attachment_22\" aria-describedby=\"caption-attachment-22\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/wp.bizoir.dk\/wp-content\/uploads\/2022\/10\/Boomi_Revisions.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-22 size-medium\" src=\"https:\/\/wp.bizoir.dk\/wp-content\/uploads\/2022\/10\/Boomi_Revisions.png\" alt=\"Boomi Revisions\" width=\"600\" height=\"225\" \/><\/a><figcaption id=\"caption-attachment-22\" class=\"wp-caption-text\">Boomi Component Revisions<\/figcaption><\/figure>\n<p>This will show you all the different revisions of your component that you have saved. Everytime you click the save-button, a revision will be saved.<\/p>\n<p>Select two (often it will be the two top ones &#8211; which are also the newest two revisions), click on the <span style=\"color: #0000ff;\">ComponentXML<\/span> icon (marked with yellow). For each of these, you will see a result like this:<\/p>\n<p><a href=\"https:\/\/wp.bizoir.dk\/wp-content\/uploads\/2022\/10\/Boomi_ComponentXml.png\"><img decoding=\"async\" src=\"https:\/\/wp.bizoir.dk\/wp-content\/uploads\/2022\/10\/Boomi_ComponentXml.png\" alt=\"Boomi Component XML\" width=\"600\" \/><\/a><\/p>\n<p>The next step is to copy the two revisions to separate documents in your Notepad++. You cannot use Ctrl-A to mark the entire ComponentXML, since the xml is not shown in a real separate window, but only in a useless GUI-simulation of one. A suggestion is to mark the first part, scroll to the bottom and then, while holding down Shift button, click on the very end of the document.<\/p>\n<p>If you use another tool than Notepad++, you might need to save the two revisions in separate files, and then to open them in the compare tool of your choice.<\/p>\n<p>One annoying thing when comparing processes, is that their <span style=\"color: #0000ff;\">ComponentXML<\/span> contain a LOT of <span style=\"color: #0000ff;\">x=&#8221;47.1&#8243; y=&#8221;52.2&#8243;<\/span>. These are simply the x\/y coordinates of lines etc. connecting different actions. For almost every case, they are irrelevant for the comparison, and they will often result in a lot of &#8220;noise&#8221; in the comparison, since it takes almost nothing to make them change between two saves of the process.<\/p>\n<p>Before you make the comparison, consider to replace ALL x\/y values with static values. If your editor supports using <a href=\"https:\/\/en.wikipedia.org\/wiki\/Regular_expression\">regular expressions<\/a> in search\/replace, you can:<\/p>\n<ul>\n<li>search for: <span style=\"color: #0000ff;\">x=&#8221;[0-9\\.]*&#8221;<\/span><\/li>\n<li>replace with: <span style=\"color: #0000ff;\">x=&#8221;-1&#8243;<\/span><\/li>\n<\/ul>\n<p>Do the same replace for the y-coordinate.<\/p>\n<p>After this step, a comparison will show almost only the real differences between two processes.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Everything that you develop in Boomi (processes, maps, connectors, profiles, etc.) is a component and a component in Boomi is always represented (behind the pretty GUI) as a XML document. This means, that if you have made any change in a Boomi component, and wants to verify which change that you made, you can determine &hellip; <a href=\"https:\/\/wp.bizoir.dk\/?p=950\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to compare two revisions of a Boomi component&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[39],"class_list":["post-950","post","type-post","status-publish","format-standard","hentry","category-guides","tag-boomi"],"_links":{"self":[{"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=\/wp\/v2\/posts\/950","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=950"}],"version-history":[{"count":16,"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=\/wp\/v2\/posts\/950\/revisions"}],"predecessor-version":[{"id":968,"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=\/wp\/v2\/posts\/950\/revisions\/968"}],"wp:attachment":[{"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=950"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=950"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}