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 <> 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 <> 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:
Sent from the drools - user mailing list archive at

rules-users mailing list