Drools5 in tomcat 5
by Rubén Marrero
Hi all:
I want to add drools to a php application. Currently we are using Tomcat 5 to execute BIRT reports and works great.
We want to keep using Tomcat (this version in particular) and just drop the Drools WAR so to disturb as little as possible our current setup.
Is Tomcat 5 a supported platform to run Drools 5? any pointers to current docs?
Thanks in advance,
Rubén
14 years, 9 months
Enumeration in Guvnor
by shekharputtur puttur
Hi All,
i have a java class 'Car' with attributes ' String color' and 'int value'
inside a package 'example.test'.
I created a model.jar containing 'Car class',uploaded to guvnor for defining
rules.
For 'color' attribute, I created a enumeration like:
'Car.color' : ['red', 'blue','green']
But when i try to define a rule, this enums are not shown as drop down list.
What would be the problem?
Could anybody give some hints to solve this?
Thanks
Shekar
14 years, 9 months
Drools 5.1 trunk - eclipse plugin "Could not find default Drools runtime"
by Premkumar Stephen
Hi,
I built the source from trunk and added the drools eclipse plugin.
I was asked to create a new Drools 5 Runtime directory.
I pointed it to a directory that has all the jars, but I still get this
error message "Could not find default Drools runtime"
Is there any documentation on how to set up the Drools runtime?
Regards,
Prem
14 years, 9 months
Validation using time driven rule execution
by skasab2s
Hello,
our medical company plans using drools for validation of blood poisoning. In
this situation should be checked, if a patient has blood poisoning (this is
the simple part of the problem). The hard part of the problem is, that some
actions (let's say A, B, and C) should be executed by the doctor after
detecting the blood posisoning in particular order and time frequency (and
we want Drools to check, if they have been executed). Drools should then do
this:
after 10 minutes: check if action A has been executed by the doctor
after 15 minutes: check if action B has been executed by the doctor
after 20 minutes: check if action C has been executed by the doctor
Can we do this with one "fireAllRules" (the Java code for triggering drools
has it's own timer and we don't want it to mess our times for executing the
actions)? What should we use: drools expert, drools fusion or drools flow,
in order to implement the given situation? Can you short describe a
solution?
Thanks a lot and many regards,
skasab2s
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Validation-using-time...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 9 months
IBM ZOS
by Mark Proctor
Has anyone here had any experience of running both the Drools runtime
engine and the the Guvnor BRMS on IBM's ZOS?
Mark
14 years, 9 months
Re: [rules-users] Validation using time driven rule execution
by Greg Barton
If by "has it's own timer" means that the rules are triggered periodically then yes, this is possible, but it's not complete. The reason for this is that you need a heartbeat of some type to enable the rules to reconsider objects. Without this reconsideration the "negative" tests you mention are not possible. (i.e. "it's time X relative to event Y and event Z has not happened"). You can do this a few ways:
1) Have rules you want reconsidered include the heartbeat object in it's conditions. (Least desirable, IMO)
2) Have some rules that match on the heartbeat and any object you want reconsidered. Downstream rules would fire normally.
3) Externally update the objects from 2 above.
There might be a slicker way to do this in fusion without a heartbeat since it uses an internal clock, but specifically with the negative tests I'm not sure what that would be.
GreG
On May 13, 2010, at 3:54, skasab2s <skasab2s(a)smail.inf.fh-brs.de> wrote:
Hello,
our medical company plans using drools for validation of blood poisoning. In
this situation should be checked, if a patient has blood poisoning (this is
the simple part of the problem). The hard part of the problem is, that some
actions (let's say A, B, and C) should be executed by the doctor after
detecting the blood posisoning in particular order and time frequency (and
we want Drools to check, if they have been executed). Drools should then do
this:
after 10 minutes: check if action A has been executed by the doctor
after 15 minutes: check if action B has been executed by the doctor
after 20 minutes: check if action C has been executed by the doctor
Can we do this with one "fireAllRules" (the Java code for triggering drools
has it's own timer and we don't want it to mess our times for executing the
actions)? What should we use: drools expert, drools fusion or drools flow,
in order to implement the given situation? Can you short describe a
solution?
Thanks a lot and many regards,
skasab2s
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Validation-using-time...
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
14 years, 9 months
Problem in update() method
by Puneet duggal
hi frnds
i am having problem with update() method when i call update method from
first rule
it calls second rule and goes in infinite loop calling the second method
rule again and again
why is it so ??
rule "Area_EstimatesRval4_10-01-09_12-31-14"
date-effective "01-Oct-2009" date-expires "31-Dec-2014" salience 5
no-loop true
when
objectP2483 : Para_2483( (fid2329>=0);
then
objectP2483.setFid2339(objectP2483.getFid2338() *3.1);update(objectP2483);
rule "Area_EstimatedRval_test_10-01-09_12-31-14"
date-effective "01-Oct-2009" date-expires "31-Dec-2014" salience 5
no-loop true
when
objectP2483 : Para_2483( fid2339>0);
then
System.out.println("Area_EstimatedRval_test_10-01-09_12-31-14");
objectP2483.setFid2339(objectP2483.getEid2143());
update(objectP2483); end
14 years, 9 months
Using "in" or "not in" operator in a DSL
by Joerg Herbst
Hi folks,
I'm trying to create a DSL where the user should be able to add a bunch
of values, as when using the normal rule syntax.
The DSL should look something this:
when
person is not "18","21", "100" years old
then
normal birthday
end
My problem is I don't know the number of arguments. When I write a
normal rule I can say somethink like:
Age (value in ("18","21","100"))
But how can I achieve this in a DSL syntax?
Thanks
Joerg
14 years, 9 months
possible bug in latest SNAPSHOT - AccumulateFunction.init() is called when calling modify()
by Michal Bali
Hi,
I may have found a bug with accumulate and 'modify(..)' function call. It
seems that once the modify(..) is called it indirectly calls
AccumulateFunction.init() which invalidates accumulated data. I have
included a simple test case:
I am using the latest snapshot of Drools 5.1.SNAPSHOT
I have created a sample Drools project and just modified the Sample.drl with
this:
-------------------------------------------------------------
import java.util.List;
import java.util.ArrayList;
declare Holder
list : List
end
rule "Hello World"
when
m : Message( )
then
insert(new Holder());
end
rule "GoodBye"
when
$holder : Holder( list == null )
$messages : List() from accumulate(
$message: Message(), collectList($message) )
then
System.out.println($messages); //<-- here the $messages list has one element
modify($holder) {
setList($messages)
}
System.out.println($messages); //<-- here the $messages list is empty
end
-----------------------------------------------------
Let me know if you need more information. I can create a JIRA if needed.
Thank you!
Best regards,
Michal
14 years, 9 months
Regarding Jboss drools rules
by Sai Venkat
Hi could anyone send me a sample application which has two rules for a set of 5 records and process the rules show the output in any format(text,csv,xls...).
the result should be dispalyed with both the success and failed records after it processed the rules.
Thanks n Regards
venkat
14 years, 9 months