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

Refactoring and business state machines

When you refactor parts of your business state machine, dependencies on those parts are automatically and universally updated throughout the product as a whole.

To refactor parts of your business state machine, proceed as follows:


Procedure

  1. In the Business Integration view, right-click the state machine.

  2. From the drop-down menu, hover over Refactor and then choose from one of the following three options:
    Option Description
    Rename Use this option to change the name assigned to the state machine.
    Move Use this option to move your state machine to a new folder or module.
    Change Namespace Use this option to assign a new namespace to your state machine.


Results

Refactoring an interface

When you rename an interface or change its namespace via the refactor menu, all business state machines that reference this interface will be automatically updated.

When you rename an interface operation via the refactor menu, you may notice the following error in the Problems view if you've created Java™ or visual snippets that use its inputs or outputs: <variable_name> cannot be resolved.

It happens because the state machine editor creates arbitrary variables to hold the input/output of operations. These variables can be used in Java or visual snippets, or in an invoke. The form of these variables is: <operation_name>_<Input/Output>_<operation_parameter_name>

For example, the variable for operation "myOperation" input parameter "input1" is: myOperation_Input_input1 Currently, there is no refactoring support to rename these variables used in Java or visual snippets.

To resolve this error, you must manually update all occurrences of the variable in the Java or visual snippets, according to the new operation name.

Refactoring a business object

When you rename a business object or change its namespace via the refactor menu, all business state machines that reference this business object will be automatically updated.

When you rename a business object attribute via the refactor menu, all visual snippets that reference this attribute will be automatically updated.

Refactoring a visual snippet

When you rename a visual snippet or change its namespace via the refactor menu, all business state machines that reference this visual snippet will be automatically updated.

Create a BPEL process

Building BPEL processes

Human Task editor

Create human tasks

Building business state machines


Related concepts:
Replacement variables and context variables


Related tasks:
Supporting other languages


Related reference:
Description tab: business state machine editor


Related information:
Refactoring in IBM Integration Designer