Example #1
0
        internal static void SetOrchestrationReferences(BizTalkArtifacts artifacts, IEnumerable <Microsoft.BizTalk.ExplorerOM.BtsOrchestration> omOrchestrations)
        {
            Log.Info("Sets model references for orchestrations");

            foreach (var omOrchestration in omOrchestrations)
            {
                Log.Debug("Sets references for orchestration {0}", omOrchestration.FullName);
                var orchestration = artifacts.Orchestrations[omOrchestration.Id()];
                OrchestrationModelTransformer.SetReferences(orchestration, artifacts, omOrchestration);
            }
        }
Example #2
0
        internal static IDictionary <string, Orchestration> TransformOrchestrations(IEnumerable <Microsoft.BizTalk.ExplorerOM.BtsOrchestration> omOrchestrations)
        {
            Log.Info("Tranforms orchestrations in new model");

            var orchestrations = new Dictionary <string, Orchestration>();

            foreach (var omOrchestration in omOrchestrations)
            {
                if (!orchestrations.ContainsKey(omOrchestration.Id()))
                {
                    Log.Debug("Tranform orchestration '{0}' into new model", omOrchestration.FullName);
                    orchestrations.Add(omOrchestration.Id(), OrchestrationModelTransformer.TransformModel(omOrchestration));
                }
                else
                {
                    Log.Warn("Skips orchestration '{0}' as it exists in model", omOrchestration.FullName);
                }
            }

            return(orchestrations);
        }