This page was last edited on November 6, 2013, at 18:42.
Comments or questions about this documentation? Contact us for support!
Composer can validate your diagram files and other source files for completeness and accuracy.
In Diagram Preferences, Global Settings, the Enable Validation for Prompt Resource preference enables diagram validation warnings where prompt audio resources no longer exist in the given file path. If the audio file is no longer present, the diagram block will show a warning icon.
This topic covers both callflow/workflow diagrams and interaction process diagrams (IPDs).
You can initiate standalone callflow or workflow validation in a couple of ways. When the callflow or workflow is saved and selected:
Note: In case of errors, the Problems view will become visible and error markers are put on the callflow or workflow blocks that contain errors. Double clicking on an error in the Problems view will take you to the corresponding blocks that contain the errors. Review each of the errors and do the fixes, then validate again. After validation, you can generate code.
The validation process is basically the same for IPDs. When the IPD is selected or in view :
When invoked, validation checks for the existence of objects in Configuration Server and indicates the results. Validation does not make changes in Configuration Server as part of the process. Note: If Composer is not connected to Configuration Server, clicking the validation button brings up the Connect to Configuration Server dialog.
There are two types of validation that can occur when you are working with source files in Composer Rich editors:
Source validation occurs as you type your code; this validation reflects the "unsaved" and "unbuilt" contents of the source you are editing. Note: To turn source validation on (or off) for all structured text editors, click Window > Preferences > General> Editors> Structured Text Editors and check (or uncheck) Report problems as you type. Batch validation occurs on saved files. Batch validations may catch build process errors and other types of non-source validation errors. Batch validation can uncover errors in multiple files at once and give you a comprehensive view of where problematic code can be found in your project. Moreover, you do not need to open files in an editor to run batch validation. To run batch validation on specific files, select and right click the files in the Project Explorer and then select Run Validation from the popup menu. Note: To set preferences for batch validation, click Window > Preferences > Team > Validation.
You can validate a Project using the integrated Composer Validator, which is enabled or disabled at global level using the Validation preferences (Window > Preferences > Team > Validation > Composer > Composer Validator).
Note: Automatic validation does not occur during any change in resource contents, since this action is taken care by the Composer Project Builders. You can enable or disable Composer Project Builders using the Project > Build Automatically menu option.
Here are some possible validation use case scenarios:
To configure the contents of the Problems view to view only warnings and errors associated with the currently validated callflow/workflow:
For more information on this dialog box: