Generating BPEL Code

You can generate BPEL code from BPM objects that can be interpreted by any orchestration engine. A separate .BPEL file per each top-level process is generated, and contains the process descriptions. A .WSDL file (process language definition file) for the entire model is also generated.

  1. Select Language > Generate BPEL4WS 1.1 [or WS-BPEL 2.0 ] code to open the Generation dialog.
  2. Enter a directory in which to generate the files, and specify whether you want to perform a model check (see Checking a BPM).
  3. [optional] Click the Selection tab and specify the objects that you want to generate from. By default, all objects are generated.
  4. [optional] Click the Options tab and set the appropriate value for the Generate WSDL files generation option:.
    • Local - Generates the .WSDL file into a separate local file which is referenced into the .BPEL definition file via the [Import] clause.
    • Import - [default] Generates an [Import] clause into the .BPEL definition file.
    • Embedded - Generates a .WSDL file into the .BPEL definition file, and generates a .WSDL file for each service provider.
  5. [optional] Click the Generated Files tab and specify which files will be generated. By default, all files are generated.

    For information about customizing the files that will be generated, see Customizing and Extending PowerDesigner > Extension Files > Generated Files (Profile).

  6. Click OK to begin generation.

    The Result list displays the files that you can edit. The result is also displayed in the Generation tab of the Output window, located in the bottom part of the main window.

    Note: You can attach an extension file (.XEM) to your model to extend the generation process (see Customizing and Extending PowerDesigner > Extension Files > Generated Files (Profile) > Generating Your Files in a Standard or Extended Generation).