<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16809" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff background="">
<DIV><FONT face=Arial size=2>The problem you are facing is that the Drools
engine by default is a passive component, meaning that you should tell it when
to start executing. For example, you usually want to insert all your data
before executing the rules. The same is also valid for timers: they don't
just fire. But you can make the engine active by having it execute any
action automatically until someone halts the engine using fireUntilHalt().
Note that this uses the calling thread until halt so best to start this in a
separate thread, something like this:<BR><BR>new Thread(new Runnable()
{<BR> public void run() {<BR> session.fireUntilHalt();
<BR> }<BR>}).start();</FONT></DIV>
<DIV><FONT face=Arial size=2><BR>Kris<BR><BR>----- Original Message -----
<BR>From: Cristiano Gavião <BR>To: Rules Users List <BR>Sent: Monday, March 02,
2009 7:50 PM<BR>Subject: Re: [rules-users] Timer isn't firing<BR><BR><BR>It is
so strange...<BR><BR><BR>I could run this test with no errors, but I can't get
any of my process completed if diagram has a timer...<BR><BR><BR>Ok, I'll sent
to you my project.<BR><BR><BR>Thanks <BR><BR><BR>On 02/03/2009, at 11:19, Kris
Verlaenen wrote:<BR><BR><BR>Cristiano,<BR><BR>There are some examples on
processes using timers
here:<BR>http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/ProcessTimerTest.java<BR><BR>If
you need help, could you maybe send me the test project you are trying to
execute, so I can take a look?<BR><BR>Kris<BR><BR>----- Original Message
-----<BR>From: Cristiano Gavião<BR>To: Rules Users List<BR>Sent: Monday, March
02, 2009 2:34 AM<BR>Subject: [rules-users] Timer isn't firing<BR><BR><BR>Hi,
<BR><BR><BR>I've created a simple process flow with a start node followed by a
timer (with delay = 1 and period = 0), an workitem node, and an end
node.<BR><BR><BR>Its simple but isn't working properly. The problem is that
process isn't getting out from the timer node. Nothing happens...<BR><BR><BR>Its
something more needed to get timer working?<BR><BR><BR><BR><BR>This is the
output generated:<BR><BR><BR>BEFORE RULEFLOW STARTED
process:ProcessoX[id=ProcessoX]<BR>BEFORE RULEFLOW NODE TRIGGERED
node:Start[id=20] process:ProcessoX[id=ProcessoX]<BR>null
process:ProcessoX[id=ProcessoX]<BR>BEFORE RULEFLOW NODE TRIGGERED
node:Timer[id=19] process:ProcessoX[id=ProcessoX]<BR>AFTER RULEFLOW NODE
TRIGGERED node:Timer[id=19] process:ProcessoX[id=ProcessoX]<BR>null
process:ProcessoX[id=ProcessoX]<BR>AFTER RULEFLOW NODE TRIGGERED
node:Start[id=20] process:ProcessoX[id=ProcessoX]<BR>AFTER RULEFLOW STARTED
process:ProcessoX[id=ProcessoX]<BR><BR><BR><BR><BR>thanks in
advance<BR><BR><BR>_________________________<BR>Cristiano V.
Gavião<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>_______________________________________________<BR>rules-users
mailing
list<BR>rules-users@lists.jboss.org<BR>https://lists.jboss.org/mailman/listinfo/rules-users<BR><BR>_______________________________________________<BR>rules-users
mailing
list<BR>rules-users@lists.jboss.org<BR>https://lists.jboss.org/mailman/listinfo/rules-users<BR><BR><BR><BR>____________________________________<BR>Cristiano
Gavião<BR><BR><BR>"O único lugar onde o sucesso vem antes do trabalho é no
dicionário." Albert
Einstein<BR><BR><BR><BR><BR><BR>_______________________________________________<BR>rules-users
mailing
list<BR>rules-users@lists.jboss.org<BR>https://lists.jboss.org/mailman/listinfo/rules-users</FONT></DIV></BODY></HTML>