IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Developing business processes > Building BPEL processes > Defining BPEL process logic > Work with micropatterns

Create a micropattern

If you have a recurring need for a function, you can use a micropattern to create a reusable subprocess from a main Business Process Execution Language (BPEL) process

You must have a BPEL process that you can use to create a micropattern from.


Procedure

To create a micropattern:

  1. Open your BPEL process in the Business Integration view.

  2. Select the activities in the process to create a micropattern from.
  3. With your cursor on the assembly canvas, right-click and then click Micropatterns > Create Micro-patterns.

    The New BPEL Process Micropattern wizard opens.

  4. Specify the name and description of the micropattern, and the library in which it will be stored, and then click Next.

  5. In Target Properties, select the activities in the micropattern that will become target properties. A target property is a specific function of an activity to which substitution parameters are applied. The Define pattern parameters and map them to target properties window of the New BPEL Process Micropattern wizard opens.

  6. A point of variability is a variable that substitutes itself into your micropattern for a target property that you selected in step 5. To define and map a point of variability:

    1. In the Step 2: Define pattern parameters pane of this window, click Add to add a variable.

    2. In the Step 3: Map pattern parameters to target properties pane of this window, select a target property and then click Replace.

    3. In the Substitute Target Property Value window, enter the name of the target property that is to be replaced with the variable that you defined in step 5a and then click OK.

  7. Click Finish.

Work with micropatterns