[rules-users] RE: Need DRL authoring Help
John.Tal at gxs.com
John.Tal at gxs.com
Wed Apr 4 11:42:37 EDT 2007
Ok, Thanks for the help on the drl syntax.
So this works.
rule "UCCnet_DVE_Depth_All"
when
catalogObject : CatalogObject( )
eval( catalogObject.getElementValue("depth") == null ||
catalogObject.getElementValue("depth") == "" )
then
logWriter.logDebug("Package Depth is Blank");
end
But how do I get the drl parser to accept something like this:
rule "UCCnet_DVE_Depth_All"
when
catalogObject : CatalogObject( )
String s = catalogObject.getElementValue("depth");
eval( s == null || s == "" )
then
logWriter.logDebug("Package Depth is Blank");
end
I am getting an Unexpected token 's' InvalidRulePackage
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070404/ea624314/attachment.html
More information about the rules-users
mailing list