Is it possible to access the working memory from within a rule or
function? 

Example: I have two container objects that refer to another object
(item). Both container have this item in a list.
A rules decides to delete the item and therefore retracts it from the
working memory. But I need to delete the item from the two containers as
well. How to do?

rule "Item handling"
When 
        $item : Item(uniqueId)
Then
        if(mustBeDeleted($item)) {
                retract($item);
        } else {
                doSomethingElse();
                modify($item);
        }
End

Thanks,
Torsten.

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to