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(a)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-...
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