Hi,

I m trying to do this:

GeneralList and RequiredList are my global lists

rule "populate list for A with required status"

when

    $a : A()

    $list : ArrayList( size > 0 )

              from collect( B( a.name == $a.name, status == "P" ) )

then

      requiredList.addAll($list);

end

 

rule "populate list for A with general status"

when

    $a : A()

    $list : ArrayList( size > 0 )

              from collect( B( a.name == $a.name, status == "U" ) )

then

      generalList.addAll($list2);

      System.out.println("general list size " +generalList.size());

      generalList.removeAll(requiredList);

      System.out.println("general list size " +generalList.size());

End

 

But remove all does not seem to have any effect.

Any idea why????

 

Plus if I do

when

    $a : A()

    $list : ArrayList( size > 0 )

              from collect( B( a.name == $a.name, status != "U" ) ) // “!=” it just ends up giving me all the values and not what status is

 

 

Please help.

 

Thanks

M




Please consider the environment before printing this email.

Visit our website at http://www.nyse.com
*****************************************************************************
Note: The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system. Thank you. NYSE Euronext.