Author: objectiser
Date: 2008-08-05 06:27:12 -0400 (Tue, 05 Aug 2008)
New Revision: 217
Modified:
cdl/trunk/samples/jbossesb/purchasing/models/PurchaseGoods.cdm
Log:
Updated to include identity information and change credit check information types to be
compatible with other example.
Modified: cdl/trunk/samples/jbossesb/purchasing/models/PurchaseGoods.cdm
===================================================================
--- cdl/trunk/samples/jbossesb/purchasing/models/PurchaseGoods.cdm 2008-08-04 15:34:52 UTC
(rev 216)
+++ cdl/trunk/samples/jbossesb/purchasing/models/PurchaseGoods.cdm 2008-08-05 10:27:12 UTC
(rev 217)
@@ -6,11 +6,19 @@
<informationTypes description="This is the information type BuyFailed"
name="BuyFailed" elementName="BuyFailed"/>
<informationTypes description="This is the information type BuyRequest"
name="BuyRequest" elementName="BuyRequest"/>
<informationTypes description="This is the information type BuyResponse"
name="BuyResponse" elementName="BuyResponse"/>
- <informationTypes description="This is the information type
CreditCheckInvalid" name="CreditCheckInvalid"
elementName="CreditCheckInvalid"/>
- <informationTypes description="This is the information type
CreditCheckRequest" name="CreditCheckRequest"
elementName="CreditCheckRequest"/>
- <informationTypes description="This is the information type
CreditCheckResponse" name="CreditCheckResponse"
elementName="CreditCheckResponse"/>
+ <informationTypes description="This is the information type
CreditInformation" name="CreditInformation"
elementName="creditInformation"/>
+ <informationTypes description="This is the information type
CreditInvalid" name="CreditInvalid"
elementName="creditInvalid"/>
+ <informationTypes description="This is the information type CreditValid"
name="CreditValid" elementName="creditValid"/>
+ <informationTypes description="This is the information type IDType"
name="IDType" typeName="xsd:string"/>
<informationTypes description="This is the information type
URITokenType" name="URITokenType" typeName="xsd:anyURI"/>
- <tokens description="This is the token URIToken"
name="URIToken"
informationType="//@typeDefinitions/(a)informationTypes.6"/>
+ <tokens description="This is the token ID" name="ID"
informationType="//@typeDefinitions/(a)informationTypes.6"/>
+ <tokens description="This is the token URIToken"
name="URIToken"
informationType="//@typeDefinitions/(a)informationTypes.7"/>
+ <tokenLocators description="This is the token locator
BuyFailedIDLocator" token="//@typeDefinitions/(a)tokens.0"
informationType="//@typeDefinitions/(a)informationTypes.0" query="//@id"
name="BuyFailedIDLocator"/>
+ <tokenLocators description="This is the token locator
BuyRequestIDLocator" token="//@typeDefinitions/(a)tokens.0"
informationType="//@typeDefinitions/(a)informationTypes.1" query="//@id"
name="BuyRequestIDLocator"/>
+ <tokenLocators description="This is the token locator
BuyResponseIDLocator" token="//@typeDefinitions/(a)tokens.0"
informationType="//@typeDefinitions/(a)informationTypes.2" query="//@id"
name="BuyResponseIDLocator"/>
+ <tokenLocators description="This is the token locator
CreditCheckInvalidIDLocator" token="//@typeDefinitions/(a)tokens.0"
informationType="//@typeDefinitions/(a)informationTypes.4" query="//@id"
name="CreditCheckInvalidIDLocator"/>
+ <tokenLocators description="This is the token locator
CreditCheckRequestIDLocator" token="//@typeDefinitions/(a)tokens.0"
informationType="//@typeDefinitions/(a)informationTypes.3" query="//@id"
name="CreditCheckRequestIDLocator"/>
+ <tokenLocators description="This is the token locator
CreditCheckResponseIDLocator" token="//@typeDefinitions/(a)tokens.0"
informationType="//@typeDefinitions/(a)informationTypes.5" query="//@id"
name="CreditCheckResponseIDLocator"/>
<roleTypes description="This is the role type Broker"
name="Broker">
<behaviors description="This is the behavior BrokerBehavior"
name="BrokerBehavior"/>
</roleTypes>
@@ -22,11 +30,21 @@
</roleTypes>
<relationshipTypes description="Relationship between Broker and
CreditAgency" name="BrokerToCreditAgencyRel"
firstRoleType="//@typeDefinitions/(a)roleTypes.0"
secondRoleType="//@typeDefinitions/(a)roleTypes.2"/>
<relationshipTypes description="Relationship between Buyer and Broker"
name="BuyerToBrokerRel"
firstRoleType="//@typeDefinitions/(a)roleTypes.1"
secondRoleType="//@typeDefinitions/(a)roleTypes.0"/>
- <participantTypes description="This is the participant type Broker"
name="Broker" roleTypes="//@typeDefinitions/(a)roleTypes.0"/>
- <participantTypes description="This is the participant type Buyer"
name="Buyer" roleTypes="//@typeDefinitions/(a)roleTypes.1"/>
- <participantTypes description="This is the participant type
CreditAgency" name="CreditAgency"
roleTypes="//@typeDefinitions/(a)roleTypes.2"/>
- <channelTypes description="This is the channel type BrokerChannelType"
name="BrokerChannelType" referenceToken="//@typeDefinitions/(a)tokens.0"
roleType="//@typeDefinitions/(a)roleTypes.0"/>
- <channelTypes description="This is the channel type
CreditAgencyChannelType" name="CreditAgencyChannelType"
referenceToken="//@typeDefinitions/(a)tokens.0"
roleType="//@typeDefinitions/(a)roleTypes.2"/>
+ <participantTypes description="This is the participant type Broker"
name="Broker" roleTypes="//@typeDefinitions/(a)roleTypes.0">
+ <semanticAnnotations
annotation="jboss.overlord.samples.Purchasing@Broker"
name="conversationType"/>
+ </participantTypes>
+ <participantTypes description="This is the participant type Buyer"
name="Buyer" roleTypes="//@typeDefinitions/(a)roleTypes.1">
+ <semanticAnnotations
annotation="jboss.overlord.samples.Purchasing@Buyer"
name="conversationType"/>
+ </participantTypes>
+ <participantTypes description="This is the participant type
CreditAgency" name="CreditAgency"
roleTypes="//@typeDefinitions/(a)roleTypes.2">
+ <semanticAnnotations
annotation="jboss.overlord.samples.Purchasing@CreditAgency"
name="conversationType"/>
+ </participantTypes>
+ <channelTypes description="This is the channel type BrokerChannelType"
name="BrokerChannelType" referenceToken="//@typeDefinitions/(a)tokens.1"
roleType="//@typeDefinitions/(a)roleTypes.0">
+ <identities description="ID"
tokens="//@typeDefinitions/(a)tokens.0"/>
+ </channelTypes>
+ <channelTypes description="This is the channel type
CreditAgencyChannelType" name="CreditAgencyChannelType"
referenceToken="//@typeDefinitions/(a)tokens.1"
roleType="//@typeDefinitions/(a)roleTypes.2">
+ <identities description="ID"
tokens="//@typeDefinitions/(a)tokens.0"/>
+ </channelTypes>
</typeDefinitions>
<choreographies description="Choreography flow for the PurchaseGoods
process" name="PurchaseGoodsProcess" root="true">
<variableDefinitions description="Channel to facilitate interaction to
Broker" name="BrokerChannel"
type="//@typeDefinitions/(a)channelTypes.0"/>
@@ -35,7 +53,7 @@
<exchangeDetails description="This is the exchange details for the request
exchange associated with interaction BuyRequest"
name="BuyRequestRequestExchange"
type="//@typeDefinitions/(a)informationTypes.1"/>
</activities>
<activities xsi:type="org.pi4soa.cdl:Interaction"
name="CreditCheckRequest" operation="checkCredit"
channelVariable="//@choreographies.0/(a)variableDefinitions.1"
relationship="//@typeDefinitions/(a)relationshipTypes.0">
- <exchangeDetails description="This is the exchange details for the request
exchange associated with interaction CreditCheckRequest"
name="CreditCheckRequestRequestExchange"
type="//@typeDefinitions/(a)informationTypes.4"/>
+ <exchangeDetails description="This is the exchange details for the request
exchange associated with interaction CreditCheckRequest"
name="CreditCheckRequestRequestExchange"
type="//@typeDefinitions/(a)informationTypes.3"/>
</activities>
<activities xsi:type="org.pi4soa.cdl:Choice">
<activities xsi:type="org.pi4soa.cdl:Sequence">
@@ -48,7 +66,7 @@
</activities>
<activities xsi:type="org.pi4soa.cdl:Sequence">
<activities xsi:type="org.pi4soa.cdl:Interaction"
name="CreditCheckFailed" operation="checkCredit"
channelVariable="//@choreographies.0/(a)variableDefinitions.1"
relationship="//@typeDefinitions/(a)relationshipTypes.0">
- <exchangeDetails description="This is the exchange details for the
respond exchange associated with interaction CreditCheckFailed"
name="CreditCheckFailedRespondExchange"
type="//@typeDefinitions/(a)informationTypes.3" action="Respond"
faultName="CreditCheckFailed"/>
+ <exchangeDetails description="This is the exchange details for the
respond exchange associated with interaction CreditCheckFailed"
name="CreditCheckFailedRespondExchange"
type="//@typeDefinitions/(a)informationTypes.4" action="Respond"
faultName="CreditCheckFailed"/>
</activities>
<activities xsi:type="org.pi4soa.cdl:Interaction"
name="BuyFailed" operation="buy"
channelVariable="//@choreographies.0/(a)variableDefinitions.0"
relationship="//@typeDefinitions/(a)relationshipTypes.1">
<exchangeDetails description="This is the exchange details for the
respond exchange associated with interaction BuyFailed"
name="BuyFailedRespondExchange"
type="//@typeDefinitions/(a)informationTypes.0" action="Respond"
faultName="BuyFailed"/>
Show replies by date