Problem with RuleFlow sample project
by Richard Moore
Hi,
I am starting to learn Drools and have hit a problem when using the RuleFlow. Whenever I try to run the sample project using Eclipse I get the following error:
Caused by: java.lang.ClassNotFoundException: org.jbpm.bpmn2.BPMN2ProcessProviderImpl
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.drools.util.ServiceRegistryImpl$ReflectionInstantiator.newInstance(ServiceRegistryImpl.java:207)
... 9 more
Any help would be much appreciated.
Regards,
Rich
12 years, 6 months
Existing StateFulKnowledgeSession not taking the changes in the Guvnor
by sumatheja
Hi All,
I have a problem refreshing the sateful knowledge session whenever
there is a change in the rules assets int he guvnor. Below is my code used
for configuration
StatefulKnowledgeSession ksession = null;
KnowledgeAgentConfiguration kconf =
KnowledgeAgentFactory.newKnowledgeAgentConfiguration();
KnowledgeBaseConfiguration config =
KnowledgeBaseFactory.newKnowledgeBaseConfiguration();
config.setOption( EventProcessingOption.STREAM );
KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(
config );
kconf.setProperty("drools.agent.newInstance" , "false");
KnowledgeAgent kagent =
KnowledgeAgentFactory.newKnowledgeAgent("MyAgent1",kbase, kconf);
kagent.applyChangeSet(ResourceFactory.newUrlResource("
http://127.0.0.1:8380/drools-guvnor/LDIChangeSet.xml"));
kbase = kagent.getKnowledgeBase();
ksession = kbase.newStatefulKnowledgeSession();
I've a session where I've inserted thousands of facts. Whenever there is
change in the rule base Do I need to reinsert all the facts using the new
knowledgeBase? Any help would be appreciated. Thanks in advance.
--
cheers
Sumatheja Dasararaju
12 years, 6 months
Rule to load facts with pagination
by mariofox
Hi.
I'm running drools in a project with millions of facts to process. My memory
doesn't allow me to load all of my facts, so I have to load N objects at
once, then start over with next N objects, and so on.
Is it a good idea to let Drools to manage Pagination? I mean, create rules
in Drools with the purpose of loading facts?, or should I have to do this by
executing a Drools session from java in a loop?. My main goal is
performance.
Thanks!
--
View this message in context: http://drools.46999.n3.nabble.com/Rule-to-load-facts-with-pagination-tp39...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 6 months
Prevent DSL From replacing certain parts of text
by gboro54
I am utilizing a dsl with a dslr. In my DSL I have a condition work Customer
which maps to a string value. Is there way to prevent the dsl from replacing
this work in certain cases? For example
rule"T1"
when
Object(value=="Customer Help")
then
...
end
When I run the DSL obviously Customer will be replaced. Any thoughts on a
way to prevent this?(I know I could change on of the values from lower to
upper case and it would work but I am hoping for another way)
--
View this message in context: http://drools.46999.n3.nabble.com/Prevent-DSL-From-replacing-certain-part...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 6 months