]
Rahul Vanimisetty updated DROOLS-2438:
--------------------------------------
Issue Type: Bug (was: Enhancement)
Drools template : Multiple rows from database map to multiple
conditions within the when block of a a single rule
-------------------------------------------------------------------------------------------------------------------
Key: DROOLS-2438
URL:
https://issues.jboss.org/browse/DROOLS-2438
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 7.6.0.Final
Reporter: Rahul Vanimisetty
Assignee: Mario Fusco
Priority: Blocker
Labels: task
In a drool template, if i am loading rules from a database, then as per my understanding
each row in the database table represents a rule. So a drool template will generate a drl
file in the following way :
rule 1
when
condition(first row of db)
action
rule 2
condition(2cd row of db)
then
action
etc.
My requirement is to have a dynamic drl generated in the following way :
rule 1
when
condition 1(1st row of db)
condition 2 (2cd row of db)
condition 3 (3rd row of db)
etc
then
action
end
Please suggest a way to do this.