Yes, you should be able to select bound the field you want to use as the matches expression and pick the bound variable when using the "matches" operator.
I checked with 5.4 and constructed the following (see attached screen shot too):-
Applicant( $n : name )
Applicant( name matches $n )
Obviously you won't use Applicant etc.
Hi,
I would like to know if it is possible to use binded variable in BRL (using
matches). For example,
I'd like to enter this in 'matches',
.*_$itemID
(where $itemID is a binded variable set in another fact).
thx,
--
View this message in context: http://drools.46999.n3.nabble.com/The-use-of-matches-in-Guvnor-and-binded-variables-tp4019417.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users