Kingston,<br><br> Are you using OR between patterns or between field constraints? Can you please show an example with the syntax you are using?<br><br> []s<br> Edson<br><br><br><div><span class="gmail_quote">2007/5/17, kingston <
<a href="mailto:raja_kingston@yahoo.co.in">raja_kingston@yahoo.co.in</a>>:</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> <condition1> ||<br> <condition2> &&<br> <condition3> ||<br> <condition4><br><br>Then<br> <some action><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 "eval". This looks pretty long. The syntax provided
<br>in Drools documentaion " [when]- " works fine for "AND" conditions<br><br>How do i break my conditions in the dsl format on each new line with all my<br>logical conditions "AND" , "OR" 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>"OR" 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> Edson Tirelli<br> Software Engineer - JBoss Rules Core Developer<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646<br> JBoss, a division of Red Hat @
<a href="http://www.jboss.com">www.jboss.com</a>