Thankzz stephen...
Your examples proved out to be of great help !!!
thanks a TON !
--
View this message in context:
http://drools.46999.n3.nabble.com/Setting-and-extracting-different-values-for-the-same-object-using-rules-tp4018660p4018695.html
Sent from the Drools: User forum mailing list
Hi,
I working on creating a POC by creating set of web based rules within a
package using drools Guvnor and accessing them from my Java client.
Currently, my drools uses Jackrabbit repository (2 foldersrepository and
scripts and 1 file repository.xml) which is created within bin folder of
my JBoss
global java.lang.Integer count
rule rule1
agenda-group 1
when
//smething
then
count=0;
System.out.println(count); // output is 0
count = count +1;
System.out.println(count); // output is 1
drools.setFocus(2);
end
rule rule2
agenda-group 2
when
hey,
i know that the number is local to the function so it wont show the
incremented value, when the function is called...
but i ve declared the global n m not redeclaring it in the rules !
regards,
Abhinay
--
View this message in context:
It may not be quite so simple as that - using int to illustrate a
problem occuring with Integer is misleading.
An Integer is an immutable object.
Integer a = Integer.valueOf( 42 );
a += 1
You'll certainly still have an Integer object available via 'a', but
it's *not* the one containing 42
Hi,
I'm using default Guvnor package mortgages decision table as example for
my POC. Below is the rules from the decision table. No rule is being fired
from my JAVA client out of 3 rules given below.
//from row number: 1
rule Row 3 Pricing loans
dialect mvel
when
setGlobal() works for me !!...tnxx !! :) :)
--
View this message in context:
http://drools.46999.n3.nabble.com/Simple-Global-Error-tp4018697p4018703.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
On 16/07/2012, Esteban Aliverti esteban.alive...@gmail.com wrote:
No matter the type of a variable or whether it is inmutable or not, if you
reassign a variable inside a method you are not going to see that change
outside the method.
void method(){
x += 1;
}
If x is a class member, the
Why do you think that you should have a third fact when there are no
insert() calls except the two in your Java code?
-W
On 16/07/2012, Ravikiran ravikiran.kaka...@gmail.com wrote:
Hi,
I'm using default Guvnor package mortgages decision table as example for
my POC. Below is the rules from the
The problem is that you are inserting the fact type definition instead of
the facts themselves.
instead of insert *appType* and *incomeType* you should insert *application*and
*income*.
Best Regards,
Esteban Aliverti
- Blog @
Sorry, just saw your message. fireUntilHalt() will work in your use
case, as Mark mentioned. With fireUntilHalt(), as soon as a rule is
activated, it will fire if the agenda is idle. Because the topology of the
discrimination network is affected by the order of the rules in the file,
you end up
Hi Team,
I was just wondering what is the status of the
development behind Drools Chance? I forked the repository on GitHub and
am quite impressed with the entire module, however I cannot tell how
stable it is.
So, I was wondering if there are any plans for a stable release, or if the
Rookie error -- I neglected to put the modify() in the RHS of a rule.
That'll make a big difference. :-)
--
View this message in context:
http://drools.46999.n3.nabble.com/Planner-IntConstraintOccurrence-not-being-retracted-tp4018672p4018710.html
Sent from the Drools: User forum mailing list
Dear Drools users,
I'm new to Drools but loving it so far. I have a question about accumulate
and window:lengt:
What I want: Display the average order value considering the last 200
orders for one type of product. I want have at least 10 orders for one
product before drawing any conclusions
How
ooops. I'll try tomorrow in office and will reply...thanks a lot
On Mon, Jul 16, 2012 at 9:59 PM, Esteban Aliverti
esteban.alive...@gmail.com wrote:
The problem is that you are inserting the fact type definition instead of
the facts themselves.
instead of insert *appType* and *incomeType*
I got the following error when I tryed to build the default sample repository
after starting guvnor the first time.
I then tried to build my own package, and got the same error:
400 Sorry, a technical error occurred. Please contact a system
administrator.
Service method 'public
I am having an issue with an optimizer stack trace on my linux QA box that I
can't seem to reproduce on my windows development box. The stack trace is:
13:01:50,188 ERROR [stderr] (Thread-123) Exception in thread Thread-123
java.lang.RuntimeException: unable to invoke method:
My pleasure ... I'm glad it was useful to someone!
In case you hadn't spotted already, you should just be able to follow the links
in github up to the top level project, but here's the link to the top level
anyway:
https://github.com/gratiartis/scattercode-drools-scenarios
It's
Many thanks to Edson, Wolfgang, and Mark. Edson, your solution of modifying
the drools-camel component to call fireAllRules() after each insert did the
trick. My salience values are now being honored.
Thanks guys!!
- Ladd
--
View this message in context:
Hi, I'm getting duplicate rule invocations when a rule is added to the
KnowledgeBase after the facts have been inserted in the
StatefulKnowledgeSession. Very simple example, seems what I'm doing is
consistent with 5.3.0.Final Drools expert documentation. Thanks for the
assistance,
--Mark
Glad to hear!
If you can contribute your changes to drools-camel back, we can add it
to the codebase and maintain from now on. The whole drools community will
benefit.
Thanks,
Edson
On Mon, Jul 16, 2012 at 1:37 PM, Ladd l...@codemettle.com wrote:
Many thanks to Edson, Wolfgang,
I turns out this is a known issue.
https://issues.jboss.org/browse/JBRULES-3520
--
View this message in context:
http://drools.46999.n3.nabble.com/Where-is-org-drools-server-package-for-camel-server-tp4018668p4018719.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
Also, for anyone needing it, I got it working with the CamelServerApp class
here:
http://grepcode.com/file/repo1.maven.org/maven2/org.drools/drools-camel-server/5.4.0.CR1/org/drools/server/CamelServerApp.java
Then I added the direct endpoint in camel-server.xml:
route
from
Could you paste the source code (DRL) of the package?
Best Regards,
Esteban Aliverti
- Blog @ http://ilesteban.wordpress.com
On Mon, Jul 16, 2012 at 6:30 PM, paco fifi_nji...@yahoo.fr wrote:
I got the following error when I tryed to build the default
Hi Nick, thanks!
unfortunately the module is still in development, it's basically maintained
by me alone :(
It will take some more time to complete all the features I have in mind,
even if I'm trying
to work on it whenever I can.
I'm not a jboss employee, but a community member and a part-time
Thanks Esteban. It works fine after inserting the Fact instead of
FactType...!!!
But still i have one basic question in mind...if there are many rules
defined in my package, How would i know that which is rule has got fired
when i call fireAllRules() method whithout passing AgendaFilter. Also i
Hi Drools gurus,
Further to my earlier post in the same thread,
1) please clarify whether the respository folder still exists after the
database integration?
2) If the repository folder still exists even after database integration,
then there is something wrong with my process.
3) After the
You could add an AgendaEventListener to your session (see also the manual for
listeners),
letting you execute callback code whenever a rule is activated/fires/etc...
The listener is actually an interface, I think there is at least one default
implementation which
just logs debug code. Notice
Hi Davide,
I can write the listener to know what is happening underneath that will be
printed in a log, but when it comes to my biz. scenario i should have a
simple way that i can derive it from my java code. Because i have multiple
biz.flows based on certain biz.policies...those policies have to
29 matches
Mail list logo