BPEL Designer: Validating BPEL Processes
See Also
The BPEL Designer has a built-in BPEL code validation functionality, the BPEL Validator, that helps you create processes compliant with the WS-BPEL 2.0 standard. The code is checked for errors and the user is notified if validation fails.
Validation Criteria
The Validator checks BPEL processes in accordance with the following criteria:
- Conformance with the BPEL 2.0 schema
- Compliance with static analysis rules defined in the WS-BPEL 2.0 specification
- Broken references
- Constructs that are valid per the BPEL 2.0 specification but are not yet supported by the Sun BPEL Service Engine
Validation Types
The BPEL Designer provides the following types of validation:
- Real-time validation. This type of validation is invoked automatically and does not require any explicit actions from the user. Only the current file is checked. The validation is performed in accordance with all the criteria mentioned above, with the exception of validation for conformance with the BPEL 2.0 schema.
- Explicit validation. This type of validation requires that the user explicitly invokes the validation process. All imported XSD and WSDL files are also checked. The validation is performed in accordance with all the criteria mentioned above.
To invoke explicit validation, do one of the following:
- In the Source view, right-click the source and, from the pop-up menu, choose Validate XML (Alt-Shift-F9).
- In the Design view, click the Validate XML button (Alt-Shift-F9).
Validation
Messages
The results of checking code validity are shown in the following areas:
- Design view
- Output window
- BPEL Logical view of the Navigator window
The Design view displays the results of both real-time and explicit validation types:
- Error messages on the BPEL diagram. A red cross next to an element on a diagram means that the element has not passed validation. If you click the cross, a callout window appears, listing errors and warning messages related to validation in accordance with the above-listed criteria.
Messages related to the real-time validation are constantly updated.
- Note that the messages related to the validation for conformance with the BPEL 2.0 schema are updated in the callout window only when you explicitly invoke validation. This happens because validation for conformance with the BPEL 2.0 schema is not performed in real-time mode.
- Error stripe. The error stripe is a strip to the right of the scroll bar that contains red marks if some elements have not passed validation. The error stripe represents the entire diagram, not just the portion that is currently displayed. You can immediately see if your BPEL process contains errors without having to scroll through the entire diagram. You can click a red mark to jump to the element that causes problems. If no errors are detected, the small square in the error stripe is green.
The Output window shows the results of validation when validation has been invoked explicitly. If validation fails, the Output window contains error and warning messages.
The Navigator window shows the results of both real-time and explicit validation by adding a red cross to the element's icon if validation has failed.
- See Also
- Operations with Elements in the Design View
- About BPEL Elements
Legal Notices