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
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to