[rules-users] DSL - Calling Java Method , Eval functions
kingston
raja_kingston at yahoo.co.in
Thu Mar 1 08:49:27 EST 2007
Thakyou very much Michael.
I tried this and other sample rules in DSL.
]I get the errors like unable to expand, mismatched tokens etc. though
everything looks fine to me.
Please tell as how drools internally compiles a rule. The documentation
provides little info on this..
Can you give us some idea on how DrlParser, XmlParse are used for
compiling/parsing rules in DSL Format?
I get some exceptions in RuleBaseImpl and WorkingMemoryImpl ... where can i
look for info on this?
Thanks again for your quick reply.
Michael Neale wrote:
>
> For example:
>
> [when]It is raining outside and temperature is {temp}=eval(
> weatherService.isRaining() && weatherService.getTemp() == temp )
>
> Assumes there is a global "service" called weatherService.
>
> On 3/1/07, Michael Neale <michael.neale at gmail.com> wrote:
>>
>> yes, in the mapping use an "eval (... your code here ...)" and you can
>> take the mapping from the DSL sentence.
>>
>> On 2/28/07, kingston < raja_kingston at yahoo.co.in> wrote:
>> >
>> >
>> >
>> >
>> > Is it possible to write a rule in DSL to check for a value that is
>> > returned
>> > by a calls to a java method in the Condition part ?
>> >
>> > Are there any sample codes for using eval in DSL Syntax or for calling
>> > java
>> > methods ?
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> >
>> http://www.nabble.com/DSL---Calling-Java-Method-%2C-Eval-functions-tf3307311.html#a9199397
>> > Sent from the drools - user mailing list archive at Nabble.com.
>> >
>> > _______________________________________________
>> > rules-users mailing list
>> > rules-users at lists.jboss.org
>> > https://lists.jboss.org/mailman/listinfo/rules-users
>> >
>>
>>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
--
View this message in context: http://www.nabble.com/DSL---Calling-Java-Method-%2C-Eval-functions-tf3307311.html#a9249677
Sent from the drools - user mailing list archive at Nabble.com.
More information about the rules-users
mailing list