[rules-users] drools-camel-server > RetractAll() Command?

Davide Sottara dsotty at gmail.com
Wed Jun 27 13:08:50 EDT 2012


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.


More information about the rules-users mailing list