strICT.InFlow.WFM.Utilities.InFlowWFM.deleteCompanyScope C# (CSharp) Method

deleteCompanyScope() public method

Delete entire company-scope
public deleteCompanyScope ( string companyScopeName ) : string
companyScopeName string company-scope name
return string
        public string deleteCompanyScope(string companyScopeName)
        {
            /*if (deleteDBEntries)
            {
                IProcessStore processStore = StoreHandler.getProcessStore(cfgSQLConnectionString);

                processStore.deleteCompany(companyScopeName);
            }*/

            WorkflowManagementClient client = new WorkflowManagementClient(new Uri(cfgWFMBaseAddress + companyScopeName + "/"), credentials);
            client.CleanUp();
            return companyScopeName;
        }

Usage Example

示例#1
0
        static void cleanScope()
        {
            InFlowWFM wfm = new InFlowWFM(cfgWFMBaseAddress, cfgWFMUsername, cfgWFMPassword, cfgSQLConnectionString_InFlow);

            

            string input = "...";

            do
            {
                DConsole.PrintEmptyLines();
                DConsole.Print("ProcessName:");
                input = Console.ReadLine();
                if(input.Length > 0)
                    DConsole.Print(wfm.deleteProcess(ScopeName, input));
                if (input.Length <= 0)
                    DConsole.Print(wfm.deleteCompanyScope(ScopeName));

                DConsole.PrintDone(); Console.WriteLine();

            } while (input.Length > 0);

            start();
        }