<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                 &gt;=                5                        “Segment 1”       <br>Var2                 matches      “someString”        “Segment 1”       <br>Var3                 &lt;                  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 &quot;example 1&quot;<br>    when<br>        <br>        Bean(var1 &gt;= 5 ,var2 matches &quot;someString&quot;,var3 &lt; 6)                       <br>    then             <br>        list.add(&quot;Segment 1&quot;);<br>
End<br><br>rule &quot;example 2&quot;<br>    when        <br>        Bean(var4 == 1 ,var5 == 5)                       <br>    then             <br>        list.add(&quot;Segment 2&quot;);<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">&lt;<a href="mailto:meny.kobel@gmail.com">meny.kobel@gmail.com</a>&gt;</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&#39;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>