Chivotario,
From what I understand, the activation of rules happen as facts are
inserted into the working memory; hence it is important for the session to
be begun against a knowledge base that has the rule packages loaded before
the facts are inserted.
-Visu
Chivotario Martin
<chivotario@gmail
.com> To
Sent by: rules-users(a)lists.jboss.org
rules-users-bounc cc
es(a)lists.jboss.or
g Subject
[rules-users] "Exists" CE behaviour
13/07/2009 14:11
Please respond to
Rules Users List
<rules-users@list
s.jboss.org>
Hi ,
I'm trying to use the Exists keyword within my rules with the following
snippet :
// Create a session
KnowledgeBaseConfiguration config =
KnowledgeBaseFactory.newKnowledgeBaseConfiguration();
((RuleBaseConfiguration)config).setRuleBaseUpdateHandler( null ); *
KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(config);
StatefulKnowledgeSession session = kbase.newStatefulKnowledgeSession();
// Add some objects
for (int i=0; i<5; i++) {