<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Vitor,<br>
<br>
Please stop replying to posts with unrelated topics and just changing
the title, it messes up the threaded view in most people's email app.
See here for more details on netiquette:<br>
<a class="moz-txt-link-freetext" href="http://www.jboss.org/drools/lists.html">http://www.jboss.org/drools/lists.html</a><br>
<br>
Mark<br>
On 14/05/2010 15:51, Makewise - Vitor Rui Mendonça wrote:
<blockquote
cite="mid:10862739159810459EAF12F02BA3F58507B1EEF4@CSTMAIL.inet"
type="cite">
<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]-->
<div class="Section1">
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">Hi
Greg!<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US">Thanks for your quick answer.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US">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
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US">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
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US">Sorry about this mess, too much time around this problem </span><span
style="font-size: 11pt; font-family: Wingdings; color: rgb(31, 73, 125);"
lang="EN-US">J</span><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US">Thanks, once again!<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US"><o:p> </o:p></span></p>
<table class="MsoNormalTable" style="width: 100%;" width="100%"
border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td colspan="2"
style="padding: 0cm; background: rgb(180, 203, 61) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><img
id="_x0000_i1028" src="cid:part1.01070005.04010603@codehaus.org"
width="389" height="6"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td
style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color black; border-width: medium medium medium 1pt; padding: 7.5pt; background: rgb(235, 243, 204) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">
<p class="MsoNormal"><span
style="font-size: 7.5pt; font-family: "Verdana","sans-serif"; color: rgb(31, 73, 125);">Vítor
Mendonça Moreira<br>
</span><b><span
style="font-size: 7.5pt; font-family: "Verdana","sans-serif"; color: rgb(138, 154, 55);">Analista
/ Programador<br>
Direcção de Investigação e Desenvolvimento</span></b><span
style="font-size: 7.5pt; font-family: "Verdana","sans-serif"; color: rgb(31, 73, 125);"><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 moz-do-not-send="true" href="http://www.makewise.pt"><u><span
style="color: blue;">www.makewise.pt</span></u></a><br>
Uma empresa: <a moz-do-not-send="true" href="http://www.sousapedro.com"><u><span
style="color: blue;">Grupo Sousa Pedro</span></u></a> <o:p></o:p></span></p>
</td>
<td
style="padding: 7.5pt; background: rgb(235, 243, 204) none repeat scroll 0% 0%; width: 1%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;"
width="1%">
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><img
id="_x0000_i1027" src="cid:part2.03030909.03000202@codehaus.org"
width="119" border="0" height="60"><o:p></o:p></span></p>
</td>
</tr>
<tr style="height: 0.75pt;">
<td
style="padding: 0cm; background: rgb(180, 203, 61) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; height: 0.75pt;"><br>
</td>
<td
style="padding: 0cm; background: rgb(180, 203, 61) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; height: 0.75pt;"><br>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<div
style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">
<p class="MsoNormal"><b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif";"
lang="EN-US">From:</span></b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif";"
lang="EN-US"> <a class="moz-txt-link-abbreviated" href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a>
[<a class="moz-txt-link-freetext" href="mailto:rules-users-bounces@lists.jboss.org">mailto:rules-users-bounces@lists.jboss.org</a>] <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> </o:p></p>
<table class="MsoNormalTable" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<td style="padding: 0cm;" valign="top">
<p class="MsoNormal">JIRA issues are for reporting bugs in
drools. 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><a class="moz-txt-link-rfc2396E" href="mailto:Vitor.Mendonca@brisa.pt"><Vitor.Mendonca@brisa.pt></a></i></b>
wrote:<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><br>
From: Makewise - Vitor Rui Mendonça <a class="moz-txt-link-rfc2396E" href="mailto:Vitor.Mendonca@brisa.pt"><Vitor.Mendonca@brisa.pt></a><br>
Subject: [rules-users] Entry-Points can cause NullPointerException
and/or no rule firing<br>
To: "Rules Users List" <a class="moz-txt-link-rfc2396E" href="mailto:rules-users@lists.jboss.org"><rules-users@lists.jboss.org></a><br>
Date: Friday, May 14, 2010, 8:40 AM<o:p></o:p></p>
<div id="yiv1181897749">
<div>
<p class="MsoNormal" style=""><span
style="font-size: 11pt; font-family: "Arial","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US">Hi again.</span><o:p></o:p></p>
<p class="MsoNormal" style=""><span
style="font-size: 11pt; font-family: "Arial","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal" style=""><span
style="font-size: 11pt; font-family: "Arial","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US">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=""><span
style="font-size: 11pt; font-family: "Arial","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal" style=""><span
style="font-size: 11pt; font-family: "Arial","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US">I’ve submitted a Jira Issue (<a moz-do-not-send="true"
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=""><span
style="font-size: 11pt; font-family: "Arial","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US">“</span><o:p></o:p></p>
<p class="MsoNormal" style=""><span
style="font-size: 11pt; font-family: "Arial","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US">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 "EngineStart" 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 "default" entry-point: the correspondent junit
gives a NullPointerException in DefaultAgenda <br>
- the rules defined in "incoming" entry-point: the correspondent junit
doesn't activate the ***rearm*** rule</span><o:p></o:p></p>
<p class="MsoNormal" style=""><span
style="font-size: 11pt; font-family: "Arial","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US">“</span><o:p></o:p></p>
<p class="MsoNormal" style=""><span
style="font-size: 11pt; font-family: "Arial","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal" style=""><span
style="font-size: 11pt; font-family: "Arial","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US">The issue has an attachment with junits and rules to play
with.</span><o:p></o:p></p>
<p class="MsoNormal" style=""><span
style="font-size: 11pt; font-family: "Arial","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal" style=""><span
style="font-size: 11pt; font-family: "Arial","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US">T.I.A.</span><o:p></o:p></p>
<p class="MsoNormal" style=""><span
style="font-size: 11pt; font-family: "Arial","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US"> </span><o:p></o:p></p>
<div>
<table class="MsoNormalTable" style="width: 100%;" width="100%"
border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td colspan="2"
style="padding: 0cm; background: rgb(180, 203, 61) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">
<p class="MsoNormal" style=""><span
style="color: rgb(31, 73, 125);"><img id="Picture_x0020_1"
src="cid:part1.01070005.04010603@codehaus.org" width="389" border="0"
height="6"></span><o:p></o:p></p>
</td>
</tr>
<tr>
<td
style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color black; border-width: medium medium medium 1pt; padding: 7.5pt; background: rgb(235, 243, 204) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">
<p class="MsoNormal" style=""><span
style="font-size: 7.5pt; font-family: "Arial","sans-serif"; color: rgb(31, 73, 125);">Vítor
Mendonça Moreira<br>
</span><b><span
style="font-size: 7.5pt; font-family: "Arial","sans-serif"; color: rgb(138, 154, 55);">Analista
/ Programador<br>
Direcção de Investigação e Desenvolvimento</span></b><span
style="font-size: 7.5pt; font-family: "Arial","sans-serif"; color: rgb(31, 73, 125);"><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 moz-do-not-send="true" href="http://www.makewise.pt"
target="_blank"><u><span style="color: blue;">www.makewise.pt</span></u></a><br>
Uma empresa: <a moz-do-not-send="true" 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
style="padding: 7.5pt; background: rgb(235, 243, 204) none repeat scroll 0% 0%; width: 1%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;"
width="1%">
<p class="MsoNormal" style=""><span
style="color: rgb(31, 73, 125);"><img id="Picture_x0020_2"
src="cid:part2.03030909.03000202@codehaus.org" width="119" border="0"
height="60"></span><o:p></o:p></p>
</td>
</tr>
<tr style="height: 0.75pt;">
<td
style="padding: 0cm; background: rgb(180, 203, 61) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; height: 0.75pt;"><br>
</td>
<td
style="padding: 0cm; background: rgb(180, 203, 61) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; height: 0.75pt;"><br>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style=""><span
style="font-size: 11pt; font-family: "Arial","sans-serif"; color: rgb(31, 73, 125);"> </span><o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><br>
-----Inline Attachment Follows-----<o:p></o:p></p>
<div>
<p class="MsoNormal">_______________________________________________<br>
rules-users mailing list<br>
<a moz-do-not-send="true"
href="/mc/compose?to=rules-users@lists.jboss.org"><u><span
style="color: blue;">rules-users@lists.jboss.org</span></u></a><br>
<a moz-do-not-send="true"
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>
</tbody>
</table>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Calibri","sans-serif";"><o:p> </o:p></span></p>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</body>
</html>