[rules-users] LHS use of from with a static method

Heyns, Juan Juan.Heyns at lonplats.com
Thu Aug 2 07:44:38 EDT 2007


Hello everyone



I have a rule:



rule "my rule name"

                no-loop

                when

                                Object1( $property1: property1 );

                                Object2( testvalue == "Test String" )
from StaticClass.aMethod($property1)

                then

                                aFunction();

end





I cannot seem to get the StaticClass.aMethod to return anything but
null. I have a test case for this method somewhere else and it seems to
work fine. Is this a legal operation? Could it be that the version I am
using (jbossrules-4.0.0.11754MR2-bin) still does not have support for
this?



Regards

Juan





"Employees of Lonmin Platinum ("Lonplats") are not authorised to conclude
electronic transactions or to enter into electronic agreements on behalf
of Lonplats. Any electronic signature (other than an advanced electronic
signature as defined in the Electronic Communications and Transactions
Act of 2003) added to a data message (such as an email or an attachment
to an (email) ostensibly on behalf of Lonplats by a Lonplats employee shall
not be legally binding on Lonplats and Lonplats shall incur no liability of
any nature whatsoever, directly or indirectly, arising from such act on the
part of it's employee. It is further recorded that nothing (other than an
advanced electronic signature) inserted into any data message
emanating from Lonplats shall be construed as constituting an electronic
signature"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070802/6efbd370/attachment.html 


More information about the rules-users mailing list