<div dir="ltr">Hi,<br>First - Thanks for your quick response.<br>Second - As I wrote rules conditions are saved in DB. <br><br>Conditions table example :<br><br> <br><b>TypeName Operation Value Return Value </b> <br>
Var1 >= 5 “Segment 1” <br>Var2 matches “someString” “Segment 1” <br>Var3 < 6 “Segment 1” <br>
Var4 == 1 “Segment 2” <br>Var5 == 5 “Segment 2” <br><br>The table above should trasform to the following DRL rule - <br>
<br><b>rule "example 1"<br> when<br> <br> Bean(var1 >= 5 ,var2 matches "someString",var3 < 6) <br> then <br> list.add("Segment 1");<br>
End<br><br>rule "example 2"<br> when <br> Bean(var4 == 1 ,var5 == 5) <br> then <br> list.add("Segment 2");<br>End<br></b><br>The conditions are dynamically build on Site by customer and I don’t know the number of conditions And the conditions values(the values of columns TypeName,Operation, Value and Return Value ).<br>
<br><div class="gmail_quote">On Tue, Mar 31, 2009 at 2:35 PM, Meny Kobel <span dir="ltr"><<a href="mailto:meny.kobel@gmail.com">meny.kobel@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">Hi,<br>Any updates regarding this subject?<br>I have the same problem and can't find a solution.<br>Like newbie I need to read varying rules from DB and transform them to drools language.<br><br>Thanks,<br>
Meny <br></div>
</blockquote></div><br></div>