[rules-users] Error at inserting a fact

Wolfgang Laun wolfgang.laun at gmail.com
Fri Dec 10 04:43:45 EST 2010


How did you create the Calendar?

The exception is not from Drools; I think it is originally thrown
somewhere below org.quartz.
(Please, always post the stack trace!)

It's strange that it doesn't happen with a real-time clock; I'd think
that the Calendar
needs to be evaluated in any case.

-W

On 10 December 2010 09:13, Anais Martinez <amartinez at iti.upv.es> wrote:
>
> I use ((SessionPseudoClock) session.getSessionClock()).advanceTime(value,
> units) to advance time, with  value = 1, units = TimeUnit.DAYS. Do I have to
> set the clock to a variable instead of calling in this way?
>
> I have two facts. Their declarations are:
>
> declare Subparcel
>        @role( fact)
> end
>
> declare Node
>        @role( fact)
> end
>
> The rules that I want to probe are like this:
>
> rule "change status A to B"
>        calendars "B"
>        when
>                $p: Subparcel(statusID == StatusID.A)
>        then
>                $p.setStatusID(StatusID.B);
>                update($p);
> end
>
> I am using several rule files, but the declaration is the same in all them.
>
> Thanks again.
> --
> View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Error-at-inserting-a-fact-tp2058311p2062423.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