< Previous | Next >

Creating the state machine

With the necessary artifacts in place, you can now create the state machine, and configure it appropriately.

In this step, you will do the following:
  1. Create a new state machine as follows:
    1. Right-click the BSM_Telco module and chose New > Business State Machine from the list.
    2. In the New Business State Machine wizard, name the state machine Telco and click Next.
    3. On the Select an Interface page, chose the TelcoInterface from the Interface drop down list.
    4. From the Operation list, select init.
    5. From the list of correlation properties list, select init input > id:string and click Finish.
    A new state machine is created, and appears in the editor as shown in this image:
    The state machine as it first appears
  2. Create three variables:
    1. Click the plus icon (The plus symbol) in the Variables category and create the following variables:
      Variable name Type
      dialedNumber string
      telephoneNumber string
      dummyBoolean boolean
  3. Create a reference.
    1. Click the plus icon (The plus symbol) in the Reference category and create a reference called TelcoConnectionService on the TelcoConnectionInterface interface.
  4. Specify a correlation:
    1. Rename the Correlation property from Property1 to id.
    2. Click the plus icon (The plus symbol) in the Correlation Properties category.
    3. In the Add Correlation Property dialog, change the name to id.
    4. Select string and click OK.
    5. Specify property aliases as shown in this table:
      Operation Alias
      offHook /id
      onHook /id
      digit /digit/id
      remoteDisconnect /id
      init /id
      unplug /id
A new state machine is created.

Feedback
(C) Copyright IBM Corporation 2005, 2006. All Rights Reserved.
< Previous | Next >