Conversie van de TransSmart solution van BizTalk 2013 naar 2016.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

Shipments.XMLReceive.btp.cs 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. namespace TM.TransSmart.Pipelines
  2. {
  3. using System;
  4. using System.Collections.Generic;
  5. using Microsoft.BizTalk.PipelineOM;
  6. using Microsoft.BizTalk.Component;
  7. using Microsoft.BizTalk.Component.Interop;
  8. public sealed class Shipments_XMLReceive : Microsoft.BizTalk.PipelineOM.ReceivePipeline
  9. {
  10. private const string _strPipeline = "<?xml version=\"1.0\" encoding=\"utf-16\"?><Document xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instanc"+
  11. "e\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" MajorVersion=\"1\" MinorVersion=\"0\"> <Description /> "+
  12. " <CategoryId>f66b9f5e-43ff-4f5f-ba46-885348ae1b4e</CategoryId> <FriendlyName>Receive</FriendlyName>"+
  13. " <Stages> <Stage> <PolicyFileStage _locAttrData=\"Name\" _locID=\"1\" Name=\"Decode\" minOccurs=\""+
  14. "0\" maxOccurs=\"-1\" execMethod=\"All\" stageId=\"9d0e4103-4cce-4536-83fa-4a5040674ad6\" /> <Component"+
  15. "s> <Component> <Name>PipelineComponents.TrackingIdDecodingComponent,TM.Shared.Pipeli"+
  16. "neComponents, Version=2.0.1.0, Culture=neutral, PublicKeyToken=db1d2fbb73684f7d</Name> <Com"+
  17. "ponentName>TrackingIdDecodingComponent v1.0.2</ComponentName> <Description>Custom Pipeline "+
  18. "Component used retrieve Context for tracking</Description> <Version>1.0.2</Version> "+
  19. " <Properties> <Property Name=\"ComponentEnabled\"> <Value xsi:type=\"xsd:strin"+
  20. "g\">TRUE</Value> </Property> <Property Name=\"DebugEnabled\"> <Value"+
  21. " xsi:type=\"xsd:string\">FALSE</Value> </Property> <Property Name=\"DebugFile\"> "+
  22. " <Value xsi:type=\"xsd:string\">D:\\LOG\\TrackingIdDecodingComponent v1.0.2_DEBUG.txt</Value>"+
  23. " </Property> </Properties> <CachedDisplayName>TrackingIdDecodingCompone"+
  24. "nt v1.0.2</CachedDisplayName> <CachedIsManaged>true</CachedIsManaged> </Component> "+
  25. " <Component> <Name>PipelineComponents.EncodingComponent,TM.Shared.PipelineComponents, "+
  26. "Version=2.0.1.0, Culture=neutral, PublicKeyToken=db1d2fbb73684f7d</Name> <ComponentName>Enc"+
  27. "odingComponent v1.3</ComponentName> <Description>Custom Pipeline Component used to change M"+
  28. "essage Encoding</Description> <Version>1.3.0.0</Version> <Properties> <"+
  29. "Property Name=\"ComponentEnabled\"> <Value xsi:type=\"xsd:string\" /> </Property"+
  30. "> <Property Name=\"OldEncoding\"> <Value xsi:type=\"xsd:string\" /> <"+
  31. "/Property> <Property Name=\"NewEncoding\"> <Value xsi:type=\"xsd:string\" /> "+
  32. " </Property> </Properties> <CachedDisplayName>EncodingComponent v1.3</Cache"+
  33. "dDisplayName> <CachedIsManaged>true</CachedIsManaged> </Component> <Component"+
  34. "> <Name>PipelineComponents.TrackingComponent,TM.Shared.PipelineComponents, Version=2.0.1.0,"+
  35. " Culture=neutral, PublicKeyToken=db1d2fbb73684f7d</Name> <ComponentName>TrackingComponent v"+
  36. "2.0.2</ComponentName> <Description>Custom Pipeline Component used to log messages instead o"+
  37. "f DTA Tracking</Description> <Version>2.0.2</Version> <Properties> <Pro"+
  38. "perty Name=\"ComponentEnabled\"> <Value xsi:type=\"xsd:string\" /> </Property> "+
  39. " <Property Name=\"Encoding\"> <Value xsi:type=\"xsd:string\" /> </Prope"+
  40. "rty> <Property Name=\"PipelineDirection\"> <Value xsi:type=\"xsd:string\" /> "+
  41. " </Property> <Property Name=\"PipelineSolution\"> <Value xsi:type=\"xsd:"+
  42. "string\" /> </Property> <Property Name=\"PipelinePhase\"> <Value xsi"+
  43. ":type=\"xsd:string\" /> </Property> <Property Name=\"SharedMessageType\"> "+
  44. " <Value xsi:type=\"xsd:string\" /> </Property> <Property Name=\"Additional1\">"+
  45. " <Value xsi:type=\"xsd:string\" /> </Property> <Property Name=\"Addi"+
  46. "tional2\"> <Value xsi:type=\"xsd:string\" /> </Property> <Property N"+
  47. "ame=\"Additional3\"> <Value xsi:type=\"xsd:string\" /> </Property> <P"+
  48. "roperty Name=\"Original\"> <Value xsi:type=\"xsd:string\" /> </Property> "+
  49. " <Property Name=\"Final\"> <Value xsi:type=\"xsd:string\" /> </Property> "+
  50. " <Property Name=\"Level\"> <Value xsi:type=\"xsd:int\">0</Value> </Propert"+
  51. "y> <Property Name=\"MessageInDatabase\"> <Value xsi:type=\"xsd:string\" /> "+
  52. " </Property> </Properties> <CachedDisplayName>TrackingComponent v2.0.2</Cache"+
  53. "dDisplayName> <CachedIsManaged>true</CachedIsManaged> </Component> <Component"+
  54. "> <Name>PipelineComponents.ReplaceComponent,TM.Shared.PipelineComponents, Version=2.0.1.0, "+
  55. "Culture=neutral, PublicKeyToken=db1d2fbb73684f7d</Name> <ComponentName>ReplaceComponent v1."+
  56. "3</ComponentName> <Description>Custom Pipeline Component used to replace strings in Message"+
  57. " Content (delimiter: |)</Description> <Version>1.3.0.0</Version> <Properties> "+
  58. " <Property Name=\"ComponentEnabled\"> <Value xsi:type=\"xsd:string\" /> </"+
  59. "Property> <Property Name=\"OldEncoding\"> <Value xsi:type=\"xsd:string\" /> "+
  60. " </Property> <Property Name=\"OldValues\"> <Value xsi:type=\"xsd:string\" "+
  61. "/> </Property> <Property Name=\"NewValues\"> <Value xsi:type=\"xsd:s"+
  62. "tring\" /> </Property> <Property Name=\"NewEncoding\"> <Value xsi:ty"+
  63. "pe=\"xsd:string\" /> </Property> </Properties> <CachedDisplayName>Replace"+
  64. "Component v1.3</CachedDisplayName> <CachedIsManaged>true</CachedIsManaged> </Compone"+
  65. "nt> <Component> <Name>PipelineComponents.NamespaceComponent,TM.Shared.PipelineCompon"+
  66. "ents, Version=2.0.1.0, Culture=neutral, PublicKeyToken=db1d2fbb73684f7d</Name> <ComponentNa"+
  67. "me>NamespaceComponent v1.3</ComponentName> <Description>Custom Pipeline Component used to A"+
  68. "dd, Remove or Replace the Message Namespace</Description> <Version>1.3.0.0</Version> "+
  69. " <Properties> <Property Name=\"ComponentEnabled\"> <Value xsi:type=\"xsd:stri"+
  70. "ng\" /> </Property> <Property Name=\"OldNamespace\"> <Value xsi:type"+
  71. "=\"xsd:string\" /> </Property> <Property Name=\"NewNamespace\"> <Valu"+
  72. "e xsi:type=\"xsd:string\" /> </Property> </Properties> <CachedDisplayName"+
  73. ">NamespaceComponent v1.3</CachedDisplayName> <CachedIsManaged>true</CachedIsManaged> "+
  74. " </Component> <Component> <Name>PipelineComponents.TrackingComponent,TM.Shared.Pipel"+
  75. "ineComponents, Version=2.0.1.0, Culture=neutral, PublicKeyToken=db1d2fbb73684f7d</Name> <Co"+
  76. "mponentName>TrackingComponent v2.0.2</ComponentName> <Description>Custom Pipeline Component"+
  77. " used to log messages instead of DTA Tracking</Description> <Version>2.0.2</Version> "+
  78. " <Properties> <Property Name=\"ComponentEnabled\"> <Value xsi:type=\"xsd:stri"+
  79. "ng\" /> </Property> <Property Name=\"Encoding\"> <Value xsi:type=\"xs"+
  80. "d:string\" /> </Property> <Property Name=\"PipelineDirection\"> <Val"+
  81. "ue xsi:type=\"xsd:string\" /> </Property> <Property Name=\"PipelineSolution\"> "+
  82. " <Value xsi:type=\"xsd:string\" /> </Property> <Property Name=\"Pipeline"+
  83. "Phase\"> <Value xsi:type=\"xsd:string\" /> </Property> <Property Nam"+
  84. "e=\"SharedMessageType\"> <Value xsi:type=\"xsd:string\" /> </Property> "+
  85. " <Property Name=\"Additional1\"> <Value xsi:type=\"xsd:string\" /> </Property> "+
  86. " <Property Name=\"Additional2\"> <Value xsi:type=\"xsd:string\" /> </P"+
  87. "roperty> <Property Name=\"Additional3\"> <Value xsi:type=\"xsd:string\" /> "+
  88. " </Property> <Property Name=\"Original\"> <Value xsi:type=\"xsd:string\" />"+
  89. " </Property> <Property Name=\"Final\"> <Value xsi:type=\"xsd:string\""+
  90. " /> </Property> <Property Name=\"MessageInDatabase\"> <Value xsi:ty"+
  91. "pe=\"xsd:string\" /> </Property> <Property Name=\"Level\"> <Value xsi"+
  92. ":type=\"xsd:int\">0</Value> </Property> </Properties> <CachedDisplayName>"+
  93. "TrackingComponent v2.0.2</CachedDisplayName> <CachedIsManaged>true</CachedIsManaged> "+
  94. " </Component> </Components> </Stage> <Stage> <PolicyFileStage _locAttrData=\"Name\" _l"+
  95. "ocID=\"2\" Name=\"Disassemble\" minOccurs=\"0\" maxOccurs=\"-1\" execMethod=\"FirstMatch\" stageId=\"9d0e4105-4"+
  96. "cce-4536-83fa-4a5040674ad6\" /> <Components> <Component> <Name>TM.TransSmart.Pip"+
  97. "elineComponents.CPL_Debatch,TM.TransSmart.PipelineComponents, Version=1.0.1.0, Culture=neutral, Publ"+
  98. "icKeyToken=089e5464cda5fc95</Name> <ComponentName>TransSmart Debatch Disassembler</Componen"+
  99. "tName> <Description>Streaming TransSmart Debatch Disassembler Component</Description> "+
  100. " <Version>1.0</Version> <Properties /> <CachedDisplayName>TransSmart Debatch Di"+
  101. "sassembler</CachedDisplayName> <CachedIsManaged>true</CachedIsManaged> </Component> "+
  102. " </Components> </Stage> <Stage> <PolicyFileStage _locAttrData=\"Name\" _locID=\"3\" Name="+
  103. "\"Validate\" minOccurs=\"0\" maxOccurs=\"-1\" execMethod=\"All\" stageId=\"9d0e410d-4cce-4536-83fa-4a5040674a"+
  104. "d6\" /> <Components> <Component> <Name>PipelineComponents.TrackingComponent,TM.S"+
  105. "hared.PipelineComponents, Version=2.0.1.0, Culture=neutral, PublicKeyToken=db1d2fbb73684f7d</Name> "+
  106. " <ComponentName>TrackingComponent v2.0.2</ComponentName> <Description>Custom Pipelin"+
  107. "e Component used to log messages instead of DTA Tracking</Description> <Version>2.0.2</Vers"+
  108. "ion> <Properties> <Property Name=\"ComponentEnabled\"> <Value xsi:typ"+
  109. "e=\"xsd:string\" /> </Property> <Property Name=\"Encoding\"> <Value x"+
  110. "si:type=\"xsd:string\" /> </Property> <Property Name=\"PipelineDirection\"> "+
  111. " <Value xsi:type=\"xsd:string\" /> </Property> <Property Name=\"PipelineSol"+
  112. "ution\"> <Value xsi:type=\"xsd:string\" /> </Property> <Property Nam"+
  113. "e=\"PipelinePhase\"> <Value xsi:type=\"xsd:string\" /> </Property> <P"+
  114. "roperty Name=\"SharedMessageType\"> <Value xsi:type=\"xsd:string\" /> </Property"+
  115. "> <Property Name=\"Additional1\"> <Value xsi:type=\"xsd:string\" /> <"+
  116. "/Property> <Property Name=\"Additional2\"> <Value xsi:type=\"xsd:string\" /> "+
  117. " </Property> <Property Name=\"Additional3\"> <Value xsi:type=\"xsd:strin"+
  118. "g\" /> </Property> <Property Name=\"Original\"> <Value xsi:type=\"xsd"+
  119. ":string\" /> </Property> <Property Name=\"Final\"> <Value xsi:type=\""+
  120. "xsd:string\" /> </Property> <Property Name=\"MessageInDatabase\"> <V"+
  121. "alue xsi:type=\"xsd:string\" /> </Property> <Property Name=\"Level\"> "+
  122. " <Value xsi:type=\"xsd:int\">0</Value> </Property> </Properties> <CachedD"+
  123. "isplayName>TrackingComponent v2.0.2</CachedDisplayName> <CachedIsManaged>true</CachedIsMana"+
  124. "ged> </Component> </Components> </Stage> <Stage> <PolicyFileStage _locAttrDat"+
  125. "a=\"Name\" _locID=\"4\" Name=\"ResolveParty\" minOccurs=\"0\" maxOccurs=\"-1\" execMethod=\"All\" stageId=\"9d0e4"+
  126. "10e-4cce-4536-83fa-4a5040674ad6\" /> <Components /> </Stage> </Stages></Document>";
  127. private const string _versionDependentGuid = "9b458fb3-27e2-4cab-b008-813be116621f";
  128. public Shipments_XMLReceive()
  129. {
  130. Microsoft.BizTalk.PipelineOM.Stage stage = this.AddStage(new System.Guid("9d0e4103-4cce-4536-83fa-4a5040674ad6"), Microsoft.BizTalk.PipelineOM.ExecutionMode.all);
  131. IBaseComponent comp0 = Microsoft.BizTalk.PipelineOM.PipelineManager.CreateComponent("PipelineComponents.TrackingIdDecodingComponent,TM.Shared.PipelineComponents, Version=2.0.1.0, Culture=neutral, PublicKeyToken=db1d2fbb73684f7d");;
  132. if (comp0 is IPersistPropertyBag)
  133. {
  134. string comp0XmlProperties = "<?xml version=\"1.0\" encoding=\"utf-16\"?><PropertyBag xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-inst"+
  135. "ance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> <Properties> <Property Name=\"ComponentEnable"+
  136. "d\"> <Value xsi:type=\"xsd:string\">TRUE</Value> </Property> <Property Name=\"DebugEnabled\"> "+
  137. " <Value xsi:type=\"xsd:string\">FALSE</Value> </Property> <Property Name=\"DebugFile\"> <"+
  138. "Value xsi:type=\"xsd:string\">D:\\LOG\\TrackingIdDecodingComponent v1.0.2_DEBUG.txt</Value> </Propert"+
  139. "y> </Properties></PropertyBag>";
  140. PropertyBag pb = PropertyBag.DeserializeFromXml(comp0XmlProperties);;
  141. ((IPersistPropertyBag)(comp0)).Load(pb, 0);
  142. }
  143. this.AddComponent(stage, comp0);
  144. IBaseComponent comp1 = Microsoft.BizTalk.PipelineOM.PipelineManager.CreateComponent("PipelineComponents.EncodingComponent,TM.Shared.PipelineComponents, Version=2.0.1.0, Culture=neutral, PublicKeyToken=db1d2fbb73684f7d");;
  145. if (comp1 is IPersistPropertyBag)
  146. {
  147. string comp1XmlProperties = "<?xml version=\"1.0\" encoding=\"utf-16\"?><PropertyBag xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-inst"+
  148. "ance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> <Properties> <Property Name=\"ComponentEnable"+
  149. "d\"> <Value xsi:type=\"xsd:string\" /> </Property> <Property Name=\"OldEncoding\"> <Value"+
  150. " xsi:type=\"xsd:string\" /> </Property> <Property Name=\"NewEncoding\"> <Value xsi:type=\"xsd:"+
  151. "string\" /> </Property> </Properties></PropertyBag>";
  152. PropertyBag pb = PropertyBag.DeserializeFromXml(comp1XmlProperties);;
  153. ((IPersistPropertyBag)(comp1)).Load(pb, 0);
  154. }
  155. this.AddComponent(stage, comp1);
  156. IBaseComponent comp2 = Microsoft.BizTalk.PipelineOM.PipelineManager.CreateComponent("PipelineComponents.TrackingComponent,TM.Shared.PipelineComponents, Version=2.0.1.0, Culture=neutral, PublicKeyToken=db1d2fbb73684f7d");;
  157. if (comp2 is IPersistPropertyBag)
  158. {
  159. string comp2XmlProperties = "<?xml version=\"1.0\" encoding=\"utf-16\"?><PropertyBag xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-inst"+
  160. "ance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> <Properties> <Property Name=\"ComponentEnable"+
  161. "d\"> <Value xsi:type=\"xsd:string\" /> </Property> <Property Name=\"Encoding\"> <Value xs"+
  162. "i:type=\"xsd:string\" /> </Property> <Property Name=\"PipelineDirection\"> <Value xsi:type=\"x"+
  163. "sd:string\" /> </Property> <Property Name=\"PipelineSolution\"> <Value xsi:type=\"xsd:string\""+
  164. " /> </Property> <Property Name=\"PipelinePhase\"> <Value xsi:type=\"xsd:string\" /> </Prop"+
  165. "erty> <Property Name=\"SharedMessageType\"> <Value xsi:type=\"xsd:string\" /> </Property> "+
  166. "<Property Name=\"Additional1\"> <Value xsi:type=\"xsd:string\" /> </Property> <Property Name="+
  167. "\"Additional2\"> <Value xsi:type=\"xsd:string\" /> </Property> <Property Name=\"Additional3\"> "+
  168. " <Value xsi:type=\"xsd:string\" /> </Property> <Property Name=\"Original\"> <Value xsi:ty"+
  169. "pe=\"xsd:string\" /> </Property> <Property Name=\"Final\"> <Value xsi:type=\"xsd:string\" /> "+
  170. " </Property> <Property Name=\"Level\"> <Value xsi:type=\"xsd:int\">0</Value> </Property> <"+
  171. "Property Name=\"MessageInDatabase\"> <Value xsi:type=\"xsd:string\" /> </Property> </Properties"+
  172. "></PropertyBag>";
  173. PropertyBag pb = PropertyBag.DeserializeFromXml(comp2XmlProperties);;
  174. ((IPersistPropertyBag)(comp2)).Load(pb, 0);
  175. }
  176. this.AddComponent(stage, comp2);
  177. IBaseComponent comp3 = Microsoft.BizTalk.PipelineOM.PipelineManager.CreateComponent("PipelineComponents.ReplaceComponent,TM.Shared.PipelineComponents, Version=2.0.1.0, Culture=neutral, PublicKeyToken=db1d2fbb73684f7d");;
  178. if (comp3 is IPersistPropertyBag)
  179. {
  180. string comp3XmlProperties = "<?xml version=\"1.0\" encoding=\"utf-16\"?><PropertyBag xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-inst"+
  181. "ance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> <Properties> <Property Name=\"ComponentEnable"+
  182. "d\"> <Value xsi:type=\"xsd:string\" /> </Property> <Property Name=\"OldEncoding\"> <Value"+
  183. " xsi:type=\"xsd:string\" /> </Property> <Property Name=\"OldValues\"> <Value xsi:type=\"xsd:st"+
  184. "ring\" /> </Property> <Property Name=\"NewValues\"> <Value xsi:type=\"xsd:string\" /> </Pro"+
  185. "perty> <Property Name=\"NewEncoding\"> <Value xsi:type=\"xsd:string\" /> </Property> </Prope"+
  186. "rties></PropertyBag>";
  187. PropertyBag pb = PropertyBag.DeserializeFromXml(comp3XmlProperties);;
  188. ((IPersistPropertyBag)(comp3)).Load(pb, 0);
  189. }
  190. this.AddComponent(stage, comp3);
  191. IBaseComponent comp4 = Microsoft.BizTalk.PipelineOM.PipelineManager.CreateComponent("PipelineComponents.NamespaceComponent,TM.Shared.PipelineComponents, Version=2.0.1.0, Culture=neutral, PublicKeyToken=db1d2fbb73684f7d");;
  192. if (comp4 is IPersistPropertyBag)
  193. {
  194. string comp4XmlProperties = "<?xml version=\"1.0\" encoding=\"utf-16\"?><PropertyBag xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-inst"+
  195. "ance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> <Properties> <Property Name=\"ComponentEnable"+
  196. "d\"> <Value xsi:type=\"xsd:string\" /> </Property> <Property Name=\"OldNamespace\"> <Valu"+
  197. "e xsi:type=\"xsd:string\" /> </Property> <Property Name=\"NewNamespace\"> <Value xsi:type=\"xs"+
  198. "d:string\" /> </Property> </Properties></PropertyBag>";
  199. PropertyBag pb = PropertyBag.DeserializeFromXml(comp4XmlProperties);;
  200. ((IPersistPropertyBag)(comp4)).Load(pb, 0);
  201. }
  202. this.AddComponent(stage, comp4);
  203. IBaseComponent comp5 = Microsoft.BizTalk.PipelineOM.PipelineManager.CreateComponent("PipelineComponents.TrackingComponent,TM.Shared.PipelineComponents, Version=2.0.1.0, Culture=neutral, PublicKeyToken=db1d2fbb73684f7d");;
  204. if (comp5 is IPersistPropertyBag)
  205. {
  206. string comp5XmlProperties = "<?xml version=\"1.0\" encoding=\"utf-16\"?><PropertyBag xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-inst"+
  207. "ance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> <Properties> <Property Name=\"ComponentEnable"+
  208. "d\"> <Value xsi:type=\"xsd:string\" /> </Property> <Property Name=\"Encoding\"> <Value xs"+
  209. "i:type=\"xsd:string\" /> </Property> <Property Name=\"PipelineDirection\"> <Value xsi:type=\"x"+
  210. "sd:string\" /> </Property> <Property Name=\"PipelineSolution\"> <Value xsi:type=\"xsd:string\""+
  211. " /> </Property> <Property Name=\"PipelinePhase\"> <Value xsi:type=\"xsd:string\" /> </Prop"+
  212. "erty> <Property Name=\"SharedMessageType\"> <Value xsi:type=\"xsd:string\" /> </Property> "+
  213. "<Property Name=\"Additional1\"> <Value xsi:type=\"xsd:string\" /> </Property> <Property Name="+
  214. "\"Additional2\"> <Value xsi:type=\"xsd:string\" /> </Property> <Property Name=\"Additional3\"> "+
  215. " <Value xsi:type=\"xsd:string\" /> </Property> <Property Name=\"Original\"> <Value xsi:ty"+
  216. "pe=\"xsd:string\" /> </Property> <Property Name=\"Final\"> <Value xsi:type=\"xsd:string\" /> "+
  217. " </Property> <Property Name=\"MessageInDatabase\"> <Value xsi:type=\"xsd:string\" /> </Proper"+
  218. "ty> <Property Name=\"Level\"> <Value xsi:type=\"xsd:int\">0</Value> </Property> </Properties"+
  219. "></PropertyBag>";
  220. PropertyBag pb = PropertyBag.DeserializeFromXml(comp5XmlProperties);;
  221. ((IPersistPropertyBag)(comp5)).Load(pb, 0);
  222. }
  223. this.AddComponent(stage, comp5);
  224. stage = this.AddStage(new System.Guid("9d0e4105-4cce-4536-83fa-4a5040674ad6"), Microsoft.BizTalk.PipelineOM.ExecutionMode.firstRecognized);
  225. IBaseComponent comp6 = Microsoft.BizTalk.PipelineOM.PipelineManager.CreateComponent("TM.TransSmart.PipelineComponents.CPL_Debatch,TM.TransSmart.PipelineComponents, Version=1.0.1.0, Culture=neutral, PublicKeyToken=089e5464cda5fc95");;
  226. if (comp6 is IPersistPropertyBag)
  227. {
  228. string comp6XmlProperties = "<?xml version=\"1.0\" encoding=\"utf-16\"?><PropertyBag xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-inst"+
  229. "ance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> <Properties /></PropertyBag>";
  230. PropertyBag pb = PropertyBag.DeserializeFromXml(comp6XmlProperties);;
  231. ((IPersistPropertyBag)(comp6)).Load(pb, 0);
  232. }
  233. this.AddComponent(stage, comp6);
  234. stage = this.AddStage(new System.Guid("9d0e410d-4cce-4536-83fa-4a5040674ad6"), Microsoft.BizTalk.PipelineOM.ExecutionMode.all);
  235. IBaseComponent comp7 = Microsoft.BizTalk.PipelineOM.PipelineManager.CreateComponent("PipelineComponents.TrackingComponent,TM.Shared.PipelineComponents, Version=2.0.1.0, Culture=neutral, PublicKeyToken=db1d2fbb73684f7d");;
  236. if (comp7 is IPersistPropertyBag)
  237. {
  238. string comp7XmlProperties = "<?xml version=\"1.0\" encoding=\"utf-16\"?><PropertyBag xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-inst"+
  239. "ance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> <Properties> <Property Name=\"ComponentEnable"+
  240. "d\"> <Value xsi:type=\"xsd:string\" /> </Property> <Property Name=\"Encoding\"> <Value xs"+
  241. "i:type=\"xsd:string\" /> </Property> <Property Name=\"PipelineDirection\"> <Value xsi:type=\"x"+
  242. "sd:string\" /> </Property> <Property Name=\"PipelineSolution\"> <Value xsi:type=\"xsd:string\""+
  243. " /> </Property> <Property Name=\"PipelinePhase\"> <Value xsi:type=\"xsd:string\" /> </Prop"+
  244. "erty> <Property Name=\"SharedMessageType\"> <Value xsi:type=\"xsd:string\" /> </Property> "+
  245. "<Property Name=\"Additional1\"> <Value xsi:type=\"xsd:string\" /> </Property> <Property Name="+
  246. "\"Additional2\"> <Value xsi:type=\"xsd:string\" /> </Property> <Property Name=\"Additional3\"> "+
  247. " <Value xsi:type=\"xsd:string\" /> </Property> <Property Name=\"Original\"> <Value xsi:ty"+
  248. "pe=\"xsd:string\" /> </Property> <Property Name=\"Final\"> <Value xsi:type=\"xsd:string\" /> "+
  249. " </Property> <Property Name=\"MessageInDatabase\"> <Value xsi:type=\"xsd:string\" /> </Proper"+
  250. "ty> <Property Name=\"Level\"> <Value xsi:type=\"xsd:int\">0</Value> </Property> </Properties"+
  251. "></PropertyBag>";
  252. PropertyBag pb = PropertyBag.DeserializeFromXml(comp7XmlProperties);;
  253. ((IPersistPropertyBag)(comp7)).Load(pb, 0);
  254. }
  255. this.AddComponent(stage, comp7);
  256. }
  257. public override string XmlContent
  258. {
  259. get
  260. {
  261. return _strPipeline;
  262. }
  263. }
  264. public override System.Guid VersionDependentGuid
  265. {
  266. get
  267. {
  268. return new System.Guid(_versionDependentGuid);
  269. }
  270. }
  271. }
  272. }