Thanks for that,

My xpath function is using xpath 2.0 and there are a lot of return types
that can come back , I really didn't want to do another atomization
step. Oh well 


Amitesh Kumar |CIB Integration | Business Infrastructure Technology |
Standard Bank CIB International | Ground Floor, 20 Gresham Street,
London, EC2V 7JE 
T: +44 [0]203 145 5575 | E: [email protected]

-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of Ernest Friedman-Hill
Sent: 12 April 2010 15:58
To: jess-users
Subject: Re: JESS: Comparing slots


On Apr 12, 2010, at 10:19 AM, Kumar, Amitesh wrote:

> StD out
> as you can see the result of the rule give me two facts with 
> java.lang.String as the partyid ==> f-2 (MAIN::party1ID (partyId 
> <Java-Object:java.lang.String>)) ==> f-3 (MAIN::party2ID (partyId 
> <Java-Object:java.lang.String>))
>
>



I think that's the problem right there. These are of RU.JAVA_OBJECT type
instead of RU.STRING. Jess can work with String like this just fine in
many contexts, but they're not considered equal for pattern matching.
Generally, you want to write UserFunctions so that they return Jess
types whenever possible. Change the Value object constructed by your
UserFunction to explicitly use RU.STRING as the type, and you should be
all set.


---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences, Sandia National Laboratories PO Box
969, MS 9012, 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].
--------------------------------------------------------------------



*****************************************************************************
More information on Standard Bank is available at www.standardbank.com

Everything in this email and any attachments relating to the official business 
of Standard Bank Group Limited and any or all subsidiaries, ("the Company"), is 
proprietary to the Company. It is confidential, legally privileged and 
protected 
by relevant laws. The Company does not own and endorse any other content. 
Views and opinions are those of the sender unless clearly stated as being 
that of the Company.

The person or persons addressed in this email are the sole authorised 
recipient. Please notify the sender immediately if it has unintentionally, 
or inadvertently reached you and do not read, disclose or use the content 
in any way and delete this e-mail from your system. 

The Company cannot ensure that the integrity of this email has been
maintained nor that it is free of errors, virus, interception or interference. 
The sender therefore does not accept liability for any errors or omissions 
in the contents of this message which arise as a result of e-mail transmission. 
If verification is required please request a hard-copy version. This message 
is provided for informational purposes and should not be construed as a 
solicitation or offer to buy or sell any securities or related financial 
instruments.
*****************************************************************************


This message has been scanned for viruses by BlackSpider MailControl - 
www.blackspider.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].
--------------------------------------------------------------------

Reply via email to