Exemplo n.º 1
0
        private static void LoadWorkflowTemplates(IDatabaseHandler dbHandler)
        {
            //WorkFlowTemplates
            //list to store loads to help reduce recursive SQL queries
            WFTemplateLoadingData loadingData = dbHandler.LoadWFTemplates();

            LoadedActiveInstanceByType = loadingData.LoadedActiveInstanceByType;
            for (int i = 0; i < loadingData.WFsToLoad.Count(); i++)
            {
                ValkWFStep CurrentStep = loadingData.WFsToLoad[i];
                LoadChildren(CurrentStep, dbHandler);
                loadingData.WFsToLoad[i] = CurrentStep;
                LoadedInstanceTemplates[loadingData.WFsToLoad[i].WFTemplateID] = loadingData.WFsToLoad[i];
            }
            Console.WriteLine("Workflows Loaded");
        }