System.out.println( Test no B );
session = kBase.newStatefulKnowledgeSession( config, null );
clock = session.getSessionClock();
session.insert( new Player( 1 ) );
clock.advanceTime( 3*60, TimeUnit.SECONDS );
session.fireAllRules();
session.dispose();
The rule fires
Hi,
If you are using 5.1 or greater, you can use a KnowledgeAgentEventListener
to be notified when resource's compilation fails. You can create your own
implementation of KnowledgeAgentEventListener, or you can
use DefaultKnowledgeAgentEventListener and override just the methods you
need:
Honestly, I didn't have time to take a look at it :(
Could you please provide me a simple test project where I can see this
issue?
Best,
Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com
2010/10/24 Tina
Sorry, I didn't want to sound like I expected you to solve it. I was
just curious if you had found something out, because the error remains
the same. But it's nothing fatal to me. ;-)
I'll see if I can make up a simple test project the next days.
Tina
Honestly, I didn't have time to take a
No problem :). The length of my TODO list is almost infinite.
Best,
Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com
2010/10/29 Tina Vießmann tviessm...@stud.hs-bremen.de
Sorry, I didn't want to sound
Hello,
I have the following situation with Drools 5.1.1: 2 drl files where one
contains an event declaration:
declare Event1
@role(event)
@expires(1s)
end
and other has a simple rule:
rule Evt1
when
e: Event1(value == 10)
then
JBRULES-2453, This issue has been closed stating that it got fixed in 5.1.0
CR1. But I got the same issue in 5.1.1, following is the stacktrace of
error:
Hibernate: select hibernate_sequence.nextval from dual
Hibernate: insert into SessionInfo (lastModificationDate, rulesByteArray,
startDate,
Hello,
I've been trying out the Spring integration package in Drools 5.1.1 and it
works really well, but I have run into one issue I can't figure out.
I've defined 2 knowledge sessions from the same knowledge base in the app
context - one stateless, one stateful but otherwise identical. They
Samuli,
Are you adding your event declaration file before the rules that
use them? As of today, you must always do that, but as long as you do,
it should work even if they are in separate files.
Regarding the update, it is not possible to do that today, but feel
free to open a JIRA. I
On 29 October 2010 16:08, Samuli Saarinen samuli.saari...@remion.comwrote:
Hello,
Further more if I declare the event in both of the files with different
@expires the one being used is the one that is added first. I was hoping
that the first declaration to be a default expires that could be
Edison,
Thanks for your prompt reply!
I'm trying to incorporate the workaround that you've suggested but I keep
getting an error with the use of the from clause. I based this off of the
documentation provided on drools.org for drools expert on how to use the
from clause.
So I declared a
Uday,
You don't need a new type:
Number( this daycompare[gt] 1 ) from profile.pageFreq[internet]
I used the Number interface above, but you can use the Integer
class directly if you want. Also, you can use the field names like
intValue instead of using this if you want.
Now, I have
Hi Edison,
Thanks for the tip, I realize how I can use Integer type now.
The following should hopefully be sufficient to reproduce the error that I
am experiencing. Please me know if you need further clarity. I'm continuing
to search through posts to and debug. I'll post back if I find the
Hi Uday,
Thanks for the report bellow. I was able to isolate this to an MVEL
regression that I submitted to Mike to fix:
http://github.com/etirelli/mvel/commit/55347b578f23184935c6d224323ff031805f1afe
This will be in MVEL 2.0.19, so as soon as Mike releases it you can
update your mvel
Thank you. :)
And how do I catch the exceptions occurring while processing and
executing the rules?
Hi,
If you are using 5.1 or greater, you can use
a KnowledgeAgentEventListener to be notified when resource's
compilation fails. You can create your own implementation
of
15 matches
Mail list logo