My advice is to try just having a single column:
strValue matches “$param.*”
you could also compare the performance of that to
eval(strValue.startsWith(“$param”))
Also presumably you are only wanting the first matching rule in your table to fire, looking at the table below drools will fire all of the matching rules,
this will mean than any phone number with prefix 5511 will be charged at 0.4 as that will be the last rule to fire.
Thomas
From: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org]
On Behalf Of Greg Barton
Sent: 14 May 2010 20:59
To: Rules Users List
Subject: Re: [rules-users] Jbilling Drools performance
No problem. I'm not sure how you'd do this in a decision table (it's probably pretty trivial) but in DRL you'd do:
Dear Greg, 2010/5/14 Greg Barton <greg_barton@yahoo.com>
_______________________________________________ |