IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Developing business processes > Building BPEL processes > Create a BPEL process

Create a BPEL process from a component

You can generate a BPEL process from components in the assembly editor.

You must have defined at least one interface for the component that you intend to use to create your BPEL process. The interface must have at least one operation defined on it.


Procedure

  1. In the assembly editor, click the component so that it is selected. Only Process and Untyped components support BPEL process implementations.
  2. Right-click the selected component and select Generate Implementation to create the implementation. If a new implementation is generated then it will be opened for editing. If there is no implementation type for the component, select Process to generate a BPEL process for this component.

    If the component has more than one interface you will be prompted to select the main interface for the process. Callers of the process will interact with it using this interface.

    If the selected interface has more than one operation, the Select Starting Operations window is displayed. Select all of the operations which can start the process.

    If there are operations which do not start the process you should leave the associated check boxes cleared. In this case, where some operations are not selected the generated BPEL process will contain errors. These errors stem from these unimplemented operations. To resolve the errors you must add one or more of the following to the process in order to implement the remaining operations:

    • a Receive activity
    • a Receive Choice activity
    • event handlers.

    To use an existing implementation for the component, click Select Implementation and select one of the listed implementations. If that the listed implementations must be located within the same module. Implementations in other modules can be used in the module assembly by creating imports for the published services (exports).

    The Select Implementation action does not add or remove component interfaces or partner references so that it does not affect existing wires. However, after using this action, the component's existing interfaces or references might not match what is required by the selected process implementation. In this case, there will be errors in the assembly diagram. Try these actions to fix the errors:

    • Use the Synchronize Interfaces and References menu item on the component to synchronize to or from the implementation.
    • Manually add the required interfaces and references to the component, and remove or change the non-matching ones.

    • Drag the implementation onto the canvas (to create a new component) and then rewire the assembly diagram so that the new component replaces the unimplemented component. Be sure to also copy the name and qualifiers you defined in the original component to the new one. You can now safely delete the replaced component.

    If interfaces or partner references have been replaced, you may need to add interface maps to rewire.


What to do next

In most instances the generated BPEL process will require further refinement. Define your business logic by adding activities to your process using the BPEL process editor.

Create a BPEL process