Developer Guide to BPEL Designer
Refactoring BPEL source files generally follows the refactoring conventions of the NetBeans IDE. Downstream refactoring is supported, i.e. changes applied to XSD and WSDL files will be properly reflected in the corresponding BPEL files. With certain limitations, refactoring also works within a BPEL file.
Refactoring downstream of XSD and WSDL files is invoked explicitly with the help of pop-up menu commands accessible in XML and WSDL editors. The commands are Find Usages, Rename and Safely Delete.
The Find Usages command, invoked for an element of the XSD or WSDL file, finds occurrences of the element in the associated XSD, WSDL and BPEL files.
The Rename command, invoked for an element of the XSD or WSDL file, allows you to rename all occurrences of the element found in all associated XSD, WSDL and BPEL files downstream of the original file. Before the actual renaming is done, you can preview and adjust the changes. You can undo the last Rename operation.
The Safely Delete command, invoked for an element of the XSD or WSDL file, allows you to preview all occurrences of the element in the associated XSD, WSDL and BPEL files downstream of the original file before the element is deleted. You can undo the last Safely Delete operation.
The Undo command is invoked by right-clicking the element and choosing Refactor > Undo [Rename] or Refactor > Undo [Safe Delete] from the pop-up menu.
There are no explicit refactoring commands in the pop-up menus for the BPEL files, either in the Diagram, property sheets, or Navigator. However, implicit refactoring works when you rename variables, correlation sets and partner links in the Diagram or property sheets.
For more information on refactoring, see Refactoring in a BPEL Module Project Using NetBeans Enterprise Pack.