<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:D="DAV:" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:st="&#1;" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-GB link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi all,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I&#8217;m just starting to use drools, I am using it to
house the rules regarding settlement of sports markets and such my rule
packages should be relatively simple and straight forward (ie when match winner
= x then settle x as winner)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>However my first attempt to create a drl is failing with the
following error<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=red face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:red;background:white'>org.drools.rule.InvalidRulePackage:
[0,-1]: unknown:0:-1 mismatched token: [@-1,0:0='&lt;no
text&gt;',&lt;-1&gt;,0:-1]; expecting type END</span></font><font size=2
color=red face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:red'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=red face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:red'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>and I cant find much documentation online to help
solve it.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>The complete drl file is:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<pre><span class=kwd><font size=2 face="Courier New"><span style='font-size:
10.0pt'>package</span></font></span><span class=pln> xxx</span><span class=pun>..</span><span
class=pln>rules</span><span class=pun>.</span><span class=pln>tennis</span><br>
<span class=pln>&nbsp;</span><br>
<span class=kwd>import</span><span class=pln> xxx</span><span class=pun>.</span><span
class=kwd>object</span><span class=pun>.</span><span class=typ>Fact</span><br>
<span class=kwd>import</span><span class=pln> java</span><span class=pun>.</span><span
class=pln>util</span><span class=pun>.</span><span class=typ>HashMap</span><br>
<span class=kwd>import</span><span class=pln> </span><span class=kwd>function</span><span
class=pln> xxx</span><span class=pun>.</span><span class=pln>Settle_Selection</span><span
class=pun>.</span><span class=pln>settle_selection</span><br>
<span class=pln>&nbsp;</span><br>
<span class=pln>&nbsp;</span><br>
<span class=pln>rule </span><span class=str>&quot;Player 1 wins match&quot;</span><br>
<span class=pln>&nbsp; &nbsp; &nbsp; &nbsp; salience </span><span class=lit>100</span><br>
<span class=pln>&nbsp; &nbsp; &nbsp; &nbsp; agenda</span><span class=pun>-</span><span
class=kwd>group</span><span class=pln> </span><span class=str>&quot;tennis&quot;</span><br>
<span class=pln>&nbsp; &nbsp; &nbsp; &nbsp; </span><span class=kwd>when</span><br>
<span class=pln>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $f </span><span
class=pun>:</span><span class=pln> </span><span class=typ>Fact</span><span
class=pun>()</span><br>
<span class=pln>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span
class=com> eval(($f.details[&quot;END_MATCH&quot;].toUpper().toString().equal(&quot;TRUE&quot;)))</span><br>
<span class=pln>&nbsp; &nbsp; &nbsp; &nbsp; </span><span class=kwd>then</span><br>
<span class=pln>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; settle_selection</span><span
class=pun>(</span><span class=str>&quot;test&quot;</span><span class=pun>,</span><span
class=lit>20001</span><span class=str>&quot;,&quot;</span><span class=pln>W</span><span
class=str>&quot;);</span><br>
<span class=str>END<o:p></o:p></span></pre><pre><span class=str><font size=2
face="Courier New"><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></span></pre><pre><span
class=str><font size=2 face="Courier New"><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></span></pre><pre><span
class=str><font size=2 face="Courier New"><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></span></pre><pre><span
class=str><font size=2 face="Courier New"><span style='font-size:10.0pt'>Thanks in advance,<o:p></o:p></span></font></span></pre><pre><span
class=str><font size=2 face="Courier New"><span style='font-size:10.0pt'>Alex</span></font></span><o:p></o:p></pre>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

</div>


<BR>
________________________________________________________________________<BR>
Privileged, confidential and/or copyright information may be contained in this communication. This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended addressee, you may not copy, forward, disclose or otherwise use this e-mail or any part of it in any way whatsoever. To do so is prohibited and may be unlawful. If you have received this email in error <BR>
please notify the sender immediately.<BR>
<BR>
Paddy Power PLC may monitor the content of e-mail sent and received for the purpose of ensuring compliance with its policies and procedures.<BR>
<BR>
Paddy Power plc, Airton House, Airton Road, Tallaght, Dublin 24  Registered in Ireland: 16956<BR>
________________________________________________________________________<BR>
</body>

</html>