[rules-users] How do I assign a local variable from a function call?
Mark Proctor
mproctor at codehaus.org
Fri Aug 15 16:29:16 EDT 2008
Did you try adding types to your functions like the documentation says?
samd wrote:
> Nobody knows?
>
>
> samd wrote:
>
>> All I want to do is something simple like the following:
>>
>> $changedList: java.util.List( ) from getChangedList( $x, $y );
>>
>> Then in the same .drl file a function something like:
>>
>> function List getChangedList( $x, $y )
>> {
>> return JavaClass.staticDoSomethingToGetListMethod( $x, $y);
>> }
>>
>> I have tried doing this and I get:
>>
>> Unable to build expression for 'from' node 'getChangedList( $x, $y)'
>>
>> It looks like there is supposed to be something in between the from and
>> the function? I have been looking for examples for something like this and
>> have not found any.
>>
>> Thanks
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080815/079c54d4/attachment.html
More information about the rules-users
mailing list