Step 2: Completing the Restaurant composite

In this step you will complete the Restaurant composite that you created in Step 1 and learn how to use the Composite Model Editor.

Completing the composite

To complete the Restaurant composite:

  1. Add a component named RestaurantServiceComponent. You can use either the Component creation tool in the palette or right-click on the canvas.

  2. Add MenuServiceComponent, BillServiceComponent, VatServiceComponent, and TipServiceComponent.

  3. Add the following services:

  4. Add the following references:

  5. Wire the services and references together. From the palette, you can use:

  6. Promote the restaurant service in either of the following ways:

  7. Save your diagram. The Restaurant.composite_diagram contains the graphical part of your SCA assembly and the Restaurant.composite file contains the XML code that describes your SCA assembly.

Using the SCA Composite Model Editor

Now you can edit the Restaurant.composite file using the the SCA Composite Model Editor.

Right-click the Restaurant.composite file and select Open with > SCA Composite Model Editor.

A multi page editor opens. It provides a tree view and the source code of your SCA assembly. You can modify your SCA assembly with these two editors. They are synchronized with the SCA Composite Designer.

Now proceed to Step 3.