Ah right, I for creating Motion I use:
Object getMotion( KnowledgeBase kbase, long time) {
FactType motionType = kbase.getFactType( "com.sample", "Motion" );
Object motion = motionType.newInstance();
motionType.set( motion, "eventTime", time );
return motion;
}
Do you want me to attach Eclipse project?
--
View this message in context:
http://drools.46999.n3.nabble.com/Odd-rules-execution-for-expired-events-...
Sent from the Drools: User forum mailing list archive at
Nabble.com.