Creating an Exchange Contract from an Interaction
You can also create a new exchange contract:
from a library,
from an interaction in a diagram.
To create an exchange contract, in a diagram, from an interaction:
1. In the diagram insert toolbar, click the Interaction button.
2. Draw a link between the two communication entities.
3. In the add interaction dialog box, click the arrow at the right of the Exchange Contract box and select New.
The Creation of Exchange Contract dialog box opens.
4. Enter the name of the exchange contract in the Name box.
5. Click OK.
The interaction and exchange contract are created.
Creating an Exchange Contract Diagram (BPMN)
An exchange contract is represented by an Exchange Contract Diagram (BPMN).
To create an Exchange Contract Diagram (BPMN) from an interaction:
1. Right-click the interaction.
2. Select the associated exchange contract and, in its pop-up menu, click New > Exchange contract diagram (BPMN)
The diagram opens with the exchange contract frame and the two roles representing consumer and the supplier.
*A role is a participant in an interaction, workflow or process. It can be the initiator, that is the requester of a service, or it can represent a sub-contractor carrying out processing outside the service. A role is an integral part of the object that it describes, and is not reusable. It can subsequently be assigned to an org-unit internal or external to the organization or to an IT component. Examples: client, traveler.
The events, gateways and sequence flows of your diagram follow the BPMN standard.
*For more details on events, gateways and sequence flows, see Managing events, gateways and sequence flows
Defining an Exchange or an Exchange Contract Use
In an Exchange Contract Diagram (BPMN), operations are described by:
exchange contract use
exchange use
*An exchange contract use is associated with an exchange contract. It enables representation of complex exchanges.
*An exchange use represents the usage of an exchange in another exchange contract.
To create an exchange contract use:
1. Click the Exchange Contract Use button and click in the diagram within the exchange contract frame.
The creation dialog box opens.
2. Click the arrow to the right of the Specification of an Exchange Contract Use box.
3. Select Connect Exchange Contract from the drop-down list and choose the exchange contract that you want to use.
4. In the From field, select the described exchange contract role connected to the "Consumer" role of the exchange contract use.
5. In the To field, select the described exchange contract role connected to the "Supplier" role of the exchange contract used.
6. Click Finish.