[rules-users] use a boolean returned type function in "when", doesn't work, why?
mrj
m1e1r1r1y at 163.com
Fri Oct 11 20:36:38 EDT 2013
ok,thank you ,let me have a try, your adverse is helpful, thank you!
At 2013-10-11 22:17:05,"Wolfgang Laun" <wolfgang.laun at gmail.com> wrote:
>Read the section on the "Conditional Element eval" in the Expert
>manual (and more of the same manual, especially Chapter 4, Rule
>Language Reference).
>
>-W
>
>On 11/10/2013, merry0900 <m1e1r1r1y at 163.com> wrote:
>>
>> my drl file like this:
>> import ********
>> function boolean isNotNull(String a){
>> if(a!=null){
>> return true;}
>> return false;
>> }.
>> rule a
>> when
>> isNotNull("aaaa");
>> then
>> // mycode
>> end
>>
>> how i could use like this, thank you all
>>
>>
>>
>> --
>> View this message in context:
>> http://drools.46999.n3.nabble.com/use-a-boolean-returned-type-function-in-when-doesn-t-work-why-tp4026339.html
>> Sent from the Drools: User forum 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
More information about the rules-users
mailing list