< Previous

Linking it all together

So far, you have created two simple states, and one composite state. In this step, you will define and configure the transitions that will link them all together.

Note: You will be creating four transitions in this task, and they do not all go in the same direction. Pay close attention to the instructions so as not to confuse your target and source states.
  1. Create a transition from the On Hook to the In Use composite state.
    1. Drag the offHook operation onto this transition.
  2. Create a transition from the In Use composite state to the On Hook state.
    1. Drag the onHook operation onto this transition.
    2. Add an action named Disconnect configure an invoke for it as follows:
      1. Select the TelcoConnectionService reference and the disconnect operation.
      2. In the Variables column, expand onHook Input > id and link it to from.
      3. Link the to operation input to the dialedNumber variable.
        The disconnect action configuration.
      4. Click the Output parameter radio button, and link the disconnectOK operation output to onHook output > ok.
  3. Create a transition from the In Use composite state to the Disconnected state.
  4. Create a transition from the Disconnected to the On Hook state.
    1. Drag the onHook operation onto this transition.
Your completed state machine should look something like the one shown in the screen capture below: An image of the completed state machine.

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