[rules-users] Error at inserting a fact

Wolfgang Laun wolfgang.laun at gmail.com
Thu Dec 9 14:35:10 EST 2010


On 9 December 2010 16:52, Anais Martinez <amartinez at iti.upv.es> wrote:
>
> Hi. I want to test several rules and I'm using pseudo-clock and stream mode.
> When I insert the first fact, Drools generates an error of "timestamp must
> be greater 0". But if I use real clock, the message doesn't appears.
>

When using a pseudo-clock, I have always used
   SessionPseudoClock.advanceTime(long x, TimeUnit unit )
to advance the clock to some reasonable value, especially so
if the timestamp is an attribute of the event fact.


> The fact is a java class, but I haven't defined the timestamp. What is the
> problem?
> For this test I am not using events.

This is strange - if there are no declare X @role( event ) end in your DRL,
there shouldn't be a complaint that the timestamp has a value equal to
zero. Please check the absence of such declarations.

-W



>
> Thanks
> --
> View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Error-at-inserting-a-fact-tp2058311p2058311.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



More information about the rules-users mailing list