Question

6
Replies
124
Views
sreenivasK1292 Member since 2020 1 post
Estes Express Lines
Posted: 4 months ago
Last activity: 4 months 1 week ago

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
Share this page LinkedIn