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