[rules-users] exists...

Heyns, Juan Juan.Heyns at lonplats.com
Mon Aug 27 04:02:27 EDT 2007


Hey guys,



Is there any timeframe attached to when 4.0.1 will be out? I am working
on a project that is using quite a bit of static functions in the LHS, I
believe there is bugs that was mentioned before with MVEL concerning
this.



Regards

Juan



From: rules-users-bounces at lists.jboss.org
[mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Edson Tirelli
Sent: 26 August 2007 01:35 PM
To: Rules Users List
Subject: Re: [rules-users] exists...




    Manukyan

    If it is not firing, it is a bug. Although we fixed several related
bugs for 4.0.1 that shall be out soon.
    If you can provide a test case and open a Jira, I can do some
further debugging. Essentially, the difference between the rules is that
expression in the first rule is being converted into an MVEL expression,
because of the nested accessors, while the second is a pure drools
expression.

    []s
    Edson

2007/8/25, Manukyan, Sergey <SManukyan at lear.com>:

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.


_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




--
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  Office: +55 11 3529-6000
  Mobile: +55 11 9287-5646
  JBoss, a division of Red Hat @ www.jboss.com



"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/20070827/3956c51f/attachment.html 


More information about the rules-users mailing list