IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Developing monitor models > Create monitor models > Combining or merging monitor models

Comparing and merging monitor models

You can compare two monitor models to see their differences and merge them. This capability is most useful when one of the monitor models started as a copy of another, and hence they have some ID similarities. If you export a monitor model from WebSphere Business Modeler, make changes to the model in the Monitor Model editor, and then update the process in WebSphere Business Modeler and export again, you can merge the two models so that your previous updates are not lost.

The models to be compared must be valid monitor models. If one of the models is not valid, you are given the option of making the comparison using a text editor.

When you compare models, you can merge the results into one of the two original monitor models or into a separate, third monitor model.

If that changes to event groups (which are not part of the model) are not shown in the comparison editor.

To view the changes and merge the two models:


Procedure

  1. Select the two monitor models in the Project Explorer view, right-click, and click Compare With > Each Other. The two monitor model files open in a monitor model comparison editor, with the changes highlighted.

    • The Structural Changes pane on the upper left shows the differences between the two monitor models. The changes are described in terms of the actions that must be performed on the right model to make it identical to the left model. Suppose that the right monitor model is model 1 and the left monitor model is model 2, and the models are the same except that model 2 has an additional metric. The change required to merge the models is displayed as add the new metric from model 2. Selecting a difference in this pane affects what is shown in the rest of the editor.

    • The lower panes show the structures of the monitor models.

    • The Merged Result pane on the upper right provides a constantly updated view of the monitor model that will result if the changes are saved at the present moment.

  2. Accept or reject each of the changes.

    1. Click an individual change listed in the Structural Changes pane. The lower panes display annotations to show how the difference affects the tree structures, for example where an element has been removed or added.

    2. Accept or reject each change.

      • To accept a change, right-click the change and select Accept Change, or click

        .

      • To reject a change, right-click the change and select Reject Change, or click

        .

      • To accept all changes from the left contributor, right-click the top line in the Structural Changes pane and click Accept All Changes from Left, or click

        .

      • To accept all changes from the right contributor, right-click the top line in the Structural Changes pane and click Accept All Changes from Right, or click

        .

      When you accept a change, the Merged Result pane is updated to show the resulting monitor model.

  3. When you have viewed all changes, you can choose to save the new merged results file by overwriting one of the existing monitor model files or by creating a new monitor model.

    • To overwrite the left monitor model file with the merged results, right-click in the Merged Results pane and click Save as Left Contributor, or click

      .

    • To overwrite the right monitor model file with the merged results, right-click in the Merged Results pane and click Save as Right Contributor, or click

      .

    • To save the merged results into a new monitor model file, preserving both the original files, right-click in the Merged Results pane and click Save a Copy, or click

      . The Save window opens so that you can save the result to any location, not necessarily within the workspace.


What to do next

If you save your results to a folder in the workspace, the new file will not initially be visible in the Monitor Model editor. Right-click the containing project and select Refresh.

Combining or merging monitor models