Hi guys,
I’m currently researching ways to do this outside of an orchestration – e.g. pipeline.
Here’s a simple technique you can use INSIDE an
Orch.
(1) variable declarations in the Orch.
System.Type MapToApplyType;
(2) message declaration
<schema type or whatever> msgIn;
System.Xml.XmlDocument msgOut;
(3) code in the Orchestration – in the getType function you could grab that
string from rules or anywhere.
In an expression shape: (for eg)
MapToApply = System.Type.GetType(“MyMapAssembly.MyMap, MyMapAssembly, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=abfe123ef93cc2aa”);
(4) in a message construct shape for msgOut
// the line below is GOLD where
transform (msgOut) = MapToApplyType(msgIn);
There you have it!!! BTS looks after the finding and loading of the map. transform is
an internal keyword of bts.
Have fun,