<br> Mahesh,<br><br> I'm not a decision table specialist, but I see a couple choices I would try:<br><br>1. Simplest: since each line is a rule, just use 2 lines that will break down into 2 rules, each testing for a different value. Use cell merges for conditions that have the same value on multiple lines.<br>
<br>2. "in" operator: for cases like you showed, try using the "in" operator: field in ( $param ). So in the table cell, the user just use a list of values separated by coma, generating a pattern like:<br>
<br>applicant : Applicant( applicantType in ( "authenticated", "existing" ) )<br><br> Not sure if there are other, better ways to do it.<br><br> []s<br> Edson<br><br><br><br><div><span class="gmail_quote">2008/2/19, Mahesh Gadgil <<a href="mailto:maheshgadgil@hotmail.com">maheshgadgil@hotmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
Hi ALL, <br> <br>This is my first project on drools. I am using JBOSS rules 4.0.4 and wouldlike your help. <br>I want to create a spreadsheet that will compile into drl file. I can notfigure out how I could create an OR condition in the spreadsheet. The drlcode I am looking to get finally will look like this. The documentation on JBOSS site does not provide any examples of OR condition in a spreadsheet. <br>
<br>WHEN <br> applicant : Applicant(applicantType == "authenticated" ||applicantType == "existing")<br>............<br>THEN<br> applicant.setfundingType(internal")<br> <br>END. <br>
<br>Thanking you in advance<br>Mahesh<br><br><hr>Post free auto ads on Yello Classifieds now! <a href="http://ss1.richmedia.in/recurl.asp?pid=255" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Try it now!</a></div>
<br>_______________________________________________<br>rules-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development<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>