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.
12 years
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.
12 years
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.
12 years
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.
12 years
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.
12 years
Kie-Workbench install error
by gboro54
Hi! I am trying to install the Kie-workbench war to a jboss 7 environment and
get the exception below. I would imagine this is because of firewall and my
company will not open a connection to this repo. My question: is there a way
to have the deployment go through without loading the example projects?
Thanks!
Caused by: java.lang.RuntimeException:
https://github.com/guvnorngtestuser1/guvnorng-playground.git: cannot open
git-upload-pack
at
org.uberfire.backend.server.repositories.git.GitRepositoryFactoryHelper.newRepository(GitRepositoryFactoryHelper.java:80)
at
org.uberfire.backend.server.repositories.git.GitRepositoryFactoryHelper$Proxy$_$$_WeldClientProxy.newRepository(GitRepositoryFactoryHelper$Proxy$_$$_WeldClientProxy.java)
at
org.uberfire.backend.server.repositories.RepositoryFactoryImpl.newRepository(RepositoryFactoryImpl.java:36)
at
org.uberfire.backend.server.repositories.RepositoryFactoryImpl$Proxy$_$$_WeldClientProxy.newRepository(RepositoryFactoryImpl$Proxy$_$$_WeldClientProxy.java)
at
org.uberfire.backend.server.repositories.RepositoryServiceImpl.createRepository(RepositoryServiceImpl.java:182)
at
org.uberfire.backend.server.repositories.RepositoryServiceImpl.createRepository(RepositoryServiceImpl.java:173)
at
org.uberfire.backend.server.repositories.RepositoryServiceImpl$Proxy$_$$_WeldClientProxy.createRepository(RepositoryServiceImpl$Proxy$_$$_WeldClientProxy.java)
at
org.kie.workbench.drools.backend.server.AppSetup.createRepository(AppSetup.java:274)
at
org.kie.workbench.drools.backend.server.AppSetup.assertPlayground(AppSetup.java:101)
... 43 more
--
View this message in context: http://drools.46999.n3.nabble.com/Kie-Workbench-install-error-tp4027840.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years
Re: [rules-users] "in" syntax breaking the Rete Tree
by Mark Proctor
Each person that helps, by responding on this list, is volunteering their time of their own personal volition. Personal time is precious, and should be respected. There is no automatic right to mine or anyone else’s time on this list.
Our time is prioritised for paying customers. Red Hat is not a foundation, we aren’t employed to service a free community. We personally chose to try and engage the community as much as time allows; often well into our personal time. We do this, not because we have to, or that our employment requires it, but because we are passionate about what we do.
Our time is prioritised for paying customers. Our subscription model ensures customers can ask questions under, time monitored, Service Level Agreements. All tracked and managed by a dedicated team.
Our time is prioritised for paying customers. Our subscription model ensures we work first on bugs reported by customers. Our time is limited, and while all bugs are important, some bugs are more important than others. In general runtime issues have our highest priority; for instance I’m sure many people here would rather we prioritise a memory leak over a UI limitation in the Rete viewer, or that we ensure the OSGi Karaf container works.
If you require this level of service, then I can have someone from sales contact you with regards to purchasing a subscription. You will then receive our full and undivided attention.
The community forum is provided as a focal point for the community to talk among itself, to explore and share ideas and to help each other. When we can and we have time, Red Hat core developers, try and engage with the community. This is not a requirement of our employment. Like many others on this list, we do it anyway because we are passionate about what we do.
Even if it was possible to stretch our limited time further, If we provided that level of service in the community, then what would be the value of a subscription for our paying customers? How would Red Hat, without customers, employ my team and I?
Open Source is not about “free stuff”, it’s about enabling and empowering people, and communities. You are not beholden to a propriaraty company, who may or may not chose to fix things. You are empowered, and actively supported, to become part of the developer community and fix these things yourself. Enabling, sharing and doing things together, is what Open Source is about.
At some point I hope you look back on this post, and feel some degree of embarrassment.
Mark
PS You can atone for your sins by submitted a pull request for a Rete viewer fix.
http://docs.jboss.org/drools/release/5.6.0.Final/droolsjbpm-introduction-...
Project vs Product explanation:
http://blog.athico.com/2011/04/drools-jbpm-community-versus-product.html
On 21 Feb 2014, at 10:43, droolster <quant.coder(a)gmail.com> wrote:
> @Mark,
> "We saw this message..." - then why wasn't the advice given to raise a bug
> earlier? Why did it take 8 posts to eventually get to that point? It's a
> waste of time and effort, and a lack of appreciation for people who are
> trying to promote your product in their industry and workplace.
>
> Your other point about the Rete Viewer being low priority. For developers
> who are new to Drools (like me), one of the assurances we get that our rules
> are properly defined is the Rete viewer. If the Rete Viewer shows errors,
> then it gives doubts about whether the rules are properly defined. In my
> case, the rules still function correctly but if I am going take my rule
> engine into a Production environment I want all the assurances I can get.
>
> Thank you for eventually replying to my post.
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/in-operator-breaking-the-Rete-Tree-tp40...
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
12 years
Multuple AgendaFilter is not possible
by ismaximum
Hi
I'm trying to add multiple FireAllRulesCommand, each with different
AgendaFilter:
for(Object obj: objs) {
cmds.add(CommandFactory.newInsert(obj));
}
cmds.add(CommandFactory.newStartProcess(processName));
FireAllRulesCommand pre = new FireAllRulesCommand(new
PreAgendaFilter());
FireAllRulesCommand post = new FireAllRulesCommand(new
PostAgendaFilter());
cmds.add(pre);
cmds.add(post);
but it seems ksession.execute() only executes the first FireAllRulesCommand
and ignores the subsequent ones in the list. In this case only 'pre' ... and
if I change the order and add the 'post' before 'pre' it only executes the
'post' command...
Is this a bug or something else behind it?
--
View this message in context: http://drools.46999.n3.nabble.com/Multuple-AgendaFilter-is-not-possible-t...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years
Drools-Guvnor
by sravan k
Date: Mon, 24 Feb 2014 13:58:14 +0530
Hello everyone ,
Hope you are doing good , I am having following queries please give me a solution for the same
>Which version of Drools is stabled ?>For every rule configuration we are restarting tomcat ,because rules are not getting effected that is the reason we are restarting it .If we use 5.5 will this problem can be resolved ?>how to implement Dynamic update of knowledge base ?
---Regards,Sravan.
12 years