I read the manual. Example in section 4.9 is confusing. I will
switch groups.
Thanks
From: rules-dev-bounces@lists.jboss.org
[mailto:rules-dev-bounces@lists.jboss.org] On Behalf Of Wolfgang Laun
Sent: Thursday, October 28, 2010 1:17 PM
To: Rules Dev List
Subject: Re: [rules-dev] query examples
Please do not post newbie
questions on the developers' list, use rules-users@lists.jboss.org.
Rules have mandatory keywords such as "rule", "when",
"then", "end". Read the manual, please.
-W
On 28 October 2010 18:46, DDUGGAN <dennis@esptechnologies.com>
wrote:
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-tp1787542p1787542.html
Sent from the Drools - Dev mailing list archive at Nabble.com.
_______________________________________________
rules-dev mailing list
rules-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev