Which resulted in this error: [Error: unable to access property (null parent): $obj]
However, if I call an accessor or otherwise do something with the object before passing it off to the constructor, it works fine:
$obj.getName(); $queryResult.addResult(new Result($obj));
Right now this appears to be a problem in MVEL, but I don’t know enough about the internals of Drools of MVEL to say for sure. Ideally this workaround will keep you moving forward.