Well, I saw that, and I'd been thinking of that feature. But it might be
that Leif doesn't need to produce a series of similar rules from a template.
Given that Customers are distinguished by a set of parameters that represent
values that would normally be literals in rules, he might write his rules
according to:
rule "checkLimit"
when
Parameter( ?limit : limit,...)
...
CustTrans( value > ?limit, ... )
...
then
... refuse ...
end
A single Parameter fact inserted for either A or B would distinguish the
deployments of such rule sets.
-W
On Thu, Oct 22, 2009 at 9:25 PM, Bill Tarr <javatestcase(a)yahoo.com> wrote:
Have you looked into the drools-templates subproject?
There are database driven templates (thats what I ended out using), but I
suspect since you don't want to use a Excel or a CSV, that will be too
heavyweight for you.
I haven't used the ObjectDataCompiler yet, but it seems to be what you are
looking for:
drools-templates\src\main\java\org\drools\template\ObjectDataCompiler.java
The author Wolfgang Laun is also a frequent poster on this list.
----- Original Message ----
From: strug <strug(a)web.de>
To: rules-users(a)lists.jboss.org
Sent: Thu, October 22, 2009 8:46:46 AM
Subject: [rules-users] Templating without usages of Excel or CSV?
hi!
is there a way to use the templating feature just from within drools?
without the use of excel or csv or java?
i want to have a template-rule and put the placeholder values into two
different packages:
package customer A:
- my-rule-template.drl
- customer-a-data.drl
package customer B:
- my-rule-template.drl
- customer-b-data.drl
the packages are loaded separately, i.e. the rules fire just for one
customer at a time.
regards, leif
--
View this message in context:
http://www.nabble.com/Templating-without-usages-of-Excel-or-CSV--tp260124...
Sent from the drools - user mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users