Describing a Service Operation
Creating a Service Operation Diagram (BPMN)
A service operation is described by a service operation diagram presenting the sequence flow of messages exchanged.
To create a service operation diagram:
1. From the Environment navigation menu, open the exploration area Container > Libraries.
2. Unfold the desired library, and then the Service operations folder.
3. Select service operation that interests you and click Create Diagram.
4. In the dialog box, select Service operation Diagram (BPMN)
The diagram opens. The frame of the service operation is positioned and the two roles (Consumer and Provider) are created.
Creating a message flow with content
You must specify the message flows and their content exchanged between the two service operation roles.

A message flow represents circulation of information within a service interface. A message flow transports its content.

The content designates the content of a message or an event, independent of its structure. This structure is represented by an XML schema linked to the content. A content may be used by several messages, since it is not associated with a sender and a destination. There can be only one content per message or event, but the same content can be used by several messages or events.
To create a message flow and its content:
1. In the service operation diagram, click the Flow With Content button.
2. Click the role that represents the message flow sender and, holding the mouse button down, draw a link to the message flow recipient.
The Creation of Flow dialog box opens.
3. In the Content drop-down list, select the content you wish to associate with the flow.
The message flow is displayed with its content in the diagram.
Managing events, gateways and sequence flows
“Start” and “End” events are required in description of the service assured by the service interface.

An event represents a fact or an action occurring in the system, such as updating client information. It is managed by a broker. An application indicates that it can produce the event by declaring that it publishes it. If an application is interested in an event, it declares that it subscribes to the event.
In compliance with the BPMN standard, in the object toolbar, several gateway types are available to you.

Gateways are modeling elements that are used to control how sequence flows interact as they converge and diverge within a process.
A sequence flow is a directional link that represents the chronological organization of the different processing steps.

A sequence flow is used to show the order in which steps of an service contract will be performed. A sequence flow has only one source and only one target.