Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Functions supported for optimization

Updated on May 17, 2024

To ensure that your strategy can be optimized for better performance, use strategy components that contain only functions supported for optimization.

The following table provides a list of functions supported for optimization by default:

Note: You can optimize functions that are not included on the list as well, by adding them to the pyAllowlistFunction data transform. For more information, see Optimizing strategies with allow list functions.

Functions supported for optimization

Function NameLibraryRulesetReturn TypeParameter Type list
and(Built-In)---boolean{boolean}
If(Built-In)---boolean{boolean,then,otherwise}
or(Built-In)---boolean{boolean}
addDaysBusinessCalendarPega-RULESString{String, int, boolean, String, String}
addCalendarDateTimePega-RULESString{String, String, String, String, String, String, String, String}
addToDateDateTimePega-RULESString{String, String, String, String, String}
CompareDatesDateTimePega-RULESboolean{String, String, boolean}
CompareDatesDateTimePega-RULESboolean{String, String}
compareDatesByDaysDateTimePega-RULESboolean{String, String, int}
CompareDateTimeStampDateTimePega-RULESboolean{String, String}
CurrentDateDateTimePega-RULESString{String, String}
CurrentDateTimeDateTimePega-RULESString{---}
dateDateTimePega-RULESBigDecimal{int, int, int}
DateTimeDifferenceDateTimePega-RULESdouble{String, String, String}
DateTimeDurationDateTimePega-RULESString{String, String, String}
dateValueDateTimePega-RULESBigDecimal{String}
dayDateTimePega-RULESint{double}
dayDateTimePega-RULESint{BigDecimal}
FormatDateTimeDateTimePega-RULESString{String, String, String, String}
FormatElapsedTimeDateTimePega-RULESString{int}
getCurrentDateStampDateTimePega-RULESString{---}
getCurrentTimeOfDayOnlyStampDateTimePega-RULESString{---}
getCurrentTimeOfDayStampDateTimePega-RULESString{---}
getCurrentTimeStampDateTimePega-RULESString{---}
getCurrentTimeStampUniqueDateTimePega-RULESString{---}
GetDateDateTimePega-RULESDate{String}
getTimeStampAsDateStampDateTimePega-RULESString{String}
hourDateTimePega-RULESint{double}
hourDateTimePega-RULESint{BigDecimal}
isWithinDaysOfNowDateTimePega-RULESboolean{String, String}
millisecondDateTimePega-RULESint{BigDecimal}
minuteDateTimePega-RULESint{double}
minuteDateTimePega-RULESint{BigDecimal}
monthDateTimePega-RULESint{double}
monthDateTimePega-RULESint{BigDecimal}
parseDateStringDateTimePega-RULESlong{String}
parseDateTimeStampDateTimePega-RULESDate{String}
pxDateTimeisPastOrFutureDateTimePega-RULESboolean{String, boolean}
pxGetSpecifiedTimeOnDateDateTimePega-RULESString{String, int, int, int, String}
pxGetSystemNanoTimeDateTimePega-RULESString{---}
pxIsDefaultDateTimeDateTimePega-RULESboolean{BigDecimal}
secondDateTimePega-RULESint{double}
secondDateTimePega-RULESint{BigDecimal}
timeDateTimePega-RULESBigDecimal{int, int, int}
TimeDifferenceDateTimePega-RULESString{String, int, int, int, int}
timevalueDateTimePega-RULESBigDecimal{String}
todayDateTimePega-RULESBigDecimal{---}
toGMTDateTimePega-RULESdouble{double, String}
toGMTDateTimePega-RULESBigDecimal{BigDecimal, String}
toLOCALDateTimePega-RULESdouble{double, String}
toLOCALDateTimePega-RULESBigDecimal{BigDecimal, String}
weekdayDateTimePega-RULESint{double}
weekdayDateTimePega-RULESint{BigDecimal}
yearDateTimePega-RULESint{double}
yearDateTimePega-RULESint{BigDecimal}
addToNowDefaultPega-ProComString{String, String, String, String}
Base64DecodeDefaultPega-RULESString{String}
Base64EncodeDefaultPega-RULESString{String}
convertYNtoIntDefaultPega-RULESString{String}
CreateUniqueIDDefaultPega-RULESString{---}
DecodeDefaultPega-RULESString{String}
DoesFileExistDefaultPega-RULESboolean{String}
EncodeDefaultPega-RULESString{String}
GenerateIDDefaultPega-RULESString{String}
getCheckBoxBooleanDefaultPega-RULESString{String}
GetRuleSetVersionDefaultPega-RULESString{String}
isIntGreaterThanZeroDefaultPega-RULESboolean{String}
isInThePastDefaultPega-RULESboolean{String}
IsJavaReservedWordDefaultPega-RULESboolean{String}
isNumberDefaultPega-RULESboolean{String}
pxFetchClassTypeDefaultPega-RulesEngineboolean{String, String}
pxFormatBytesToStringDefaultPega-IntegrationEngineString{int}
pxGetClassTypeDefaultPega-RULESboolean{String, String}
pxLogMessageDefaultPega-RULESboolean{String}
pyEscapeIntoJavaScriptDefaultPega-IntegrationEngineString{String}
pyFormatCMISErrorMessagesDefaultPega-IntegrationEngineString{String}
pyFormatQueryStringPartDefaultPega-IntegrationEngineString{String}
pyFormatResourcePathPartDefaultPega-IntegrationEngineString{String}
quoteDefaultPega-RULESString{String}
quoteAndEscapeDefaultPega-RULESString{String}
removeParensDefaultPega-RULESString{String}
removeSpecialCharsDefaultPega-RULESString{String}
SendEmailTextDefaultPega-ProComString{String, String, String, String, String, String, String, String, String, String, String, String}
SendEmailTextDefaultPega-ProComString{String, String, String, String, String, String, String, String, String, String, String}
unquoteDefaultPega-RULESString{String}
ValidateIdentifierDefaultPega-RULESboolean{String}
ValidateIdentifierVBDefaultPega-RULESboolean{String}
ValidateJavaIdentifierDefaultPega-RULESboolean{String}
ValidateJavaIdentifierDefaultPega-RULESboolean{String, boolean}
ValidateUnicodeIdentifierDefaultPega-RULESboolean{String, boolean}
absExpressionEvaluatorsPega-RULESBigDecimal{BigDecimal}
averageExpressionEvaluatorsPega-RULESBigDecimal{BigDecimal, BigDecimal}
ceilExpressionEvaluatorsPega-RULESBigDecimal{BigDecimal}
CompareToBooleanExpressionEvaluatorsPega-RULESboolean{String, String}
compareTwoNumbersExpressionEvaluatorsPega-RULESboolean{double, String, double}
compareTwoStringsExpressionEvaluatorsPega-RULESboolean{String, String, String}
compareTwoValuesExpressionEvaluatorsPega-RULESboolean{double, String, double}
compareTwoValuesExpressionEvaluatorsPega-RULESboolean{String, String, String}
expExpressionEvaluatorsPega-RULESBigDecimal{BigDecimal}
floorExpressionEvaluatorsPega-RULESBigDecimal{BigDecimal}
maxExpressionEvaluatorsPega-RULESdouble{double, double}
maxExpressionEvaluatorsPega-RULESBigDecimal{BigDecimal, BigDecimal}
medianExpressionEvaluatorsPega-RULESBigDecimal{BigDecimal, BigDecimal}
minExpressionEvaluatorsPega-RULESdouble{double, double}
minExpressionEvaluatorsPega-RULESBigDecimal{BigDecimal, BigDecimal}
modeExpressionEvaluatorsPega-RULESBigDecimal{BigDecimal, BigDecimal}
roundExpressionEvaluatorsPega-RULESBigDecimal{BigDecimal}
sqrExpressionEvaluatorsPega-RULESBigDecimal{BigDecimal}
sqrtExpressionEvaluatorsPega-RULESBigDecimal{BigDecimal}
stdevExpressionEvaluatorsPega-RULESBigDecimal{BigDecimal, BigDecimal}
sumExpressionEvaluatorsPega-RULESBigDecimal{BigDecimal, BigDecimal}
cumipmtFinancialPega-DecisionEnginedouble{double, double, double, double, double}
cumprincFinancialPega-DecisionEnginedouble{double, double, double, double, double}
dbFinancialPega-DecisionEnginedouble{double, double, double, double, double}
ddbFinancialPega-DecisionEnginedouble{double, double, double, double, double}
fvFinancialPega-DecisionEnginedouble{double, double, double, double}
ipmtFinancialPega-DecisionEnginedouble{double, double, double, double, double}
nperFinancialPega-DecisionEnginedouble{double, double, double, double}
pmtFinancialPega-DecisionEnginedouble{double, double, double, double}
ppmtFinancialPega-DecisionEnginedouble{double, double, double, double, double}
pvFinancialPega-DecisionEnginedouble{double, double, double, double}
rateFinancialPega-DecisionEnginedouble{double, double, double, double}
slnFinancialPega-DecisionEnginedouble{double, double, double}
sydFinancialPega-DecisionEnginedouble{double, double, double, double}
vdbFinancialPega-DecisionEnginedouble{double, double, double, double, double, double, boolean}
BoundIntegerMathPega-RULESint{int, int, int}
divideMathPega-RULESBigDecimal{BigDecimal, BigDecimal}
equalsMathPega-RULESboolean{String, String}
ExpMathPega-RULESdouble{double}
greaterThanMathPega-RULESboolean{double, double}
greaterThanEqualToMathPega-RULESboolean{double, double}
lessThanMathPega-RULESboolean{double, double}
lessThanEqualToMathPega-RULESboolean{double, double}
LogMathPega-RULESdouble{String}
notEqualMathPega-RULESboolean{double, double}
SqrtMathPega-RULESdouble{String}
SquareMathPega-RULESdouble{String}
pyescapeSpecialCharsAndQuoteNLPUtilityPega-NLPString{String}
hashToProportionRandomPega-DecisionEnginedouble{String}
normalRandomPega-DecisionEnginedouble{---}
normalRandomPega-DecisionEnginedouble{double,double}
randomRandomPega-DecisionEnginedouble{---}
randomRandomPega-DecisionEnginedouble{double,double}
sampleAdaptiveProportionRandomPega-DecisionEnginedouble{double, double}
compareStringsSortPega-RULESint{String, String}
compareWorkIDsSortPega-RULESint{String, String}
defaultCompareBooleansSortPega-RULESint{String, String}
defaultCompareDecimalsSortPega-RULESint{String, String}
defaultCompareNumbersSortPega-RULESint{String, String}
defaultCompareStringsSortPega-RULESint{String, String}
powStrategyUtilsPega-DecisionEnginedouble{double, double}
pzIsInSimulationStrategyUtilsPega-DecisionEngineboolean{---}
containsStringPega-RULESboolean{String, String}
endsWithStringPega-RULESboolean{String, String}
equalsStringPega-RULESboolean{String, String}
equalsIgnoreCaseStringPega-RULESboolean{String, String}
escapeAsHTMLStringPega-RULESString{String}
escapeForXSLStringPega-RULESString{String}
escapeToIdentifierStringPega-RULESString{String}
indexOfStringPega-RULESint{String, String}
inStringStringPega-RULESint{String, String}
isDoubleStringPega-RULESboolean{String}
isIntegerStringPega-RULESboolean{String}
isLiteralStringPega-RULESboolean{String}
isVersionLessThanStringPega-RULESboolean{String, String}
lengthStringPega-RULESint{String}
notEqualsStringPega-RULESboolean{String, String}
notEqualsIgnoreCaseStringPega-RULESboolean{String, String}
parseRuleSetNameStringPega-RULESString{String}
parseRuleSetVersionStringPega-RULESString{String}
pxContainsSpecialCharactersStringPega-RulesEngineboolean{String}
pxContainsViaRegexStringPega-RulesEngineboolean{String, String, boolean}
pxIsBlankStringPega-RULESboolean{String}
pxIsInGRSFormatStringPega-RULESboolean{String}
pxIsInListOfValuesStringPega-RULESboolean{String, String}
pxIsNotInListOfValuesStringPega-RULESboolean{String, String}
pxRemoveJavaCommentsStringPega-RulesEngineString{String}
pxReplaceAllViaRegexStringPega-RulesEngineString{String, String, String}
pzContainsIgnoreCaseStringPega-RULESboolean{String, String}
pzEndsWithIgnoreCaseStringPega-RULESboolean{String, String}
pzStartsWithIgnoreCaseStringPega-RULESboolean{String, String}
replaceAllStringPega-RULESString{String, String, String}
startsWithStringPega-RULESboolean{String, String}
stripCharsOffEndStringPega-RULESString{String, String}
stripNonAlphabeticCharsStringPega-RULESString{String}
substringStringPega-RULESString{String, int, int}
substringStringPega-RULESString{String, int}
toDateStringPega-RULESBigDecimal{String}
toDecimalStringPega-RULESBigDecimal{String}
toIntStringPega-RULESint{String}
toJavaIdentifierStringPega-RULESString{String}
toJavaIdentifierNoReplacingStringPega-RULESString{String}
toLowerCaseStringPega-RULESString{String}
toUpperCaseStringPega-RULESString{String}
trimStringPega-RULESString{String}
TrimNumberStringPega-RULESString{String}
truncateLongTextStringPega-RULESString{String, int}
ConnectWithHyphenUtilitiesPega-AppDefinitionString{String, String}
crossScriptingFilterUtilitiesPega-RULESString{String}
decodeURLParameterUtilitiesPega-RULESString{String}
encodeURLUtilitiesPega-RULESString{String}
encodeURLParameterUtilitiesPega-RULESString{String}
escapeSpecialCharsAndQuoteUtilitiesPega-RULESString{String}
filterRichTextUtilitiesPega-RULESString{String}
getCachedDataSystemSettingUtilitiesPega-RULESString{String, String}
getClassLocationUtilitiesPega-RULESString{String}
GetEmbeddedPropertyPageClassUtilitiesPega-RULESString{String, String}
getExtensionTypeUtilitiesPega-AppDefinitionString{String}
getJavaPropertyFromFileUtilitiesPega-RULESString{String, String}
getJavaSystemPropertyUtilitiesPega-RULESString{String}
getJNDIEntryUtilitiesPega-RULESString{String}
getJSEncodedValueUtilitiesPega-RULESString{String}
getNextRuleSetVersionUtilitiesPega-AppDefinitionString{String, String}
getPMFDSSRuleSetNameUtilitiesPega-RULESString{---}
getWorkPrefixUtilitiesPega-AppDefinitionString{String}
lookupUtilitiesPega-RULESString{String, String, String, String, String}
lookupUtilitiesPega-RULESString{String, String, String, String, String, String}
pxConvertToDoubleQuoteUtilitiesPega-RULESString{String}
pxEncodeXMLUtilitiesPega-RULESString{String}
pxGetBuildInfoStringUtilitiesPega-RULESString{boolean, boolean}
pxGetNewGUIDUtilitiesPega-RulesEngineString{---}
pxGetNextRuleSetVersionUtilitiesPega-RulesEngineString{String, String}
pxGetParentPathUtilitiesPega-AppDefinitionString{String}
pxGetRandomNameUtilitiesPega-ProcessArchitectString{String, String}
samePasswordUtilitiesPega-RULESboolean{String, String}
  • Previous topic Optimizing strategies with allow list functions
  • Next topic Strategy canvas accelerators and keyboard shortcuts

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us