cdl:package
Element information
Namespace: http://www.w3.org/2005/10/cdl
Schema document: ws-cdl.xsd
Type: cdl:tPackage
Properties: Global, Qualified
Content
- Sequence [1..1]
- cdl:description [0..1]
- cdl:CDLExtension [0..*]
- cdl:informationType [0..*]
- cdl:token [0..*]
- cdl:tokenLocator [0..*]
- cdl:roleType [0..*]
- cdl:relationshipType [0..*]
- cdl:participantType [0..*]
- cdl:channelType [0..*]
- cdl:choreography [0..*]
from type cdl:tExtensibleElements
Attributes
Name | Occ | Type | Description | Notes |
---|---|---|---|---|
Any attribute | [0..*] | Namespace: ##other, Process Contents: lax | from type cdl:tExtensibleElements | |
name | [1..1] | xsd:NCName | ||
author | [0..1] | xsd:string | ||
version | [0..1] | xsd:string | ||
targetNamespace | [1..1] | xsd:anyURI |
Sample instance
<package targetNamespace="http://www.example.com/ConsumerRetailerChoreographysample" name="ConsumerRetailerChoreography" version="1.0"> <informationType name="purchaseOrderType" type="tns:PurchaseOrderMsg"/> <informationType name="purchaseOrderAckType" type="tns:PurchaseOrderAckMsg"/> <informationType name="badPOAckType" type="xsd:QName"/> <informationType name="uriType" type="xsd:string"/> <informationType name="intType" type="xsd:integer"/> <token name="purchaseOrderID" informationType="tns:intType"/> <token name="retailerRef" informationType="tns:uriType"/> <token name="consumerRef" informationType="tns:uriType"/> <tokenLocator tokenName="tns:purchaseOrderID" informationType="tns:purchaseOrderType" query="/PO/orderId"/> <tokenLocator tokenName="tns:purchaseOrderID" informationType="tns:purchaseOrderAckType" query="/PO/orderId"/> <roleType name="Consumer"> <behavior name="consumerForRetailer" interface="rns:ConsumerRetailerPT"/> <behavior name="consumerForWarehouse" interface="rns:ConsumerWarehousePT"/> </roleType> <roleType name="Retailer"> <behavior name="retailerForConsumer" interface="rns:RetailerConsumerPT"/> </roleType> <relationshipType name="ConsumerRetailerRelationship"> <roleType typeRef="tns:Consumer" behavior="consumerForRetailer"/> <roleType typeRef="tns:Retailer" behavior="retailerForConsumer"/> </relationshipType> <channelType name="ConsumerChannel"> <roleType typeRef="tns:Consumer"/> <reference> <token name="tns:consumerRef"/> </reference> <identity> <token name="tns:purchaseOrderID"/> </identity> </channelType> <channelType name="RetailerChannel"> <passing channel="ConsumerChannel" action="request"/> <roleType typeRef="tns:Retailer" behavior="retailerForConsumer"/> <reference> <token name="tns:retailerRef"/> </reference> <identity> <token name="tns:purchaseOrderID"/> </identity> </channelType> <choreography name="ConsumerRetailerChoreography"> <relationship type="tns:ConsumerRetailerRelationship"/> <variableDefinitions> <variable name="purchaseOrder" informationType="tns:purchaseOrderType" silent="false"/> <variable name="purchaseOrderAck" informationType="tns:purchaseOrderAckType"/> <variable name="retailer-channel" channelType="tns:RetailerChannel"/> <variable name="consumer-channel" channelType="tns:ConsumerChannel"/> <variable name="badPurchaseOrderAck" informationType="tns:badPOAckType"/> </variableDefinitions> <interaction name="createPO" channelVariable="tns:retailer-channel" operation="handlePurchaseOrder"> <participate relationshipType="tns:ConsumerRetailerRelationship" fromRoleTypeRef="tns:Consumer" toRoleTypeRef="tns:Retailer"/> <exchange name="request" informationType="tns:purchaseOrderType" action="request"> <send variable="cdl:getVariable('tns:purchaseOrder','','')"/> <receive variable="cdl:getVariable('tns:purchaseOrder','','')" recordReference="record-the-channel-info"/> </exchange> <exchange name="response" informationType="purchaseOrderAckType" action="respond"> <send variable="cdl:getVariable('tns:purchaseOrderAck','','')"/> <receive variable="cdl:getVariable('tns:purchaseOrderAck','','')"/> </exchange> <exchange name="badPurchaseOrderAckException" faultName="badPurchaseOrderAckException" informationType="badPOAckType" action="respond"> <send variable="cdl:getVariable('tns:badPurchaseOrderAck','','')" causeException="tns:badPOAck"/> <receive variable="cdl:getVariable('tns:badPurchaseOrderAck','','')" causeException="tns:badPOAck"/> </exchange> <record name="record-the-channel-info" when="after"> <source variable="cdl:getVariable('tns:purchaseOrder','', '/PO/CustomerRef')"/> <target variable="cdl:getVariable('tns:consumer-channel','','')"/> </record> </interaction> </choreography> </package>