Lesson 2: Create capabilities that represent candidate services
Create a capabilities package and an overview diagram
About this task
- Open the diagram named Main: In the Project Explorer view, in the MyProject project, in the Models folder, expand Services, and double-click Main. At this point in the tutorial, the diagram is empty.
- Right-click in the diagram editor; then click .
- Name the new package capabilities. The diagram now contains the capabilities package, as
shown in the following image:
- Click .
- In the Project Explorer view, in the
Models folder of the project, expand the Services model to show the
contents of the capabilities package, which should look like the following
- In the capabilities package, open the diagram named Main. In the next part of this lesson, you use this diagram to create other capabilities, and to provide an overview of them.
Explore the Service drawer of the Palette
About this task
To add an item from the Palette to a diagram, click the item in the Palette, move the cursor to an empty location in the diagram; then click in the diagram to create the element.
The drawers and items that are available in the Palette depend on the type of diagram, the set of profiles that are applied to the model, and the user settings.
|Provided Interfaces (also contains required interfaces)|
Before you begin
About this task
- Three capabilities represent lanes in the business process: Invoicing, Scheduling, and Shipping
- One capability, named Purchasing, represents the entire business process
To create the capabilities:
- Create a capability by right-clicking
an empty place in the diagram and clicking Select Element window opens,
as shown in the following image:. The
- Create the Invoicing capability:
- In the Select Element window, click , and click Invoicing. The Invoicing lane is the BPMN element from which the new candidate service is derived.
- Clear the Create a Link in each new operation check box.
- Select the Create a Link in the new Capability/ServiceInterface check box. For this tutorial, you create a traceability link for the capability itself, but not for each operation.
- Click OK. An Invoicing capability
is created, and has a name which was determined automatically from
the name of the lane. The new capability is created
in the model and diagram, as shown in the following image:
- Refine the operations in the Invoicing capability: The
operations and their names were determined from the names of the tasks
in the selected lane. For this tutorial, suppose that you do not need
the Process Invoice operation, and suppose that the names of the other
operations must change to conform to the naming standards of a project
and to better reflect what the operations do. In the diagram editor,
in the Invoicing capability, complete the following steps:
- Right-click the Process Invoice operation; then click Delete from Model. If you are prompted to confirm your selection, click Yes.
- Click the Initiate Price Calculations operation and rename it to initiatePriceCalculation.
- Click the Handle Shipping Price operation and rename it to completePriceCalculation.
- Create a capability for the Scheduling lane: Repeat steps 1 and 2, but in step 2, select Scheduling instead of Invoicing.
- In the Scheduling capability, rename the operations to requestProductionScheduling and sendShippingSchedule. The following image shows the updated Scheduling capability:
- Create a capability for the Shipping lane: Repeat steps 1 and 2, but in step 2, select Shipping instead of Invoicing.
- In the Shipping capability, rename the operations to requestShipping and processSchedule. The following image shows the updated Shipping capability:
- In the diagram editor, arrange the three capabilities into a horizontal row in the middle of the diagram.
- Create a capability that represents the entire process: Repeat steps 1 and 2, but in step 2 select Purchasing, which is the parent tree node of the lanes, instead of Invoicing.
- In the Purchasing capability, delete and rename its operations
so that it has a single operation named processPurchaseOrder,
as shown in the following image:
- In the diagram editor, center the Purchasing capability
above the three other capabilities, as shown in the following image:
- In the diagram editor, create a Usage relationship from
the Purchasing capability to each of the other three capabilities:
In the Project Explorer view, the project should look like the following image:
- Put the cursor over the Purchasing capability until
the connector handles are displayed, as shown in the following image:
- Drag the outgoing handle to one of the other capabilities. From the list of relationship types, select Create Usage. A new «use» connection, which represents the relationship, is created between the capabilities.
- Put the cursor over the Purchasing capability until the connector handles are displayed, as shown in the following image:
- Click .
- To discover the BPMN element from which each capability is derived, in the diagram editor, right-click a capability; then click . For example, if you complete this step for the Invoicing capability, the Invoicing lane in the BPMN model is selected in the Project Explorer view. These traceability links were created automatically when you created each capability.