One option is to send a special "cleanup" trigger fact and add a rule:

rule "Cleanup"
when
 $c : Cleanup() 
 $o : Object( this != $c )
then
 retract( $o );
end

You'll then need to retract the Cleanup fact. For example, you might use
another rule or make it an event with expiration



--
View this message in context: 
http://drools.46999.n3.nabble.com/rules-users-drools-camel-server-RetractAll-Command-tp4018298p4018300.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to