< Previous | Next >

Lesson 7: Create the service architecture

The service architecture shows how the participants work together to provide the overall service(s). It also shows how each participant plays a role in the relevant service contracts so you can document and verify that the underlying constraints are honored. It gives you a high-level view of your services oriented architecture and design, making it easier to more accurately explain it to others (such as developers who will implement it).

Create a package to contain the service architecture

For organizational purposes, you create a package to contain the service architecture.

About this task

To create the service architecture:

Procedure

  1. In the Project Explorer view, right-click the Services model, then click Add UML > Package.
  2. Name the package architecture. The Main diagram opens in the diagram editor.

Create the service architecture

The service architecture represents the application as a whole. The architecture and the application elements are displayed to show how they can interact with each other.

About this task

To create the services architecture:

Procedure

  1. In the Project Explorer view, in the architecture package, open the Main diagram, .
  2. In the Palette, click Services Architecture and drag the cursor into the diagram, and name the service architecture element Purchase Order Process.
  3. In the diagram editor, right-click the Purchase Order Process element; then click Add Diagram > Composite structure Diagram.
  4. Name the composite structure diagram structure.
  5. In the Palette, click Part and drag the cursor onto the Purchase Order Process element.
  6. In the window, click Select Existing Element.
  7. In the Select element window, specify the invoicer participant, and then make sure that the part is named "invoicer".
  8. To create more parts, repeat step 5 to 7 but apply these characteristics:
    • Part named orderProcessor with the OrderProcessor participant as its type.
    • Part named scheduler with the Scheduler participant as its type.
    • Part named shipper with the Shipper participant as its type.

Results

The composite structure diagram should look similar to the following:

Adding the InvoicingContract service contract

About this task

To add the InvoicingContract service contract:

Procedure

  1. In the Project Explorer view, drag and drop the InvoicingContract service contract onto the Purchase Order Process structure diagram. Drop it somewhere between the invoicer and orderProcessor parts. This will create a collaboration use of the InvoicingContract service contract.
  2. Name the new collaboration use invoicing.
  3. Click the invoicing port of the OrderProcessing element, and drag its outgoing connection handle to the invoicing collaboration use.
  4. Select Create Role Binding; in the “Select supplier of Role Binding” window, select the orderer part of the InvoicingContract service contract.
  5. In a similar manner, create a role binding from the invoicer's invoicing part to the invoicing part of the InvoicingContract service contract.

Results

The diagram should look similar to the following:Architecture

Adding the SchedulingContract service contract

About this task

You add the SchedulingContract service contract to the composite structure diagram to show the structure of the architecture between the Scheduler and OrderProcessor. Use the steps as defined in the InvoicingContract service contract above to add the SchedulingContrace service contract.

Adding the ShippingContract service contract

About this task

You add the ShippingContract service contract to the diagram to show the structure between the Shipper and OrderProcessor participants. Use the steps as defined in the InvoicingContract service contract above to add the ShippingContract service contract.

Tutorial lesson summary

The completed services architecture should look like the following:final diagram
You completed the services architecture of the service model. The composite structure diagram represents the overall view of the elements in the model. Your model is now complete.
< Previous | Next >

Feedback