Changed - Starts-With XPath will now have behave default behaviour. To have a backward compatible behaviour use AppConfig AppSetting GenerateUniqueValueActivity_OptimizeUniquenessKey = 'true'

This commit is contained in:
NileshGhodekar 2019-01-10 17:17:27 +00:00
Родитель 7dc20e7982
Коммит 401699abc2
2 изменённых файлов: 12 добавлений и 4 удалений

Просмотреть файл

@ -22,7 +22,7 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary
/// Build Number (MMDD)
/// Revision (if any on the same day)
/// </summary>
internal const string Version = "2.18.1110.0";
internal const string Version = "2.19.0110.0";
/// <summary>
/// File Version information for the assembly consists of the following four values:
@ -31,6 +31,6 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary
/// Build Number (MMDD)
/// Revision (if any on the same day)
/// </summary>
internal const string FileVersion = "2.18.1110.0";
internal const string FileVersion = "2.19.0110.0";
}
}

Просмотреть файл

@ -207,6 +207,11 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Activitie
{
this.maxLoopCount = 512;
}
if (!bool.TryParse(ConfigurationManager.AppSettings["GenerateUniqueValueActivity_OptimizeUniquenessKey"], out this.optimizeUniquenessKey))
{
this.optimizeUniquenessKey = false;
}
}
finally
{
@ -740,8 +745,11 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Activitie
{
// Find the attributes to read on potentially conflicing resources
// so that the uniqueness seed can be repositioned instead of simply incremented
// when the conflict filter XPath uses a starts-with fuction
this.SetAttributesToReadForConflictResources();
// when the conflict filter XPath uses a starts-with fuction
if (this.optimizeUniquenessKey)
{
this.SetAttributesToReadForConflictResources();
}
// Default the uniqueness key to the specified uniqueness seed,
// resolve the first value expression in the list, and use that value to resolve