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.
- Create a transition from the On Hook to
the In Use composite state.
- Drag the offHook operation onto this
transition.
- Create a transition from the In Use composite
state to the On Hook state.
- Drag the onHook operation onto this transition.
- Add an action named Disconnect configure
an invoke for it as follows:
- Select the TelcoConnectionService reference and
the disconnect operation.
- In the Variables column, expand and link it to from.
- Link the to operation input to the dialedNumber variable.

- Click the Output parameter radio button, and link
the disconnectOK operation output to .
- Create a transition from the In Use composite
state to the Disconnected state.
- Create a transition from the Disconnected to
the On Hook state.
- Drag the onHook operation onto this transition.
Your completed state machine should look something like the one shown
in the screen capture below:
