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:
- create a state machine
- create a variable
- specify a correlation
- Create a new state machine as follows:
- Right-click the BSM_VendingMachine module
and chose from the list.
- In the New Business State Machine wizard,
name the state machine VendingMachine and click Next.
- On the Select an Interface page, choose VendingMachineInterface from
the Interface drop down list, select the on operation,
and click Finish.

A new state machine is created, and appears in the editor as shown
in this image:

- Create a variable:
- Click the plus icon (
) in the Variables category.
- In the Add Variable dialog, name the new
variable to total.
- Select double as the type, and click OK.
- Specify a correlation:
- Click the plus icon (
) in the Correlation Properties category.
- In the Add Correlation Property dialog,
change the name to id.
- Select string and click OK.
- Specify property aliases as shown in this table:
Operation |
Alias |
on |
/id |
deposit |
/coin/id |
select |
/selection/id |
cancel |
/id |
off |
/id |
A new state machine is created, and appears in the state machine editor.