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;
}
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(); }