1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181
| <?xml version="1.0" encoding="UTF-8"?>
<package name="DegenerateExample" author="Stephen Ross-Talbot" version="1.0" targetNamespace="http://www.w3.org/2002/ws/chor/primer" xmlns:tns="http://www.w3.org/2002/ws/chor/primer" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:primer="http://www.w3.org/2002/ws/chor/primer" >
<description type="documentation">
Degenerate Example for Primer
</description>
<informationType name="QuoteRequestType" type="primer:QuoteRequestMsg">
<description type="documentation">
Quote Request Message
</description>
</informationType>
<informationType name="QuoteResponseType" type="primer:QuoteResponseMsg">
<description type="documentation">
Quote Response Message
</description>
</informationType>
<informationType name="QuoteResponseFaultType" type="primer:QuoteResponseFaultMsg">
<description type="documentation">
Quote Response Fault Message
</description>
</informationType>
<informationType name="IdentityType" type="xsd:string">
<description type="documentation">
Identity Attribute
</description>
</informationType>
<informationType name="URI" type="xsd:uri">
<description type="documentation">
Reference Token For Channels
</description>
</informationType>
<token name="id" informationType="tns:IdentityType">
<description type="documentation">
Identity token
</description>
</token>
<token name="URI" informationType="tns:URI">
<description type="documentation">
Reference Token for Channels
</description>
</token>
<tokenLocator tokenName="tns:id" informationType="tns:QuoteRequestType" query="/quote/@id">
<description type="documentation">
Identity for Quote Request
</description>
</tokenLocator>
<tokenLocator tokenName="tns:id" informationType="tns:QuoteResponseType" query="/quote/@key">
<description type="documentation">
Identity for Quote Response
</description>
</tokenLocator>
<tokenLocator tokenName="tns:id" informationType="tns:QuoteResponseFaultType" query="/quote/@key">
<description type="documentation">
Identity for Quote Response Fault
</description>
</tokenLocator>
<roleType name="BuyerRole">
<description type="documentation">
Role for Buyer
</description>
<behavior name="BuyerBehavior" interface="BuyerBehaviorInterface">
<description type="documentation">
Behavior for Buyer Role
</description>
</behavior>
</roleType>
<roleType name="SellerRole">
<description type="documentation">
Role for Seller
</description>
<behavior name="SellerBehavior" interface="SellerBehaviorInterface">
<description type="documentation">
Behavior for Seller
</description>
</behavior>
</roleType>
<relationshipType name="Buyer2Seller">
<description type="documentation">
Buyer Seller Relationship
</description>
<roleType typeRef="tns:BuyerRole"/>
<roleType typeRef="tns:SellerRole"/>
</relationshipType>
<participantType name="Seller">
<description type="documentation">
Seller Participant
</description>
<roleType typeRef="tns:SellerRole"/>
</participantType>
<participantType name="Buyer">
<description type="documentation">
Buyer Participant
</description>
<roleType typeRef="tns:BuyerRole"/>
</participantType>
<channelType name="Buyer2SellerChannel">
<description type="documentation">
Buyer to Seller Channel Type
</description>
<roleType typeRef="tns:SellerRole"/>
<reference>
<token name="tns:URI"/>
</reference>
<identity type="primary">
<token name="tns:id"/>
</identity>
</channelType>
<choreography name="DegenerateChoreography" root="true">
<description type="documentation">
The Choreography for the degenerate use case
</description><relationship type="tns:Buyer2Seller"/>
<variableDefinitions>
<variable name="Buyer2SellerC"
channelType="tns:Buyer2SellerChannel"
roleTypes="tns:BuyerRole tns:SellerRole">
<description type="documentation">
Channel Variable
</description>
</variable>
<variable name="quoteRequest"
informationType="tns:QuoteRequestType"
roleTypes="tns:BuyerRole tns:SellerRole">
<description type="documentation">
Request Message
</description>
</variable>
<variable name="quoteResponse"
informationType="tns:QuoteResponseType"
roleTypes="tns:BuyerRole tns:SellerRole">
<description type="documentation">
Response Message
</description>
</variable>
<variable name="faultResponse"
informationType="tns:QuoteResponseFaultType"
roleTypes="tns:BuyerRole tns:SellerRole">
<description type="documentation">
Fault Message
</description>
</variable>
</variableDefinitions>
<sequence>
<interaction name="QuoteElicitation" operation="getQuote" channelVariable="tns:Buyer2SellerC">
<description type="documentation">
Quote Elicitation
</description>
<participate relationshipType="tns:Buyer2Seller" fromRoleTypeRef="tns:BuyerRole" toRoleTypeRef="tns:SellerRole"/>
<exchange name="QuoteRequest" informationType="tns:QuoteRequestType" action="request">
<description type="documentation">
Quote Request Message Exchange
</description>
<send variable="cdl:getVariable('quoteRequest','','')"/>
<receive variable="cdl:getVariable('quoteRequest','','')"/>
</exchange>
<exchange name="QuoteResponse" informationType="tns:QuoteResponseType" action="respond">
<description type="documentation">
Quote Response Message Exchange
</description>
<send variable="cdl:getVariable('quoteResponse','','')"/>
<receive variable="cdl:getVariable('quoteResponse','','')"/>
</exchange>
<exchange name="QuoteResponseFault" informationType="tns:QuoteResponseFaultType" action="respond" faultName="InvalidProductFault">
<description type="documentation">
Quote Response Fault Exchange
</description>
<send variable="cdl:getVariable('faultResponse','','')"/>
<receive variable="cdl:getVariable('faultResponse','','')"/>
</exchange>
</interaction>
</sequence>
</choreography>
</package> |
Partager