Canonical model & store routing information

Home Page Forums BizTalk 2004 – BizTalk 2010 Canonical model & store routing information

Viewing 1 reply thread
  • Author
    Posts
    • #25917

      Hi guys,

      If you create a canonical model and you would like to store some routing information, where do you store it? For example, you have a Person canonical and depending on the content, it must be send to Ax or AD (Active Directory). You could create a routing complex type and add this to your canonical person model. In the incoming map, check the content and set sendToAD and sendToAx on True.

      The desadvantage is that your canonical is now contaminated with routing information. If this a good idea or how would you guys do it?

      Person

      <xs:complexType name=”person”>
          <xs:sequence>
            <xs:element minOccurs=”0″ maxOccurs=”1″ name=”title” type=”xs:string” />
            <xs:element minOccurs=”0″ maxOccurs=”1″ name=”name” type=”xs:string” />

            <xs:element minOccurs=”0″ maxOccurs=”1″ name=”routing” type=”routingType” />
          </xs:sequence>
        </xs:complexType>

      Routing information

       <xs:complexType name=”routingType”>
          <xs:sequence>     
            <xs:element minOccurs=”0″ maxOccurs=”1″ name=”sendToAD” type=”xs:boolean” />
            <xs:element minOccurs=”0″ maxOccurs=”1″ name=”sendToAX” type=”xs:boolean” />
            <xs:element minOccurs=”0″ maxOccurs=”1″ name=”sendToExchange” type=”xs:boolean” />   
            <xs:element minOccurs=”0″ maxOccurs=”1″ name=”sendToNullAdapter” type=”xs:boolean” />   
          </xs:sequence>
        </xs:complexType>

    • #25921

      Add a Header section to the Canonical Schema which has a field called "Destination"  and promote it as Property field.

      Map this field in the Incoming Map.

      So, basically, when a message arrives, the receive pipeline is executed, then the map is executed and at the end, the XML disassembler is executed by the transformation engine to get all promoted fields in the destination message promoted

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.