< Previous | Next >

Lesson 7: Create the service architecture

This content applies to version 7.5.4 or later. The service architecture shows the design of the application in a composite structure diagram. This diagram provides the overall view of the system and how the participants are structured and connected to work together to provide the overall purchasing service. 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.
To create the service architecture:
  1. In the Project Explorer view, right-click the model folder, then click Create Model.
  2. In the Model wizard, in the Categories pane, click Servicing Model .
  3. In the Templates pane, click Blank Services Package.
  4. 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.
To create the services architecture:
  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 as the type.
  8. To create more parts, repeat step 6 to 8 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.
The composite structure dagram should look similar to the following:

Adding the InvoicingContract service contract

To add the InvoicingContract service contract:
  1. In the Palette, click Collaboration Use and drag the cursor between the Invoicer and OrderProcessor participants.
  2. In the window, click the existing InvoicingContract element and name the collaboration invoicing.
  3. In the Palette, click Role Binding, click the invoicing port of the OrderProcessing element, and drag the cursor to the orderer part of the InvoicingContract element.
  4. In the Palette, click Role Binding, click the invoicing port of the Invoicer element and drag the cursor to the invoicing part of the InvoicingContract element.
The diagram should look similar to the following:

Adding the SchedulingContract service contract

You add the SchedulingContract service contract to the composite structure diagram to show the structure of the architecture between the Scheduler and OrderProcessor.
  1. In the Palette, click Collaboration Use and drag the cursor between the Scheduler and OrderProcessor participants.
  2. In the window, click the existing SchedulingContract element and name the collaboration scheduling.
  3. In the Palette, click Role Binding, click the scheduling port of the OrderProcessing element, and drag the cursor to the client part of the SchedulingContract element.
  4. In the Palette, click Role Binding, click the scheduling port of the Scheduler element, and drag the cursor to the scheduler part of the SchedulerContract element.

Adding the ShippingContract service contract

You add the ShippingContract service contract to the diagram to show the structure between the Shipper and OrderProcessor participants.
  1. In the Palette, click Collaboration Use and drag the cursor between the Shipper and OrderProcessor participants.
  2. In the window, click the existing ShippingContract element and name the collaboration shipping.
  3. In the Palette, click Role Binding, click the shipping port of the OrderProcessing element, and drag the cursor to the orderer part of the ShippingContract element.
  4. In the Palette, click Role Binding, click the shipping port of the Shipper element, and drag the cursor to the shipper part of the ShippingContract element.

Tutorial lesson summary

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

Feedback