Hi,<br>all what is said by Thomas is right. Read it carefully, because it can helps You. If You want us to help us write a spreadsheet, please try also code rules in DRL.<br><br>regards,<br>tom<br><br><div class="gmail_quote">
2010/8/20 Kripa Nathwani <span dir="ltr">&lt;<a href="mailto:Kripa.Nathwani@lntinfotech.com">Kripa.Nathwani@lntinfotech.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">






<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Hi,</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">The foll is the java file which I tried to run as a stand alone application:</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">package</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;"> com.sample;</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> </span></p>
<p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">public</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">class</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;"> AmountPojo {</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">    
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">public</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">static</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">int</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
</span><i><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(0, 0, 192);">basic</span></i><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">;</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">    
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">public</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">static</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">double</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
</span><i><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(0, 0, 192);">pf</span></i><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">;</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">    
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">public</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">static</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">double</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
</span><i><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(0, 0, 192);">hra</span></i><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">;</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">   
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">public</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">static</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">int</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;"> getBasic() {</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">       
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">return</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
</span><i><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(0, 0, 192);">basic</span></i><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">;</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">    }</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">   
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">public</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">static</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">void</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;"> setBasic(</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">int</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
 basic) {</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">        AmountPojo.</span><i><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(0, 0, 192);">basic</span></i><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
 = basic;</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">    }</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">   
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">public</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">static</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">double</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;"> getPf() {</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">       
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">return</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
</span><i><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(0, 0, 192);">pf</span></i><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">;</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">    }</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">   
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">public</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">static</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">void</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;"> setPf(</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">double</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
 pf) {</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">        AmountPojo.</span><i><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(0, 0, 192);">pf</span></i><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
 = pf;</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">    }</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">   
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">public</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">static</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">double</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;"> getHra() {</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">       
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">return</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
</span><i><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(0, 0, 192);">hra</span></i><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">;</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">    }</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">   
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">public</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">static</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">void</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;"> setHra(</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);">double</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
 hra) {</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">        AmountPojo.</span><i><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(0, 0, 192);">hra</span></i><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">
 = hra;</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">    }</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">}</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">Let me know if you still require any further information.</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">Regards,</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">Kripa</span><span style="font-size: 11pt; color: rgb(31, 73, 125);"></span></p>
<div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> <a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a> [mailto:<a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a>]
<b>On Behalf Of </b>tom ska<br>
<b>Sent:</b> Friday, August 20, 2010 12:42 PM<div class="im"><br>
<b>To:</b> Rules Users List<br>
<b>Subject:</b> Re: [rules-users] error while inserting values in excel</div></span></p>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal" style="margin-bottom: 12pt;">Ok, please write me AmountPojo class code, and - if You can - those rules in DRL, I will try to write You rules in DT.<br>
<br>
regards,<br>
tom</p><div><div></div><div class="h5">
<div>
<p class="MsoNormal">2010/8/20 Kripa Nathwani &lt;<a href="mailto:Kripa.Nathwani@lntinfotech.com" target="_blank">Kripa.Nathwani@lntinfotech.com</a>&gt;</p>
<div>
<div>
<p class="MsoNormal">Hi,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Below is the decision table on which I am working. It is calculating PF and HRA by taking basic value and checking that basic is not equal to null.</p>
<p class="MsoNormal">The problem is when I start inserting values in the column it is giving me following error messages:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> no viable alternative at input &#39;)&#39; in rule &quot;Pricing bracket_12&quot; in pattern AmountPojo</p>
<p class="MsoNormal"> mismatched input &#39;!=&#39; expecting &#39;)&#39; in rule &quot;Pricing bracket_12&quot; in pattern AmountPojo</p>
<p class="MsoNormal">Unknown error while parsing. This is a bug. Please contact the Development team</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I know it is related to syntax but I am not able to solve  it.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><img src="cid:image001.png@01CB4066.391D8970" border="0" width="1037" height="1048"></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span style="font-size: 14pt; font-family: &quot;Brush Script MT&quot;; color: black;">Best Regards,</span></p>
<p class="MsoNormal"><span style="font-size: 14pt; font-family: &quot;Brush Script MT&quot;; color: black;">Kripa</span></p>
<p class="MsoNormal"><span style="font-size: 14pt; font-family: &quot;Brush Script MT&quot;; color: black;">     
</span></p>
<p class="MsoNormal"> </p>
</div>
<p class="MsoNormal"> </p>
<div class="MsoNormal" style="text-align: center;" align="center">
<hr align="center" width="100%" size="2">
</div>
<p class="MsoNormal"><span style="color: black;">This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information,
 notify the sender and delete it from your system.<br>
</span><br>
______________________________________________________________________</p>
</div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a></p>
</div>
</div></div><p class="MsoNormal"><br>
<br>
______________________________________________________________________</p>
</div><div class="im">
<br>
<hr>
<font color="Black" face="Arial" size="3">This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from
 your system.<br>
</font>
<br>
______________________________________________________________________<br>
</div></div>

<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" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>