[rules-users] The use of 'matches' in Guvnor (and binded variables)

Michael Anstis michael.anstis at gmail.com
Tue Aug 28 10:54:21 EDT 2012


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.

On 28 August 2012 15:34, TonyN <tony.n.nguyen at boeing.com> wrote:

> 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120828/d4607dca/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2012-08-28 15:53:01.png
Type: image/png
Size: 8739 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20120828/d4607dca/attachment.png 


More information about the rules-users mailing list