Hi,

Let's say I have something like :

(defclass xyz x.y.com.XYZ)

(defrule "x"
 ?x<-(xyz)
=>
(...)

In the RHS, I would like to call a method that is not a bean get/set on the matched 'xyz', what would be the proper way? (If possible, this method would take a string as argument)

Thanks,

JFL

From: "Ernest Friedman-Hill" <[EMAIL PROTECTED]>
Reply-To: jess-users@sandia.gov
To: jess-users@sandia.gov
Subject: Re: JESS: Symplified syntax jess 7
Date: Thu, 2 Nov 2006 13:03:08 -0500

Only simple expressions as described in the manual are handled in this release. Parenthesized expressions are not implemented -- yet.

On Nov 2, 2006, at 5:36 AM, Negoita, Cristian wrote:

The simplified rule should look like below:


(defrule Rule-KDF-BDF-Promo-1

                (Input

{bestandFirma <> 5 && ((promotionalCode == 'M' || promotionalCode == 'X') && kontoFirma == 5)}

                )

                =>...

But his expression cannot be parsed by Jess.

---------------------------------------------------------
Ernest Friedman-Hill
Advanced Software Research          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550                 http://www.jessrules.com

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------


_________________________________________________________________
Voyez vos amis en faisant un appel vidèo dans Windows Live Messenger http://imagine-msn.com/messenger/launch80/default.aspx?locale=fr-ca

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to