Question
Jimmy Christian · Nov 17, 2021

Passing pattern in Ensemble function

Hello,

I am trying to pass a pattern in the Ensemble function Matches(val,pat) in Business Rule as below.

Eg. 

Matches(tSite,"1(.E1"SITE A",.E1"SITE B")")

tSite is a variable containing the site name

Want to check if the variable contains any of the site name.

But i receive a parsing error when compiling.

Is there another way to pass the pattern in the Matches function or any other similar function which i can use in the business rule or DTL without multiple sentences with Contains.

Thanks,

Jimmy Christian.

 

Product version: HealthShare 2019.1
0
0 140
Discussion (2)2
Log in or sign up to continue

Hope resolved by now but : One needs to double the quotes within the pattern since it needs to be a single string:

Matches(tAlias, "1(.E1""SITE A"",.E1""SITE B"")")

Matches(tAlias, "1(.E1""SITE A"",.E1""SITE B"")")

James

Perfect James !

I tried this out and is working great.

Thank you for all your help.