Пример #1
0
        public void Process(string processFileName)
        {
            string projectDirectory = ConfigurationApp.GetProperty(MainClass.ProjectDirectory);

            var tibcoBwProcess = new TibcoBWProcessLinqParser().Parse(processFileName);

            WriteToFile(processFileName, this.projectDir);
            var activities = tibcoBwProcess.Activities;

            this.ProcessActivities(projectDirectory, activities);
        }
        public void Process(string fileName)
        {
            var tibcoBwProcess        = new TibcoBWProcessLinqParser().Parse(fileName);
            var tibcoBwProcessBuilder = new TibcoProcessClassesBuilder();
            var targetUnit            = tibcoBwProcessBuilder.Build(tibcoBwProcess);

            // TODO if exist don't add it ? Ugly but no Config manager on Mono/Xamarin
            if (ConfigurationApp.GetProperty("IsLoggerAlreadyGenerated") != "true")
            {
                targetUnit.Namespaces.Add(new LoggerInterfaceBuilder().Build());
                ConfigurationApp.SaveProperty("IsLoggerAlreadyGenerated", "true");
            }

            this.sourceCodeGeneratorService.Generate(targetUnit);
        }
Пример #3
0
        private void AnalyseViaTheTbwXmlConfigFile(string processToAnalyseFileName)
        {
            var config     = this.configurationParser.Parse(processToAnalyseFileName);
            var projectDir = ConfigurationApp.GetProperty(MainClass.ProjectDirectory);

            foreach (var tbwProcessContainerConfig in config.ServicesConfig.TbwProcessContainers)
            {
                foreach (var processConfig in tbwProcessContainerConfig.TbwProcessConfigs)
                {
                    if (processConfig.IsEnabled)
                    {
                        this.analyserFileProcessorService.Process(projectDir + "/" + processConfig.Name);
                    }
                }
            }
        }
Пример #4
0
 public AnalyserFileProcessorService()
 {
     this.projectDir = ConfigurationApp.GetProperty(MainClass.ProjectDirectory);
 }