Skip to content

IntelligentAutomationCommunity/Cortex-Compare-Flow-Packages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Cortex-Compare-Flow-Packages

The following instructions allow you to compare flow packages from different environments and see what flows are different and what is different in them. This proves useful when having disconnected environments where Cortex Gateway Publish functionality cannot be used to check if the master and the published version is diferent.

How to use intructions

  1. Download the following utility: http://gnuwin32.sourceforge.net/packages/diffutils.htm

     Donwload the "complete package, except sources" option
    
  2. Create a folder in your computer, where we will be installing the utility and placing all necessary files for the compassion.

    Example: C:\Users\username\Desktop\FlowComparison
    
  3. Install the utility in the folder created above:

     This should create C:\Users\username\Desktop\FlowComparison\GnuWin32
     Confirm the following file exists C:\Users\username\Desktop\FlowComparison\GnuWin32\bin\diff.exe
    
  4. Logon to Cortex Gateway from one environment and export a package with the flows you want to compare.

     Example: envOne.studiopkg
    
  5. Logon to Cortex Gateway from another environment which you wish to compare and export a package with the same flows as exported in 3

     Example: envTwo.studiopkg
    
  6. Extract both studio packages into separate folders in the working folder:

     C:\Users\username\Desktop\FlowComparison\envOne
     C:\Users\username\Desktop\FlowComparison\envTwo
    
  7. Open command line and navigate to the working folder

     cd C:\Users\username\Desktop\FlowComparison
    
  8. Run the following command to find out which flows are different between both environments

     GnuWin32\bin\diff.exe envOne envTwo -r -y -q --suppress-common-lines
    
  9. The output of the command will display which flows are different.

     Example: Files envOne/Test/Test.flow and envTwo/Test/Test.flow differ
    
  10. If you wish to view which parts of the flow are different, run the following command

     GnuWin32\bin\diff.exe envOne envTwo -r -y --suppress-common-lines
    
  11. The output of the command will display which lines of the file are different

     Example: "value": "An error has occurred in {{f\_sequen | "value": "An error has occured in {{f\_sequenc
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published