IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Developing monitor models > Create monitor models > Generate monitor models
Iterative development
When you add new monitoring constructs to the monitor model as new pieces are added to the application in Integration Designer, be sure the monitor model is synchronized with the application before you make updates to the monitor model.
When you are doing iterative development, keep in mind these important tips:
- Complete the application as much as possible before creating the monitor model.
- Once you have created the monitor model, make use of the explicit Refactor support in Integration Designer wherever possible to ensure that changes made to the application are accurately propagated to the related monitor models.
- Resynchronize frequently. If you make changes that you know will affect the monitor model and refactoring is not available, synchronize the changes as soon as possible so that the changes remain manageable and understandable during synchronization.
Iterative development scenarios
This section provides some scenarios in which you might refine a monitor model.
After you have generated a monitor model from an application or exported a monitor model from WebSphere Business Modeler using the IBM Integration Designer export option to tie the model to an application, you might want to perform some of the following actions:
- Change the application using refactoring
- Change the application by turning on or turning off event emitters, or adding or deleting artifacts
- Add additional elements for monitoring from the same application
- Add additional elements for monitoring from a different application
Change the application using refactoring
If you used the Refactor operation in Integration Designer, the update should already be applied to the monitor model. However, even if the changes have been applied, a validation warning still reports that any associated monitor models might not be synchronized. Right-click the monitor model in the Project Explorer view, click Synchronize with Application, and click Yes to remove the validation warnings. It is typically helpful to synchronize your monitor model with the associated applications before you make any updates to the monitor model.Refactoring of element and attribute names of XML Schema Definition (XSD) types used for event parts is not supported. This is the case whether the refactoring is performed in the IBM Integration Designer Business Object editor, or the Rational Application Developer XSD editor. Updates must be manually performed on any monitor model that is affected by changes made to XSD element or attribute information.
For example, expressions within the monitor model that refer to the updated element or attribute must be changed manually to refer to the new element or attribute.
Change the application by turning on or turning off event emitters, or adding or deleting artifacts
After you have made the changes to the application, right-click the monitor model in the Project Explorer view and select Synchronize with Application . A synchronization window opens and shows all the changes that have been made to the monitored application since the last synchronization (not including those that have been automatically reflected in the monitor model because the Refactor operation was used in Integration Designer). For application elements that have been deleted, you have the option of removing the associated monitor elements from the monitor model, or simply disassociating the monitor elements from the application. See Synchronizing in the Monitor Model editor for further information.
Add additional elements for monitoring from the same application
Right-click the monitor element that is associated with an application element that is the parent (or ancestor) of the one to which you want to add additional monitoring support. Because the monitoring representation for the application itself has already been created and you now want to update it by adding additional constructs, select Update from Application. See Update monitor models based on applications for further information.
Add additional elements for monitoring from a different application
In the Monitor Details Model tab of the editor, right-click the monitor model in the model tree, and click New > Create from Application.You must be at the root of the monitor model. When the Generate Monitor Model window opens, select the application from which you want to add elements for monitoring. Proceed through the wizard and make your choices. See Adding application elements to monitor models for further information.