Unable to match word using String matches method in decision table

Solution Verified - Updated -

Issue

  • When there a description contains a word for e.g. xyz. So provided the match conditions as "\abc\b". But is not working e.g. desc "ABC (xyz)" .
rule "Sample"
    salience 8
    dialect "mvel"
    when
        sampleAttr : SampleAttributes( test == "TKS" , accGroup matches ( "\bxyz\b" ) )
    then
        modify( sampleAttr ) {
                setTestKit( "YES" )
        }
end

Environment

  • Red Hat Process Automation Manager (RHPAM)
    • 7.0.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content