You can retrieve the results that are sent back to the application after the execution of the ruleset.
<type> value = (<type>)output.getParameter(key);
For example, String string = (String)output.getParameter(key);