You just use the old classes when writing a 5.X application, and the new ones
when writing a 6.X app.
--
View this message in context:
http://drools.46999.n3.nabble.com/Query-regarding-Upgrade-to-drools-API-6-1-0-tp4030736p4030738.html
Sent from the Drools: User forum mailing list archive at
Firstly a correction.
Drools rule engine otherwise known as Drools Expert does not use JCR by
default. Guvnor (Drools rule authoring and management web applicafion) does
use JCR as its persistent store. JCR is better thought of as a hierarchical
data store than a (R)DBMS.
That said Drools Expert
If you consider Drools Expert (the core engine) as a component, then
certainly, yes, it can be integrated into a system that both utilizes
persistence and communicates via web services in various ways respectively.
As for working examples, I'm of the opinion that would be stretching the
point of
Hello All,
I am starting up on a project which requires Drools rules. I have been asked
certain basic Q's. Am jotting them below
1. *Can the Drools Rule engine communicate to a DB *
I know by default, drools does use the *Apache JackRabbit DB* to store
respective assets and there are means to
Hi All
I am a newbie
I have a question
In guvnor we have categories
Using REST API we can access assets through categories like
/rest/categories/{}/assets ...something like this
I have a JSON object which gets populated which has references to binary
for all the assets
1) How do we construct
Hi,
Please bear with me, I am relatively new to the world of Drools and have a
question. I am hoping it will be a simple issue.
First let me frame my planned implementation at a high level. I am hoping
to use Drools as a real time service enabled quote validation tool.
Facts representing
Does each quote validation exercise enrich the StatefulKnowledgeSession
with other facts that could influence validation of other quotes?
If not probably using a StatefulKnowledgeSession per HTTP request might be
more simple (with the KnowledgeBase as an application scoped variable).
Regarding
Hi Mike,
Each quote does not enrich the session, we were actively looking to remove the
quote at the end of the session to prevent it growing as we were just comparing
the quote to the core product attribute facts.
What is the performance hit in launching a Stateful knowledge session with say
That's a possibility, but it'd depend on your rules.
As a thought, you could serialise the initialised StatelessKnowledgeSession
into a byte[] (cached at application scope) and deserialise with each
web-service call.
I would wait to see if Mark Proctor, Edson Tirelli or community members
have
Hi Mike,
Many thanks for that..we had previously thought of serialising to file but
thought the purpose of the StatefulKnowledgeSession was to keep it live in
memory continuously, rather than instantiating a new session with each web
service call.
My concern is that if we instantiate a new
...@mattelli.com
To: Rules Users List rules-users@lists.jboss.org,
Date: 05/02/2012 04:28 AM
Subject:Re: [rules-users] Query for a fact, and concurrent rule
execution
Sent by:rules-users-boun...@lists.jboss.org
Hi Mike,
Many thanks for that..we had previously thought
,
Date: 05/02/2012 04:28 AM
Subject:Re: [rules-users] Query for a fact, and concurrent rule
execution
Sent by:rules-users-boun...@lists.jboss.org
Hi Mike,
Many thanks for that..we had previously thought of serialising to file but
thought the purpose
cramming everything into a
StatefulKnowledgeSession and worry abt thead-safety.
From: Stephen Lomax stephen.lo...@mattelli.com
To: Rules Users List rules-users@lists.jboss.org,
Date: 05/02/2012 04:28 AM
Subject:Re: [rules-users] Query for a fact, and concurrent rule
execution
and not changed by the rules
you should share them between sessions in the same JVM, saving memory and DB
load overhead.)
--- On Wed, 5/2/12, Wolfgang Laun wolfgang.l...@gmail.com wrote:
From: Wolfgang Laun wolfgang.l...@gmail.com
Subject: Re: [rules-users] Query for a fact, and concurrent rule execution
I have created a query in guvnor 5.3 in a separate drl file as follows.
query get total Documents created
document : Document( )
end
I have several rules that create Documents as part of the ruleflow.
on the java side
ksession.fireAllRules(new RuleFilter()); // the rulefilter does
You'd get this result even when there's no query with the name string
you use in the API call.
(1) Make sure that the name is correct.
(2) Make sure that there is a query with that name, e.g., by inspecting the
session's knowledge base at runtime.
-W
On 28/01/2012, vadlam
Hi luane,
thanks for that. Using the expression under eval() solves the problem.
I don't develop the objects I am applying the rule against. So I have to
make do with string datatype.
cheers.
--
View this message in context:
The Drools version would be interesting, to raise a JIRA if it is 5.2.0.
-W
On 26 December 2011 09:05, bobbi_80 guruprasad_bo...@infosys.com wrote:
Hi luane,
thanks for that. Using the expression under eval() solves the problem.
I don't develop the objects I am applying the rule against. So
sorry forgot to mention that part. I am using 5.3.0 final.
--
View this message in context:
http://drools.46999.n3.nabble.com/query-in-drools-expert-rule-language-tp3612345p3612453.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
Hi ,
I want to know if there is any way I can evaluate a string in rule language.
Here is what I am doing
DroolsTest.java has a class as follows.
DroolsTest.java
public static class cpuTracker{
private String machinename;
private String
Starting with Drools 5.2, general boolean expressions
should work, but there were problems. Which version are
you using?
Why doesn't averageCPU have a numeric type? Then the comparison would be
straightforward (and most efficient).
To be on the safe side with String, use
$cpuUsage :
Mark,
Thanks for your help! I was finally able to test, and that totally worked. I
was confused by example 3.37 (4.37 in the Drools 5.2.0 docs). The key point I
missed must be that newStartProcess causes all the rules to fire. Well, at
least I was right about it being something simple. :-)
Aha! I missed the line about the dispose. That makes a lot of sense. What I
don't understand is why the example 3.37 in the docs would work. If I
understand what you're saying, it shouldn't.
Thanks!
Hank
Sent from my iPhone
On Jul 30, 2011, at 8:27 AM, Wolfgang Laun
On 31/07/2011 17:25, Heijink, Hank wrote:
Aha! I missed the line about the dispose. That makes a lot of sense.
What I don't understand is why the example 3.37 in the docs would
work. If I understand what you're saying, it shouldn't.
It should work, as long as the query is executed as part of
On 31/07/2011 17:45, Mark Proctor wrote:
On 31/07/2011 17:25, Heijink, Hank wrote:
Aha! I missed the line about the dispose. That makes a lot of sense.
What I don't understand is why the example 3.37 in the docs would
work. If I understand what you're saying, it shouldn't.
It should work, as
Thanks so much! I'll have a chance to test it tomorrow.
Hank
Sent from my iPhone
On Jul 31, 2011, at 12:48 PM, Mark Proctor
mproc...@codehaus.orgmailto:mproc...@codehaus.org wrote:
On 31/07/2011 17:45, Mark Proctor wrote:
On 31/07/2011 17:25, Heijink, Hank wrote:
Aha! I missed the line about
StatelessKnowledgeSession.execute(...) executes the command(s) and *finally
calls dispose()* on the session. Use a stateful session or a global (filled
with a low-salience rule) or - simply use the getObjects command.
-W
On 29 July 2011 22:47, Heijink, Hank heij...@audible.com wrote:
Hi all,
Hi ,
Please share me sample java code to query version of all the activity done
through BRMS.
As I got some sample code to run over repository.xml using apache Jackrabbit
but I did not not get how to invoke the WebDev URL provioded by BRMS using
jackrabbit api.
Please share some sample code
I have 2 types of objects in my knowledge base that I am trying to equate.
Equality is based on a number of different variables contained in the objects.
Once I find equal objects I set a status member in each to Matched, otherwise
it will be OneKnows or TwoKnows.
After I fire the rules I
Are you setting the status attribute in the RHS of a rule? Are you updating
the facts after you modify them?
Best,
Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com
2010/11/9 Dennis Duggan
How are classes MyObject1 and MyObject2 related? Is there a field status
in each of them and/or in their common superclass?
-W
2010/11/9 Dennis Duggan den...@esptechnologies.com
I have 2 types of objects in my knowledge base that I am trying to
equate. Equality is based on a number of
I have a super interface, that both objects implement.
The matching rule looks like:
rule Match
when
$oRecord1 : MyObject1( )
$oRecord2 : MyObject2(RefID==$oRecord1. RefID )
then
$oRecord1.setStatus( Matched );
$oRecord2.setStatus( Matched );
end
I can
You don't call modify or update on $oRecord1/$oRecord2!
-W
2010/11/9 Dennis Duggan den...@esptechnologies.com
I have a super interface, that both objects implement.
The matching rule looks like:
*rule* Match
*when*
$oRecord1 : MyObject1( )
$oRecord2 :
I have a project where I am allowing users to create rules from the
application UI. Currently all the rules related info is stored in a database
and the rules matching code is in Java. However this slows down the
application considerably and hence we are looking at using a third party
rules
Hi,
1) Outside of Guvnor rules are normally defined in DRL (text files) or
spreadsheets (Decision Tables). There is an API to load these into
KnowledgeBases at runtime. Behind the covers Guvnor does much the same -
generating DRL from its internal structures that are compiled into
KnowledgeBases
Hi ,
I am using drools 5.0 in application. I am facing performance
issues. I am using drls, rule flows and rule templates.
My scenario is as follows :-
Consider there is list of 20 companies.
There are about 2 members in each company.
Now I have several rules in which
I cannot tell from what you have posted; but without relating member to
company you run the risk of producing a Cartesian product of results which
would, no doubt, give you a performance problem.
rule Cartesian product
when
$c : Company()
$m : Member()
then
For this sort of analysis one has to know
(1) whether one Member can be a member of a single company only, or whether
(s)he can be a member of more than one, too;
(2) (assuming it's N:1) whether is is possible to have a reference to the
company as a field in each Member object
(3) whether you can
hi,
can we call a java service from a fault node like actions node.what can we
write in editor of fault node and exception handler.
thanx
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/query-regarding-fault-node-tp1613493p1613493.html
Sent from the Drools
Hi There,
We are using Drools 5 in our project, the requirement was to have huge
database, the data is being fetched from DB and inserted into drools working
memory.
For eg:
Cell - 50k
ExternalCell - 50k
CellRelation - 250
Topology hiearchy:
-Subnetwork
correcting the format.
--
Hi There,
We are using Drools 5 in our project, the requirement was to have huge
database, the data is being fetched from DB and inserted into drools working
memory.
For eg:
Cell - 50k
ExternalCell - 50k
CellRelation - 250
Hello List,
I have a very basic question about inserting facts into the working memory
dynamically.For firing the rules,we should be having all our facts in the
working memory.In that case,How will we deal with the situation where the
facts that we need for evaluation of a particular rule is
If you want to reward all students you'll have to have all students in WM,
at one time or other. Assuming that you aren't dealing with all the students
in China, it doesn't matter much how you do this.
Now as for a student's exams, there might be an advantage if you could
restrict the set of
Thanks W for the quick responseyou are absolutely correct,to reward all
the students based on some criteria,all of them should be in WM.But the
average of last 3 out of all 75 should become a part of the reward
criteria and the challenge as you mentioned would be how to restrict the
exam
Hi Group,
I have a doubt regarding tuples. I created a rule using complex types
objects. I am comparing two complex type objecs which have parent-child
relationship eg. ParentType.equals(ChildType). I expect this to follow
java rule which allows such comparision. Now when I run the rules with
any suggestions regarding the impact on performance???
DeepakA wrote:
We have a set of rules (lets call them old rules) running in our strategy
server.
A new requirement is that - the client can make calls to the server, at
that point new rules need to be loaded in the workin memory (at
We have a set of rules (lets call them old rules) running in our strategy
server.
A new requirement is that - the client can make calls to the server, at that
point new rules need to be loaded in the workin memory (at run time), if the
rules get executed then the rules need to be removed from the
Hi,
Is there a way to get the QueryResults from a StatefulKnowledgeSession in
Drools 5.0 ?
The old API has a getQueryResults method but I can't find it in the new API.
Thanks,
Best Regards,
Michal
___
rules-users mailing list
what are disadvantages and advantages of the following
possibillities to to
get access to working memory facts from outside:
Is there a reason why you want to use something other than queries?
I would suggest to use queries _unless_ you have a definitive
requirement that requires something
Hi,
I tried creating/compiling/executing the following rule using the drools
eclipse workbench:
package com.sample
import org.domain.CreditCard;
rule Credit Eligibility
no-loop true
when
cc : CreditCard( age 18, annualIncome 5, asset 50 )
then
Mark,
I am certain that this is a bug. In my rules, I was able to make it work
where I leave the Open lines on he agenda and he query does in fact pick
them up.
I wil see if I can create a small test case that demonstrates the problem.
What is the link to JIRA so I can log it.
Ron
On Nov 17,
All,
I have the following query:
query Open RTV Lines
line : DetailLine(status in (StatusConstants.OPEN,
StatusConstants.PARTIALLY_MATCHED))
end
And what appears to be happening is it is only picking up those lines that
are marked with StatusConstants.PARTIALLY_MATCHED and not those marked
Hi
I am using Drools 4.0 version with .xml file.
Here is my java program.
package com.wipro.rfq.report.bean;
import java.io.InputStreamReader;
import java.io.Reader;
import org.drools.RuleBase;
import
Hi
In one of my program i am getting the following erroe message
Exception in thread main
org.drools.compiler.PackageBuilder$MissingPackageNameException: Missing package
name for rule package.
at
org.drools.compiler.PackageBuilder.validatePackageName(PackageBuilder.java:294)
at
As the error message states, you probably forgot to define a package name
in your DRL files.
[]s
Edson
2007/9/24, [EMAIL PROTECTED] [EMAIL PROTECTED]:
Hi
In one of my program i am getting the following erroe message
Exception in thread main
Can we call a query in a function in the drl file
Thanks
--
View this message in context:
http://www.nabble.com/query-in-function-tf4030626.html#a11449368
Sent from the drools - user mailing list archive at Nabble.com.
___
rules-users mailing list
Hi,
Suppose I want to add a business rules in JBRMS.
Now I need facts pattern to be chosen.
The guide says You need to have a model of the facts(API) in a jar file and
upload it.
Please let me know the details of the concept of how to do that.
Thanks in Advance.
Regards
JAGARAN
--
View
hi,
I'm going to convert a PackageDescr object which has the rules to XML
file.I'm trying to convert it into xml using dump method of XmlDumper class.
The problem with that is while the rest of the code is fine i cannot get the
lhs part. There is no method in fact as far as i know to
Niloy,
I suggest you make a drl first and then look at the AST it creates in
memory and then make sure that the programmatic descr tree you are
making matches that.
Mark
Niloy Debnath wrote:
hi,
I'm going to convert a PackageDescr object which has the rules to
XML file.I'm trying to
Can a query in a rules file be used in the LHS of another rule?
--
Kevin J. Schmidt
[EMAIL PROTECTED]
In all affairs it's a healthy thing now and then to hang a question
mark on the things you have long taken for granted.
-Bertrand Russell
___
no
Kevin J. Schmidt wrote:
Can a query in a rules file be used in the LHS of another rule?
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
61 matches
Mail list logo