Advice abour best way to inetgrate fact from a database to drools 6
by Mercier Jonathan
Dear,
I have a general question to have a "drools starter" on my project
I come here to query your drools experience :-)
I have a mysql data base which are my fact.
I see some old drools post using spring intergration and some more
recent post about camel .
I do not understand, which way i should to take, to me :
- camel is a server ( i do not know never used it )
- spring integration is used to connect multiple ressource
I though to use :
- spring as light container
- hibernate 4 to query db
- spring roo to do some reverse-engeneering on my db
- drools a rule engine
I would like the uptodate approach to perform this. The only "Must be"
is "open-source project"
thanks for your advice
10 years, 9 months
System.out in org.kie.spring.KModuleBeanFactoryPostProcessor Line 103
by kmansoor
I wonder if logger.info should be used instead?
public void postProcessBeanFactory(ConfigurableListableBeanFactory
beanFactory) throws BeansException {
log.info(":: BeanFactoryPostProcessor::postProcessBeanFactory called
::");
if ( releaseId == null && configFilePath != null) {
fixConfigFilePathForVfs();
String pomProperties = null;
if ( configFilePath.endsWith("WEB-INF/classes/")){
String configFilePathForWebApps =
configFilePath.substring(0, configFilePath.indexOf("WEB-INF/classes/"));
pomProperties =
ClasspathKieProject.getPomProperties(configFilePathForWebApps);
} else {
pomProperties =
ClasspathKieProject.getPomProperties(configFilePath);
}
if (pomProperties != null) {
releaseId =
ReleaseIdImpl.fromPropertiesString(pomProperties);
} else {
releaseId = new ReleaseIdImpl("org.default",
"artifact","1.0.0-SNAPSHOT");
}
KieSpringUtils.setDefaultReleaseId(releaseId);
System.out.println("releaseId == "+releaseId);
}
--
View this message in context: http://drools.46999.n3.nabble.com/System-out-in-org-kie-spring-KModuleBea...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 9 months
Fwd: Need Drools developer Help
by Michael Anstis
---------- Forwarded message ----------
From: Niraj Gupta <Niraj.Gupta(a)causeway.com>
Date: 25 February 2014 10:22
Subject: RE: Need Drools developer Help
Hi Michael,
I am using 'drools-guvnor 5.5.0.Final' open source tool for
designing the business process (BPMN2). I end up in an issue and looking
for help. Following is the scenario
I created a package then process then after build, deploy execute
successfully. Now I came back to guvnor and made few changes in the
process. Then after same build, deploy execute successfully. But now this
time I am creating a declarative model having 2 facts, also modifying
business process. Then after same build, deploy execute successfully. This
time modified/latest business process doesn't load into console. This is my
problem. However I trouble shoot and google following are my observations:
* I am running this application in tomcat 6.0.35
* It works perfectly with POJO Model Jar approach.
* It works perfectly with declarative model but having single
fact.
* I am not seeing any exceptions either in UI or console logs
Regards,
Niraj
------------------------------
Causeway is committed towards reducing its carbon footprint. Please
consider the environment before printing this email.
------------------------------
Disclaimer Notice :-
The message and any attachments contained in this e-mail are intended for
the named recipient(s) only. It may contain privileged or confidential
information or information which is exempt from disclosure under the
applicable laws. If you are not the intended recipient(s), you must not
read, print, retain, copy distribute, forward or take any or refrain from
taking any action in reliance on it or any of its attachments. If you have
received or have been forwarded this e-mail in error, please notify us
immediately by return e-mail or telephone (+44 (0)1628 552000) and delete
this message from the computer or any other data-reading device in its
entirety.
Please advise us immediately if you do not or your employer does not
consent to Internet e-mail for messages of this nature.
Internet communications cannot be guaranteed to be secure and error-free as
the information could be intercepted, corrupted, lost, arrive late or
contain viruses. The sender and this Company therefore do not and shall not
accept any liability or responsibility of whatsoever nature in the context
of this message and its attachment(s) which arises as a result of Internet
transmission. Opinions, conclusion, representations, views and such other
information in this message that do not relate to the official business of
this Company shall be understood as neither given nor endorsed by it.
Registered Office: Comino House, Furlong Road, Bourne End, Buckinghamshire,
SL8 5AQ
Registered in England No: 3921897 www.causeway.com
10 years, 9 months
6.0.1.F Defect(s) in DSL and Enumerations
by SrjTx
The following works like you would think:
[when]xxx {l:ENUM:MyBean.l} {x:ENUM:MyBean.x}
{y:ENUM:MyBean.y}=eval($sep.foo("any", "any", "{l}", "{x}", "{y}", "", ""))
Defect 1?
If you remove the spaces between the "} {"
[when]xxx
{l:ENUM:MyBean.l}{x:ENUM:MyBean.x}{y:ENUM:MyBean.y}=eval($sep.foo("any",
"any", "{l}", "{x}", "{y}", "", ""))
l = ""
x = ""
y = l + x + y
Defect 2?
Even in the first case, if the Enumeration returns a value that has space(s)
in it (which maybe should not be allowed?) it will make for odd
substitutions as well.
--
View this message in context: http://drools.46999.n3.nabble.com/6-0-1-F-Defect-s-in-DSL-and-Enumeration...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 9 months
Failed to clone Repository java.lang.RuntimeException: Invalid remote when using org.kie.example.repositories
by rbesheer
when starting the WB using JBPM 6 full installer package and after download
the demo repository on my machine and using the system property
org.kie.example.repositories to point to the location of the repository im
getting this error at the start up of JBOSS and i cant figure out what is
the problem knwing that i've tried more than one example repository and all
of them failled !!
Failed to clone Repository 'processes': java.lang.RuntimeException: Invalid
remote: origin
at
org.uberfire.backend.server.repositories.git.GitRepositoryFactoryHelper.newRepository(GitRepositoryFactoryHelper.java:76)
[uberfire-backend-server-0.3.0.Final.jar:0.3.0.Final]
at
org.uberfire.backend.server.repositories.git.GitRepositoryFactoryHelper$Proxy$_$$_WeldClientProxy.newRepository(GitRepositoryFactoryHelper$Proxy$_$$_WeldClientProxy.java)
--
View this message in context: http://drools.46999.n3.nabble.com/Failed-to-clone-Repository-java-lang-Ru...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 9 months
pre-load rules and performance
by ismaximum
Hi
I am trying to make a big sets of rules more efficient. So we have this drl
file with lots of rules and the same rule-flow-group. About 15 of them are
rules we call them pre-load rules and they have a high salience numbers.
These rules will fetch data from database and insert then into WM.
As I know, each insert makes all the rules get activated... there are lots
of other objects and facts being added by these so-called pre load rules...
*How can we make this efficient? How can I say no rule gets activated unless
all the pre-load ones are done?*
Because these rules are inserting facts into memory (we are validating
incoming request and need to consider existing data in database) we can't
put new conditions in other rules to stop them from being fired.
Does anybody have an idea or had such experience with this?
Thanks
--
View this message in context: http://drools.46999.n3.nabble.com/pre-load-rules-and-performance-tp402821...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 9 months
NullPointerException with LeftTupleIndexHashTable.remove()
by nxv
Hello,
I keep trying to migrate drools from 5.5 to 6 on my project. I found a
second regression/issue. I'm trying to produce a unit test for
6.1.0-SNAPSHOT but I face some difficulties to determine the cause of this
issue. So I have a drl with 3 rules. I'm a bit disappointed because if I
switch two rules (without modifying anything, just switch one rule with
another in the drl file), the NPE disappears...
Here is the stacktrace:
java.lang.NullPointerException
at
org.drools.core.util.index.LeftTupleIndexHashTable.remove(LeftTupleIndexHashTable.java:386)
at
org.drools.core.phreak.RuleNetworkEvaluator.doUpdatesReorderLeftMemory(RuleNetworkEvaluator.java:799)
at org.drools.core.phreak.PhreakJoinNode.doNode(PhreakJoinNode.java:38)
at
org.drools.core.phreak.RuleNetworkEvaluator.switchOnDoBetaNode(RuleNetworkEvaluator.java:547)
at
org.drools.core.phreak.RuleNetworkEvaluator.evalBetaNode(RuleNetworkEvaluator.java:533)
at
org.drools.core.phreak.RuleNetworkEvaluator.innerEval(RuleNetworkEvaluator.java:334)
at
org.drools.core.phreak.RuleNetworkEvaluator.outerEval(RuleNetworkEvaluator.java:161)
at
org.drools.core.phreak.RuleNetworkEvaluator.evaluateNetwork(RuleNetworkEvaluator.java:116)
at
org.drools.core.phreak.RuleExecutor.reEvaluateNetwork(RuleExecutor.java:201)
at
org.drools.core.phreak.RuleExecutor.evaluateNetworkAndFire(RuleExecutor.java:68)
at
org.drools.core.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:935)
at
org.drools.core.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1200)
at
org.drools.core.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:952)
at
org.drools.core.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:926)
at
org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:232)
at
org.drools.core.command.runtime.rule.FireAllRulesCommand.execute(FireAllRulesCommand.java:106)
at
org.drools.core.command.runtime.rule.FireAllRulesCommand.execute(FireAllRulesCommand.java:32)
at
org.drools.core.command.runtime.BatchExecutionCommandImpl.execute(BatchExecutionCommandImpl.java:155)
at
org.drools.core.command.runtime.BatchExecutionCommandImpl.execute(BatchExecutionCommandImpl.java:76)
at
org.drools.core.impl.StatelessKnowledgeSessionImpl.execute(StatelessKnowledgeSessionImpl.java:334)
--
View this message in context: http://drools.46999.n3.nabble.com/NullPointerException-with-LeftTupleInde...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 9 months
cant run the example repository after install on my machine and change system property org.kie.example.repositories
by rbesheer
please im facing the same problem but when i installed the demo locally on my
machine and i modified the system properties to point to the root folder of
the repository but it seems that i have the wrong example sources cause it
keep getting me the same exception .. so can you please send me the right
URL to download the repository knowing that im using JBPM 6.0.1 final
installer jbpm-6.0.0.Final-installer-full.zip
appreciate your help
Failed to clone Repository 'globals': java.lang.RuntimeException: Invalid
remote: origin
at
org.uberfire.backend.server.repositories.git.GitRepositoryFactoryHelper.newRepository(GitRepositoryFactoryHelper.java:76)
[uberfire-backend-server-0.3.0.Final.jar:0.3.0.Final]
at
org.uberfire.backend.server.repositories.git.GitRepositoryFactoryHelper$Proxy$_$$_WeldClientProxy.newRepository(GitRepositoryFactoryHelper$Proxy$_$$_WeldClientProxy.java)
[uberfire-backend-server-0.3.0.Final.jar:0.3.0.Final]
at
org.uberfire.backend.server.repositories.RepositoryFactoryImpl.newRepository(RepositoryFactoryImpl.java:36)
[uberfire-backend-server-0.3.0.Final.jar:0.3.0.Final]
at
org.uberfire.backend.server.repositories.RepositoryFactoryImpl$Proxy$_$$_WeldClientProxy.newRepository(RepositoryFactoryImpl$Proxy$_$$_WeldClientProxy.java)
[uberfire-backend-server-0.3.0.Final.jar:0.3.0.Final]
--
View this message in context: http://drools.46999.n3.nabble.com/cant-run-the-example-repository-after-i...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 9 months