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
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
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.
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,
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 :
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
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
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
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
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
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
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,
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
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
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
38 matches
Mail list logo