rule "Combine ODMAnswers" when $a1:ODMAnswer( ) $a2:ODMAnswer( ) eval(odmList contains $a1 && odmList contains $a2) then ODMAnswer answer = new ODMAnswer( ); odmList.add(answer); odmList.remove($a1); odmList.remove($a2); end