private List<string> listScopes(string scope)
{
List<string> scopes = new List<string>();
WorkflowManagementClient client = new WorkflowManagementClient(new Uri(cfgWFMBaseAddress + scope), credentials);
foreach (var i in client.CurrentScope.GetChildScopes())
{
scopes.Add(i.Path.TrimStart('/'));
}
return scopes;
}