First of all, don't use automated time stamping of events; add a field
carrying the (original) event time. I think you could also run the session
in CLOUD mode.
Also, it may not be advisable to pull in facts and reason over them in the
same rule. Perhaps retrieval and proper insertion of facts sho
Wolfgang Laun-2 wrote:
>
> The example does not use events, as in @role(event). You can maintain
> a value of type java.util.Date in your hibernated facts, but don't make
> them events the way you do.
>
>
It is important for me to use temporal reasoning and CEP, and hence HAD to
define these as
On 12 July 2011 19:47, rp2 wrote:
> Thanks.
> Basically I am trying to retrieve (and store) events from an external store
> like in
> http://magazine.redhat.com/2008/07/11/jboss-drools-meets-hibernate/
> expect that the backing store in not a relational db but a custom key-value
> store.
>
> This
Thanks.
Basically I am trying to retrieve (and store) events from an external store
like in http://magazine.redhat.com/2008/07/11/jboss-drools-meets-hibernate/
expect that the backing store in not a relational db but a custom key-value
store.
This example also does not show the facts/events bein
Objects produced by a "from" clause that haven't been inserted into Working
Memory previously are not facts, let alone events.
As the presented code shows, the timestamp of event User should be set by
Drools when the fact is inserted. Frist, with "from" it isn't inserted at
all, and second, if it
Could someone please provide an answer?
--
View this message in context:
http://drools.46999.n3.nabble.com/Temporal-reasoning-with-external-persistence-not-working-tp3158399p3163063.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_
I am trying to use an external storage for loading and persisting objects.
But when I try a set a temporal reasoning rule it start to fail. The rule,
test code and exception are given below. Please help
// rules file
package foo.externalwm;
global foo.ExternalStorage session;
import fo