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 or Source 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
- Source view
- Output window
- BPEL Logical view of the Navigator window
The Design, Source and Logical views display the results of both real-time and explicit validation types.
In the Design view:
- Error messages on the BPEL diagram. Red mark with a 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.
In
the Source view:
- Error mark. Red mark with a cross appears to the right of the opening tag of the element with an error. The string is underlined with a red wavy line.
In the BPEL Logical view (Navigator window):
- The element containing error is marked with a red label.
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.
Quick Fix
Quick Fix enables to partly automate validation errors fixing.
To use Quick Fix:
- Open the Source view of the process.
- Click Validate XML button on the toolbar or right-click the source and choose Validate XML (Alt-Shift-F9). In the Output window you will get the result of validation. If output contains errors or warnings, you can try to resolve them using Quick Fix.
- Click the Quick Fix button on the toolbar. Quick Fix result is shown in the Quick Fix tab of the Output window. All the changes performed by Quick Fix (if any) are reflected in the window.
At the moment
Quick Fix supports
automatic correction of misspelled variable names.
- See Also
- Operations with Elements in the Design View
- About BPEL Elements
Legal Notices