It would be "polite" to have it:

Rule "Cleanup Rule"
salience -999
rule-flow-group "your group"
when 
  $g: Guard()
then
   retract($g);
end

The low salience will make activations of this rule to be executed at the end of the execution cycle.

Best Regards,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


On Thu, Jun 2, 2011 at 5:34 AM, HMandic <trbuhom@net.hr> wrote:
Thanks, it worked.

Is cleaning up the session necessary?
How would that rule look like?

--
View this message in context: http://drools.46999.n3.nabble.com/Problem-with-sub-process-rules-inside-multiple-instances-tp3009981p3014310.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users