< Previous | Next >

Creating the business artifacts

Before you can begin to assemble your state machine in the graphical editor, you will have to create the artifacts that will support the state machine.

In this step, you will create the following artifacts:
Note: You can find more detailed information about each of these artifacts in the Getting Started sample.
  1. Create a business module as follows:
    1. Right-click an empty area of the Business Integration view, and choose New > Module from the list.
    2. In the New Module window, name the module BSM_VendingMachine, accept the defaults and click Finish.
  2. Create two business objects as described below, and assign them the values listed in the table.
    1. Right-click your newly created module, and choose New > Business Object from the list. The New Business Object window launches.
    2. Refer to the table below, and enter the value from the Business object name column, into the Name field and click Finish. Repeat for the other business object.
    3. In the Business object editor, right-click the new business object, and select Add field.
    4. Assign values for the attribute and type fields as shown in this table:
    Business object name Attribute Type
    Coin id string
    value double
    Selection id string
    item string
  3. Create an interface as follows:
    1. Right-click your module, and chose New > Interface from the list. The New Interface Wizard window launches.
    2. Name the interface VendingMachineInterface and click Finish.
  4. Create five operations for this interface. Each operation represents the action that will cause the transition from one state to another.
    1. Refer to the first column in the table directly below, and determine the type of operation that you are creating. Then, right-click the Interface editor and select either Add One Way Operation or Add Request Response operation.
    2. Configure the new operation according to the fields in this table.
    Operation Operation type Input Input type Output Output type
    on one way id string - -
    deposit Request Response coin Coin accepted boolean
    select Request Response selection Selection processed boolean
    cancel one way id string    
    off one way id string - -
  5. Save your work.
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.
< Previous | Next >





Feedback



This information center is powered by Eclipse technology. (http://www.eclipse.org)