Question

6
Replies
686
Views
Close popover
sreenivas Kalali (sreenivasK1292)
Estes Express Lines

Estes Express Lines
IN
sreenivasK1292 Member since 2020 1 post
Estes Express Lines
Posted: May 19, 2020
Last activity: May 19, 2020

How to pass DSS rule into function in pega

Hi All,

Could you please help me here , want to pass DSS values into below function.

want to get the values from DSS (A-Za-z @'()\"-./0-9#$%*_:;<>\\\\)

The below function is working as expected, but in future if they need some change in special charectars again it would be code change, instead of that need to get from DSS. 

java.util.regex.Pattern pattern=java.util.regex.Pattern.compile("[^A-Za-z @'()\"-./0-9#$%*_:;<>\\\\]"); java.util.regex.Matcher match=pattern.matcher(new String(theValue)); boolean status= match.find(); if(status) {   return false; } else {   return true; }

Regards,

Sreenivas

Pega Platform 7.3.1 Case Management Other Industry System Architect