Question

1
Replies
76
Views
RodolfinoE Member since 2019 2 posts
Achmea Interne Diensten NV
Posted: April 1, 2020
Last activity: April 1, 2020

Wildcard possible in @String.contains ?

We are currently using a decision table in PEGA 7.3 to decide whether certain messages should be tagged as errors or warnings.

From a different post on this forum i found that we could use this line:

@contains(Param.Message, "<current-value>")

in the property line of a decision table to allow partial matches.

If Param.Message is 'This should be a warning', having a decision table entry with 'warning' will be enough to result in a match.

My question is whether there is a way to use wildcards in this statement.

What i would want is for this message '20200401 - This should be a warning' to be matched by something like '* - This should be a warning'.

Is something like that possible?

Reason is we have a lot of messages with dynamic digits throughout the messages, being able to wildcard those dynamic segments would be of great help!

Thanks in advance!

Greetings,

R.

Pega Platform 7.3.1 Low-Code App Development Dev/Designer Studio Insurance System Architect
Share this page LinkedIn