<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:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" 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:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="&#1;" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
p.msochpdefault, li.msochpdefault, div.msochpdefault
        {mso-style-name:msochpdefault;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.balloontextchar0
        {mso-style-name:balloontextchar;}
span.emailstyle20
        {mso-style-name:emailstyle20;}
span.emailstyle21
        {mso-style-name:emailstyle21;}
span.emailstyle22
        {mso-style-name:emailstyle22;}
span.balloontextchar1
        {mso-style-name:balloontextchar1;
        font-family:"Arial","sans-serif";}
span.emailstyle201
        {mso-style-name:emailstyle201;
        font-family:"Arial","sans-serif";
        color:#1F497D;}
span.emailstyle211
        {mso-style-name:emailstyle211;
        font-family:"Arial","sans-serif";
        color:#1F497D;}
span.emailstyle221
        {mso-style-name:emailstyle221;
        font-family:"Arial","sans-serif";
        color:#1F497D;}
p.msochpdefault1, li.msochpdefault1, div.msochpdefault1
        {mso-style-name:msochpdefault1;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:10.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle30
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=PT link="#000000" vlink="#000000">

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi Greg!<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks for your quick answer.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I’m having some trouble with absence of events in Drools (I’ve send
some emails on the mailing list regarding that) and I personally think it’s
some kind of bug (mine or, probably, drools).<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>So, I’m looking for some help. Instead of explaining all over
again, I just point the issue out.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Sorry about this mess, too much time around this problem </span><span
lang=EN-US style='font-size:11.0pt;font-family:Wingdings;color:#1F497D'>J</span><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks, once again!<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width="100%"
 style='width:100.0%'>
 <tr>
  <td colspan=2 style='background:#B4CB3D;padding:0cm 0cm 0cm 0cm'>
  <p class=MsoNormal><span style='color:#1F497D'><img width=389 height=6
  id="_x0000_i1028" src="cid:image001.jpg@01CAF37D.34EE6260"><o:p></o:p></span></p>
  </td>
 </tr>
 <tr>
  <td style='border:none;border-left:solid black 1.0pt;background:#EBF3CC;
  padding:7.5pt 7.5pt 7.5pt 7.5pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";
  color:#1F497D'>Vítor Mendonça Moreira<br>
  </span><b><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";
  color:#8A9A37'>Analista / Programador<br>
  Direcção de Investigação e Desenvolvimento</span></b><span style='font-size:
  7.5pt;font-family:"Verdana","sans-serif";color:#1F497D'><br>
  <br>
  Rua Dr. Francisco Sá Carneiro, nº. 4 r/c esq.<br>
  2500 - 206 - Caldas da Rainha<br>
  Tel: (+351) 262 832 196<br>
  Fax: (+351) 262 186 455<br>
  Web: <a href="http://www.makewise.pt"><u><span style='color:blue'>www.makewise.pt</span></u></a><br>
  Uma empresa: <a href="http://www.sousapedro.com"><u><span style='color:blue'>Grupo
  Sousa Pedro</span></u></a> <o:p></o:p></span></p>
  </td>
  <td width="1%" style='width:1.0%;background:#EBF3CC;padding:7.5pt 7.5pt 7.5pt 7.5pt'>
  <p class=MsoNormal><span style='color:#1F497D'><img border=0 width=119
  height=60 id="_x0000_i1027" src="cid:image002.jpg@01CAF37D.34EE6260"><o:p></o:p></span></p>
  </td>
 </tr>
 <tr style='height:.75pt'>
  <td style='background:#B4CB3D;padding:0cm 0cm 0cm 0cm;height:.75pt'></td>
  <td style='background:#B4CB3D;padding:0cm 0cm 0cm 0cm;height:.75pt'></td>
 </tr>
</table>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] <b>On Behalf Of </b>Greg Barton<br>
<b>Sent:</b> sexta-feira, 14 de Maio de 2010 15:31<br>
<b>To:</b> Rules Users List<br>
<b>Subject:</b> Re: [rules-users] Entry-Points can cause
NullPointerExceptionand/or no rule firing<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0>
 <tr>
  <td valign=top style='padding:0cm 0cm 0cm 0cm'>
  <p class=MsoNormal>JIRA issues are for reporting bugs in drools.&nbsp; Is
  there a bug you're reporting or do you want help with this particular
  problem?<br>
  <br>
  --- On <b>Fri, 5/14/10, Makewise - Vitor Rui Mendonça <i>&lt;Vitor.Mendonca@brisa.pt&gt;</i></b>
  wrote:<o:p></o:p></p>
  <p class=MsoNormal style='margin-bottom:12.0pt'><br>
  From: Makewise - Vitor Rui Mendonça &lt;Vitor.Mendonca@brisa.pt&gt;<br>
  Subject: [rules-users] Entry-Points can cause NullPointerException and/or no
  rule firing<br>
  To: &quot;Rules Users List&quot; &lt;rules-users@lists.jboss.org&gt;<br>
  Date: Friday, May 14, 2010, 8:40 AM<o:p></o:p></p>
  <div id=yiv1181897749>
  <div>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
  color:#1F497D'>Hi again.</span><o:p></o:p></p>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
  color:#1F497D'>&nbsp;</span><o:p></o:p></p>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
  color:#1F497D'>First of all, I’m running Drools 5.1.0.SNAPSHOT on Windows and
  Eclipse 3.4.</span><o:p></o:p></p>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
  color:#1F497D'>&nbsp;</span><o:p></o:p></p>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
  color:#1F497D'>I’ve submitted a Jira Issue (<a
  href="https://jira.jboss.org/jira/browse/JBRULES-2511" target="_blank"><u><span
  style='color:blue'>https://jira.jboss.org/jira/browse/JBRULES-2511</span></u></a>):</span><o:p></o:p></p>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
  color:#1F497D'>“</span><o:p></o:p></p>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
  color:#1F497D'>I've got a system that receives transactions. I want to
  implement the following rules: <br>
  - raise an alarm(alarm event) when there aren't any transaction for an hour
  (or more); <br>
  - if there's an alarm, no more alarms should be raised; <br>
  - if there's an alarm and the system receives a transaction, that alarm
  should be retracted and the system should send an recovery event. <br>
  <br>
  I've implemented the rules this way: <br>
  - ***start*** rule to insert an &quot;EngineStart&quot; event when the rules
  engine starts <br>
  - ***notrx_after_start*** rule to detect absence of transactions during the
  first hour <br>
  - ***notrx_after_trx*** rule to detect absence of transactions (during one
  hour) after last transaction <br>
  - ***rearm*** rule to detect transactions and rearm the system. <br>
  <br>
  I made a Maven project with junits, which inserts transactions at specific
  time, in order to raise the desired events. <br>
  <br>
  Two set of tests were made: <br>
  - the rules defined in &quot;default&quot; entry-point: the correspondent
  junit gives a NullPointerException in DefaultAgenda <br>
  - the rules defined in &quot;incoming&quot; entry-point: the correspondent
  junit doesn't activate the ***rearm*** rule</span><o:p></o:p></p>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
  color:#1F497D'>“</span><o:p></o:p></p>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
  color:#1F497D'>&nbsp;</span><o:p></o:p></p>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
  color:#1F497D'>The issue has an attachment with junits and rules to play
  with.</span><o:p></o:p></p>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
  color:#1F497D'>&nbsp;</span><o:p></o:p></p>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
  color:#1F497D'>T.I.A.</span><o:p></o:p></p>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
  color:#1F497D'>&nbsp;</span><o:p></o:p></p>
  <div>
  <table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width="100%"
   style='width:100.0%'>
   <tr>
    <td colspan=2 style='background:#B4CB3D;padding:0cm 0cm 0cm 0cm;background-attachment:
    scroll;background-position-x:0%;background-position-y:0%'>
    <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
    auto'><span style='color:#1F497D'><img border=0 width=389 height=6
    id="Picture_x0020_1" src="cid:image001.jpg@01CAF37D.34EE6260"></span><o:p></o:p></p>
    </td>
   </tr>
   <tr>
    <td style='border:none;border-left:solid windowtext 1.0pt;background:#EBF3CC;
    padding:7.5pt 7.5pt 7.5pt 7.5pt;border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color black;
    background-attachment:scroll;background-position-x:0%;background-position-y:
    0%'>
    <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
    auto'><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
    color:#1F497D'>Vítor Mendonça Moreira<br>
    </span><b><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
    color:#8A9A37'>Analista / Programador<br>
    Direcção de Investigação e Desenvolvimento</span></b><span
    style='font-size:7.5pt;font-family:"Arial","sans-serif";color:#1F497D'><br>
    <br>
    Rua Dr. Francisco Sá Carneiro, nº. 4 r/c esq.<br>
    2500 - 206 - Caldas da Rainha<br>
    Tel: (+351) 262 832 196<br>
    Fax: (+351) 262 186 455<br>
    Web: <a href="http://www.makewise.pt" target="_blank"><u><span
    style='color:blue'>www.makewise.pt</span></u></a><br>
    Uma empresa: <a href="http://www.sousapedro.com" target="_blank"><u><span
    style='color:blue'>Grupo Sousa Pedro</span></u></a> </span><o:p></o:p></p>
    </td>
    <td width="1%" style='width:1.0%;background:#EBF3CC;padding:7.5pt 7.5pt 7.5pt 7.5pt;
    background-attachment:scroll;background-position-x:0%;background-position-y:
    0%'>
    <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
    auto'><span style='color:#1F497D'><img border=0 width=119 height=60
    id="Picture_x0020_2" src="cid:image002.jpg@01CAF37D.34EE6260"></span><o:p></o:p></p>
    </td>
   </tr>
   <tr style='height:.75pt'>
    <td style='background:#B4CB3D;padding:0cm 0cm 0cm 0cm;height:.75pt;
    background-attachment:scroll;background-position-x:0%;background-position-y:
    0%'></td>
    <td style='background:#B4CB3D;padding:0cm 0cm 0cm 0cm;height:.75pt;
    background-attachment:scroll;background-position-x:0%;background-position-y:
    0%'></td>
   </tr>
  </table>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  style='font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D'>&nbsp;</span><o:p></o:p></p>
  </div>
  </div>
  </div>
  <p class=MsoNormal style='margin-bottom:12.0pt'><br>
  -----Inline Attachment Follows-----<o:p></o:p></p>
  <div>
  <p class=MsoNormal>_______________________________________________<br>
  rules-users mailing list<br>
  <a href="/mc/compose?to=rules-users@lists.jboss.org"><u><span
  style='color:blue'>rules-users@lists.jboss.org</span></u></a><br>
  <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank"><u><span
  style='color:blue'>https://lists.jboss.org/mailman/listinfo/rules-users</span></u></a><o:p></o:p></p>
  </div>
  </td>
 </tr>
</table>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Calibri","sans-serif"'><o:p>&nbsp;</o:p></span></p>

</div>

</body>

</html>