I am using drools 3.0.5
I have a function :
<function return-type="JobRequestOptions" name="getJob">
<parameter identifier="msg" type="Message" />
<body>
JobRequestOptions jro=new JobRequestOptions();
System.out.println("hello world");
return jro;
</body>
</function>
The following syntax
<eval>getJob(m).hasOption(null)==false</eval>
gives the following error :
org.drools.rule.InvalidRulePackage: Rule Compilation error The method
getJob(Message) is undefined for the type Rule_Loop_Test_0
However when I change the <eval> tag to the following :
<eval>( getJob(m) ).hasOption(null)==false</eval>
IT WORKS FINE (Here I have put the function in brackets with spaces in
between.It gives me an error if I dont put spaces in between)
Could someone explain whether it is a bug or a syntax definition
--
View this message in context:
http://www.nabble.com/Syntax-query-tf3387628.html#a9429717
Sent from the drools - user mailing list archive at
Nabble.com.