[DROOLS-661] Make accumulate fuctions aware of join variables