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>