I'm porting an application from drools 5.0.1 to drools 6.0.1. In 5.0.1 the following query code worked fine:
import org.drools.QueryResults;
import org.drools.QueryResult;
QueryResults res = getSession().getQueryResults(
"the_query_name" , new Object[]{intActId} );
for ( QueryResult row : res ) {
ret = (RetrievedClass) row.get(0);
}
In 6.0.1 I'm supposed to use the kie API but I'm not sure how to retrieve the actual object. The class QueryResultsRow does not have get(int) method or any equivalent. It has get(string) but I've no idea what string to pass.
import org.kie.api.runtime.rule.QueryResults;
import org.kie.api.runtime.rule.QueryResultsRow;
QueryResults res = getSession().getQueryResults(
"the_query_name" , new Object[]{intActId} );
for ( QueryResultsRow row : results ) {
ret = ????
}