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$…
[View More]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
[View Less]
12 years, 11 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 );
…
[View More] 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
[View Less]
12 years, 11 months