6.0.1.F Do dependent enumerations work as in docs 16.10.1?
by SrjTx
I am trying to do the dependent enumerations as covered in 16.10.1. Advanced
enumeration concepts
I set this up just like the example, and have tried a number of things to
get it to work, but now luck.
This works fine:
'MyBean.listType' : ['List', 'Regex']
'MyBean.val' : ['a','b']
This results in the val dropdown being grayed out.
This seems to follow the example in 16.10.1, but I must be missing something
subtle
'MyBean.listType' : ['List', 'Regex']
'MyBean.val[listType = List]' : ['a','b']
'MyBean.val[listType = Regex]' : ['c','d']
No errors, validation warnings, etc. are produced on the gui or in the jboss
log.
--
View this message in context: http://drools.46999.n3.nabble.com/6-0-1-F-Do-dependent-enumerations-work-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 10 months
Error Inserting events into drools fusion stream
by Ayush
Hi All,
I'm trying to implement drools fusion into my app. The scenario of my app is
as follows:
- Facts will be received continuosly.
- On receving fact I'm generating a new event and adding it into a new
working memory entry point stream. Also I'm adding facts into session coz
I'll be updating them.
- I need to apply rules on continuous stream of events.
- I've not used any camel + spring or pipeline. Are these mandatory to use?
For 1st fact everything works fine but when I receive 2nd fact I'm getting
Now when I'm trying to get entry point on receive of 2nd alarm I'm getting
org.drools.RuntimeDroolsException: Unexpected exception executing action
org.drools.reteoo.PropagationQueuingNode$PropagateAction@9ff411 Caused by:
java.util.concurrent.RejectedExecutionException.
On debug I found that the above exception is coming when I'm calling
session.getWorkingMemoryEntryPoint("MyStream"); Can anyone please help me
that how should I insert facts and events into working memory?
I'd invested ample amount of time searching for this but I'm empty handed.
Guys please help this is very urgent for me. Thanks in anticipation
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Error-Inserting-event...
Sent from the Drools - User mailing list archive at Nabble.com.
11 years, 10 months
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
11 years, 10 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.
11 years, 10 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
11 years, 10 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.
11 years, 10 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.
11 years, 10 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.
11 years, 10 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.
11 years, 10 months