IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Developing business processes > Building business state machines > Versioning business state machines

Create a version of your business state machine

This section explains how to create a new version of your business state machine whose binding may be dynamically resolved in the runtime environment.

To create a new business state machine, you begin by creating a new module that contains a new version of your business state machine, and install it in the same manner as the original. For clients that use late binding to invoke this business state machine, the runtime engine is able to recognize that the new business state machine is actually a more recent version of the other, and will select it over the older one. These steps assume that you have already created the business state machine that you seek to version.


Procedure

  1. Make a copy of the module that contains the original version of your business state machine as follows:

    1. In the Business Integration view, right-click the module that contains the business state machine and select Copy.
    2. Right-click any white-space within the same view, and select Paste.
    3. In the Copy Module window, change the module name as necessary (perhaps by adding a suffix that indicates the version), and click OK.
    4. Save the file. The new module name appears in the assembly editor.
  2. Export this new process component using an SCA Export so that it can be called by another SCA Component. An SCA Export is added as follows:

    1. Open your business state machine in the Assembly Editor.

    2. In the Assembly Diagram, right-click the business state machine and select Generate Export > SCA Binding.
    3. Save your work, and close the editor.

  3. Configure a date from which the copied business state machine will be valid, as follows:

    1. In the new copy of the module, open the business state machine in the editor, and click an empty area to choose the business state machine as a whole.

    2. In the Description tab of the properties area, enable Select date (UTC) when the business state machine becomes valid. If this check box is clear, then a valid-from date is implicitly specified so that the business state machine becomes valid as soon as the module is installed.

    3. Configure the calendar fields to specify the date and time when the runtime engine is allowed to create instances of this business state machine. Calendar values are represented in Coordinated Universal Time (UTC).
  4. Save your work.

  5. You can deploy this new module as you would any other module.


Example

To see an example of a versioned process that you can build and run yourself, go to http://publib.boulder.ibm.com/bpcsamp/index.html, and click Process modeling techniques > Versioning.

You will need a connection to the internet for this link to work.

Versioning business state machines


Related concepts:
BPEL process compensation