j-easy / easy-rules

The simple, stupid rules engine for Java
https://github.com/j-easy/easy-rules/wiki
MIT License
4.86k stars 1.05k forks source link

return types of a function in yml rule file #346

Open joydeb100392 opened 3 years ago

joydeb100392 commented 3 years ago

name: 'test1' description: "sample1" priority: -1 condition: "true" actions:


name: 'test2' description: "sample2" priority: 1 condition: "getValues() == true" actions:

how do we specify return types in the above getValues ? here condition status comes as false, although its (priority 1) executes its actions

joydeb100392 commented 3 years ago

name: 'test1' description: "sample1" priority: -1 condition: "true" actions: -"def Boolean getValues() { System.out.println("am here!!!"); return true; }"

want to do something like this above, is it possible to define return type here?

daidai21 commented 3 years ago

I found doc, that MVEL language not support assign function to return type.

http://mvel.documentnode.com/#function-definition