A DRL function like this can be used on the LHS (e.g.. inside eval() )
function boolean print (){
System.out.println( "print print print" );
return true;
}
BUT, depending on where it is called and which Conditional Elements
preceding it happen to match, it may get called or not. This may be
the reason for your print failing to produce output.
-W
2010/9/20 Kripa Nathwani <[email protected]>:
> Hello,
>
>
>
> I need to know whether it is possible to call a function from within a
> “when” condition?
>
> I am currently trying with a simple print function just for checking but it
> is not working.
>
>
>
> Best Regards,
>
> Kripa
>
>
>
> ________________________________
> This Email may contain confidential or privileged information for the
> intended recipient (s) If you are not the intended recipient, please do not
> use or disseminate the information, notify the sender and delete it from
> your system.
>
> ______________________________________________________________________
>
> _______________________________________________
> rules-users mailing list
> [email protected]
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users