[rules-users] exists...

Manukyan, Sergey SManukyan at lear.com
Sat Aug 25 22:32:06 EDT 2007


Folks,

 

Using 4.0 GA.

 

Need to have a rule that executes when there exists a Supplier with
business status == active. I am inserting Supplier in working memory.

 

I did that :

 

rule #1

when

            exists( Supplier( businessStatus.status.isActive == true ) )

then

            System.out.println("FOUND!!!!");

End

 

 

But it doesn't work....

 

Although other rules like if there is supplier with name = "SOME NAME" -
they work :

 

rule #2

when

            exists( Supplier( name == "SOME NAME" ) )

then

            System.out.println("FOUND!!!!");

End

 

 

 

Any ideas how to make rule #1 work.... ?

 

Thanks,

 

Sergey

 

 



**********************
** LEGAL DISCLAIMER **
**********************

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070825/b2b5674b/attachment.html 


More information about the rules-users mailing list