Before you can begin to assemble your state machine in the graphical
editor, you will have to create the artifacts that will support it.
In this step, you will create the following artifacts:
- a library
- a business object
- two interfaces
- several operations
- a module
- Create a library as follows:
- Right-click an empty area of the Business Integration view,
and chose from the list.
- In the New Library window, name the library BSM_Telco_Library,
accept the defaults and click Finish.
- Create a business object as follows:
- Right-click your newly created library, and chose from
the list. The New Business Object window
launches.
- In the Name field, enter Digit and
click Finish.
- In the Business object editor, right-click the new business
object, and select Add an attribute. Name the new attribute id,
and assign it a type of string.
- Add another attribute with the name digit,
and a type of string.
- Create two interfaces as follows:
- Right-click your library, and chose from the list. The New
Interface Wizard window launches.
- Name the first interface TelcoInterface and
click Finish.
- Similarly, create another interface named TelcoConnectionInterface.
- Create operations for these interfaces. For each operation that
you create, assign the appropriate value from the table shown below.
- In the interface editor for TelcoInterface,
right-click an empty area, and select Add Request Response operation.
- Configure the new operation according to the fields in this
table.
Operation name |
Input name |
Input type |
Output name |
Output type |
digit |
digit |
Digit |
ok |
boolean |
offHook |
id |
string |
ok |
boolean |
onHook |
id |
string |
ok |
boolean |
init |
id |
string |
ok |
boolean |
unplug |
id |
string |
ok |
boolean |
remoteDisconnect |
id |
string |
ok |
boolean |
- In the interface editor for TelcoConnectionInterface,
create the operations shown in this table, and assign the appropriate input
and output names. Note that for two of the operations, you will be creating
an extra input by clicking the Add Input icon in the editor.
Operation name |
Input name |
Input type |
Output name |
Output type |
isBusy |
to |
string |
isBusy |
boolean |
connect |
from |
string |
connectOk |
boolean |
|
to |
string |
|
|
disconnect |
from |
string |
disconnectOk |
boolean |
|
to |
string |
|
|
- Create a business module as follows:
- Right-click an empty area of the Business Integration view,
and chose from the list.
- In the New Module window, name the module BSM_Telco,
accept the defaults and click Finish.
Now that you have completed the creation of the necessary artifacts,
you may create your state machine, and then begin to assemble the necessary
components.