Can someone point me in the direction of examples using queries?? I have a
simple query and rule that I cannot get operational.
query "IKnow"
oRecord : MyRecord( status == "IKnow" )
end
rule "Print My Records"
no-loop true
dialect "java"
QueryResults $Results = ksession.getQueryResults( "IKnow" ); **
System.out.println( "We have " + results.size( ) + " Records" );
for ( QueryResultsRow row : results )
**
{
MyRecord $oRecord = ( MyRecord ) row.get( "oRecord" ); **
System.out.println( $oRecord.toString() + "\n" );
}
end
** - I get no viable alternative at input on these 3 lines. Usually missing
) or " but I don't see an issue.
Thanks!
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/query-examples-tp1787...
Sent from the Drools - Dev mailing list archive at
Nabble.com.