Skip to content

Comparing statecharts

The statechart editor allows for comparing two or even three statecharts to each other, displaying the results, and possibly merging selected differences. Figure "Comparing two statecharts" shows a sample comparison result.

Comparing two statecharts

Comparing two statecharts

Comparing a statechart to its local history

Whenever a statechart is saved to its statechart file, the previous version of the file is saved to the local history.

Warning: The local history typically contains a few recent versions of a file. However, you should never rely on anything being available in the local history at all. It is definitely no replacement for a data backup or a version control system

To compare a statechart to an older version in the local history, proceed as follows:

  1. In the project view, right-click on a statechart model file. The context menu opens.
  2. In the context menu, select Compare With → Local History….
  3. In the local history, double-click on the file’s version to compare to.
  4. The comparison results are shown.

Comparing two statecharts

To compare two statecharts, proceed as follows:

  1. In the project view, select two statechart model files.
  2. Right-click on one of the selected statechart model files. The context menu opens.
  3. In the context menu, select Compare With → Each Other.
  4. The comparison results are shown.

Comparing three statecharts

To compare three statecharts, proceed as follows:

  1. In the project view, select three statechart model files.
  2. Right-click on one of the selected statechart model files. The context menu opens.
  3. In the context menu, select Compare With → Each Other.
  4. The Select common ancestor dialog appears. It shows the three selected statechart model files.
  5. Select one of them. It will be regarded as the common ancestor of the two others.
  6. The comparison results are shown.