|
In the source code below a Multiparty Collaboration instance is shown. In the example code the reference Business Process is called DropShip. There are three parties involved in this Business Collaboration. The first party/partner is a Customer, the second a Retailer and the third DropShip Vendor. The code reveals how the different roles are taken by which partner. As mentioned above a Transaction always has a requesting role and a responding role.
<MultiPartyCollaboration name=''DropShip''>
<BusinessPartnerRole name=''Customer''>
<Performs initiatingRole=
'//binaryCollaboration[@name=''Firm Order'']
/InitiatingRole[@name=''buyer'']'/>
</BusinessPartnerRole>
<BusinessPartnerRole name=''Retailer''>
<Performs respondingRole=
'//binaryCollaboration[@name=''Firm Order'']
/RespondingRole[@name=''seller'']'/>
<Performs initiatingRole=
'//binaryCollaboration[@name=''Product Fulfillment'']
/InitiatingRole[@name=''buyer'']'/>
</BusinessPartnerRole>
<BusinessPartnerRole name=''DropShip Vendor''>
<Performs respondingRole=
'//binaryCollaboration[@name=''Product Fulfillment'']
/RespondingRole[@name=''seller'']'/>
</BusinessPartnerRole>
</MultiPartyCollaboration>
Next follows the specification of the Choreography.