< Previous | Next >

Lesson 6: Create Participants in the service model

This content applies to version 7.5.4 or later. In this lesson, you create participants in the service model that use and provide the services in the application. Participants can be users or providers of service (or both). The participants interact with each other to implement the automation of the business process.

Create a package to contain the participants

For organizational purposes, you create a package to contain the participant.
To create a package:
  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 participants. The Main diagram opens in the diagram editor.

Create the Invoicer participant

The Invoicer participant provides the invoicing service.

To create the Invoicer participant:

  1. In the Project Explorer view, in the participants package, open the Main diagram.
  2. In the Palette, click a Participant, and drag the cursor into the diagram, and name the participant Invoicer.
  3. In the diagram editor, right-click the participant; then click Filters > Show External View. The ports are visible when you add them to the participants.
  4. In the Palette, click Service Point and drag the cursor to the border of the Invoicer participant. The border of the participant becomes wider and grey to indicate that you can add the service point. The following table shows what the diagram element looks like when you can add a service point, and when you cannot.
    Not ready to be dropped Ready to be dropped
  5. In the window, click Select Existing Element and specify the InvoicingService service interface as its type.
  6. Name the service point invoicing. The Invoicer participant should look similar to the following:

Create the Shipper participant

The Shipper participant provides the shipping service.
To create the Shipper participant:
  1. In the Palette, click Participant; drag the cursor into the diagram and name the participant Shipper.
  2. In the diagram editor, right-click the participant; then click Filters > Show External View.
  3. In the Palette, click Service Point and drag the cursor to the border of the Shipper participant.
  4. In the window, click Select Existing Element and specify the ShippingService service interface as its type.
  5. Name the service point shipping.
The Shipper participant should look similar to the following:

Create the Scheduler participant

The scheduler participant provides the scheduling service.
To create the Scheduler participant:
  1. In the Palette, click Participant, drag the cursor into the diagram and name the participant Scheduler.
  2. In the diagram editor, right-click the participant; then click Filters > Show External View.
  3. In the Palette, click Service Point and drag the cursor to the border of the Scheduler participant.
  4. In the window, click Select Existing Element and specify the SchedulingService service interface as its type.
  5. Name the service point scheduling.
The Scheduler participant should look similar to the following:

Create the OrderProcessor participant

The OrderProcessor participant to provides the purchasing service, and uses the other participants to do its work.
To create the OrderProcessor participant:
  1. In the Palette, click Participant,drag the cursor into the diagram, and name the participant OrderProcessor.
  2. In the diagram editor, right-click the participant; then click Filters > Show External View.
  3. In the Palette, click Service Point and drag the cursor to the border of the OrderProcessor participant.
  4. In the window, click Select Existing Element and specify the PurchasingService service interface as its type.
  5. Name the service point purchasing.
  6. In the Palette, click beside Service Point and click Request Point.
  7. In the Palette, click Request Point and drag the cursor to the border of the OrderProcessor participant.
  8. In the window, click Select Existing Element and specify the InvoicingService service interface as its type.
  9. Name the request point invoicing.
  10. Repeat step 5 to step 9 to create the following Request points:
    • o Request point named shipping with the ShippingService interface as its type
    • o Request point named scheduling with the SchedulingService interface as its type
The OrderProcessor participant should look similar to the following:

Save and close the participants Main diagram.

Lesson checkpoint

You created the participants that interact with the application.
In the next lesson, you set up the architecture of the completed application.
< Previous | Next >

Feedback