Using The Comparison Utility
  • 26 Apr 2021
  • 3 Minutes to read
  • Dark
    Light
  This documentation version is deprecated, please click here for the latest version.

Using The Comparison Utility

  • Dark
    Light

Article summary

Overview

This tutorial shows how to use Comparison Utility in Decisions Comparison Utility was implemented for Administrative purposes. It can be used to compare Flows and Rules. There are two options in this Utility: Compare to History or Compare to Flow/Rule. The results that are produced with this Utility should be analyzed in order to check what is the difference between two Flows/Rules or what changes have been done to the Flow/Rule.


Example A: Flows

Compare to History

Through use of the Flow Compare utility, users may observe and analyze differences between versions of the same Flow. To utilize the Compare to History utility:
  1. Create a Flow in a Designer Folder by clicking CREATE FLOW button from Global Action Bar.
  2. In the Flow Designer, add Show Popup step from Favorite Steps category in the Quick Add Step dialog.
  3. Once added, from the Properties tab configure the Subject and MessageInputs.
  4. Connect the Show Popup step to the [End Step].
  5. Save the Flow and Close the Flow Designer.
  6. Back in the Designer Folder, right-click the Flow and select Edit Flow.
  7. Add another Show Popup step beside the first one, by dragging one from the Favorite Steps category. 
  8. Configure the newly added step's Inputs similar to the first one.
  9. When finished, save the changes to the Flow and Close the Flow DesignerBack in the Designer Folder, right-click the Flow and select Compare > Compare To History.
  10. From the Comparison window, under Compare Setup > Pick Flow, select Original Version  - [FLOWNAME]from the dropdown. After observing the Comparison, exit the window. 
    How to read the Results panel 

    To read the Results panel:
    Note both the source and target Flows; these represent the select Flows that are being compared. Then observe each row. Each row that starts with [----diff----] indicate differences between each Flow or version of the Flow.

    The [--------------] StepConnections section shows changes in connections between steps within both versions of the Flow (Note that new Connections were established in the target Flow).

    In the [--------------]  Steps section, note that a new Show Popup step was added. This section indicates which Steps were added to the Flow. 




Flow Designer Method

As a visual application of Flow comparison, the Flow Compare utility may be accessed from the Flow Designer via the Compare link on the top Action bar. 

From this screen users are provided the option to select each of two desired versions for comparison via the two dropdown menus on the top Action bar. Selecting two different versions provides visual representation of the differences and similarities between each Flow's steps and their respective connections.

These steps and paths are color-coded as follows:

BlueRepresents the original steps and paths. 
GreenRepresents added/altered steps and paths. 
Orange Represents removed and deleted steps/paths. 

Additional Notations 
As part of the visual tracking, by selecting the Start or End step on a Flow that has been moved, users may observe the comparison in X and Y locations for those steps in both Flows. 


Compare to Flow

  1. From the same Designer Folder, CREATE an additional Flow for comparison consisting of a single Show Popup step connected to both the Start and End steps. Save and Close the Flow when done. 
  2. From the Designer Folder, right-click the first Flow and select Compare > Compare to Flow. 
  3. From the Comparison window under Compare Setup > Pick Flow, and Pick the second Flow.
  4. Analyze the differences between the two Flows. Note the different GeneratedServiceMethodNames, Ids, Names, CreatedOnDates, etc.

Example B: Rules

In addition to Flows, the Comparison Utility may also be applied to Rules; this helps demonstrate the ways that Rules are changed over the history of their creation.

Similarly, this utility may be used to compare a Rule with a different version of itself, or with a different Rule entirely.
To do so: 
  1. CREATE and design a Rule
  2. Save the Rule, then Close the Rule Designer
  3. Open the Rule and make any desired adjustments; Save and Close once more.
  4. In the Designer Folder right-click the Rule then select Compare > Compare to History
  5. Similar to the Flow Comparison utility, select Original Version from the Pick Rule dropdown. Then observe and analyze the Results. Close the window when complete. 
    Note on changes
    If the Input Value was changed, note any [----diff----] lines pertaining to Input Mapping or Value. This screenshot demonstrates that the Value changed from Test to Not Test


  6. From the same Designer Folder, create another Rule. Then, Save the Rule and Close the Rule Designer. 

  7. From the Designer Folder, right-click the first rule and select Compare > Compare to Rule

  8. From the Comparison window, Pick the second Rule, then observe and analyze any differences by comparing information on any [----diff----] lines in the Results panel. 


Was this article helpful?