Question
Achmea Interne Diensten NV
NL
Last activity: 1 Apr 2020 14:00 EDT
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.