&nbsp;&nbsp; Kingston,<br><br>&nbsp;&nbsp; Are you using OR between patterns or between field constraints? Can you please show an example with the syntax you are using?<br><br>&nbsp;&nbsp; []s<br>&nbsp;&nbsp; Edson<br><br><br><div><span class="gmail_quote">2007/5/17, kingston &lt;
<a href="mailto:raja_kingston@yahoo.co.in">raja_kingston@yahoo.co.in</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Hi<br>
i have written many rules in DRL . These rules look like<br><br>when<br><br> &lt;condition1&gt; ||<br> &lt;condition2&gt; &amp;&amp;<br> &lt;condition3&gt; ||<br> &lt;condition4&gt;<br><br>Then<br> &lt;some action&gt;<br>
<br>end;<br><br>I am trying to rewrite these rules in DSL format .<br>I tried something like this :<br><br>I added the english text before the statement for condition1 and used<br>variables for passing input values. and in the rule file ( .drl file ) i had
<br>the english text along with the input value in the place for the variable.<br><br>Finally i could make the dsl syntax work onlly when i had all the conditions<br>on a single line using &quot;eval&quot;.&nbsp;&nbsp;This looks pretty long. The syntax provided
<br>in Drools documentaion&nbsp;&nbsp;&quot; [when]- &quot; works fine for &quot;AND&quot; conditions<br><br>How do i break my conditions in the dsl format on each new line with all my<br>logical conditions &quot;AND&quot; , &quot;OR&quot; intact ? Do we have any other options for
<br>breaking into new line ? Is there any work around for that ? How do I handle<br>&quot;OR&quot; conditions?<br><br>Thanks.<br><br><br><br><br><br><br><br>--<br>View this message in context: <a href="http://www.nabble.com/probleam-in-breaking-conditions-into-multiple-lines-in-DSL-tf3771959.html#a10664273">
http://www.nabble.com/probleam-in-breaking-conditions-into-multiple-lines-in-DSL-tf3771959.html#a10664273</a><br>Sent from the drools - user mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br><br>_______________________________________________
<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users
</a><br></blockquote></div><br><br clear="all"><br>-- <br>&nbsp;&nbsp;Edson Tirelli<br>&nbsp;&nbsp;Software Engineer - JBoss Rules Core Developer<br>&nbsp;&nbsp;Office: +55 11 3529-6000<br>&nbsp;&nbsp;Mobile: +55 11 9287-5646<br>&nbsp;&nbsp;JBoss, a division of Red Hat @ 
<a href="http://www.jboss.com">www.jboss.com</a>