About Utilities methods that are converted when migrating from Pega robotic 19.1 to 22.1

When migrating from Pega robotic 19.1 to 22.1, the following Utilities methods will be converted to new methods.

  • stringUtils,
  • dateTimeUtils
  • timeSpanUtils
  • fileUtils

I would like to know what the differences in specifications are between the new and legacy methods.

“contains” method seems to have different specifications for handling null values.

“substring” method seems to have different specifications for how it behaves when the search keyword is longer than the string being searched.

Migrating solutions from 19.1 to 22.1

@ThomasSasnett could you answer this question?

@MarijeSchillern I am working on getting a response to this. I will post as soon as I have all of the details.

@ReiA7543 I apologize for taking so long to get back to you. There were changes made when we switched from a string utils component to standard toolbox methods. The following methods were changed to no longer accept nulls as inputs. Our suggestion would be to check for nulls if you were not before. All other methods should behave the same.

String Methods;

Length
Concat
Contains
Equals

Datetime Methods;

ToString