JESS: Multislot problem

2004-08-17 Thread Mehta, Chirag (IT)
Title: Multislot problem Hello, I am having a slight problem which is really really bugging me: I have this rule: (defrule bondMVMaxPCOutstanding::calcifnc (declare (auto-focus TRUE)) (rulesfired (rules bondMVMaxPCOutstanding)) ?b - (grouped-facts (partitionname cusip)

AW: JESS: Multislot problem

2004-08-17 Thread Lars Hübner
I think Chirak wrote: ?fact - (MAIN::findwherecontains productType CVBND ?fc) in the rule always stops the rule from activating. I do not understand why. Is it possible it stops because youve forgotten to enter the $ in front of the ?fc-multislot-variable? Lars Hübner FH

RE: JESS: Multislot problem

2004-08-17 Thread Mehta, Chirag (IT)
Hello, I have tried it with $?fc with no luck. I have eventually figured out that if I don't use ?fact but in its place (MAIN::findwherecontains productType CVBND ?fc) it works fine but I do not know why! Chirag From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lars

RE: JESS: Multislot problem

2004-08-17 Thread Jason Morris
I think that Chirag wrote: ?fact - (MAIN::findwherecontains productType CVBND ?fc) in the rule always stops the rule from activating. Hi Chirag, You might be violating the Zen of Jess http://herzberg.ca.sandia.gov/jess/zen.shtml. In your code ?fact - (MAIN::findwherecontains productType

Re: JESS: few questions

2004-08-17 Thread bhaskar yallala
Thanks Ernest Friedman! I removed m_name, it worked fine! [EMAIL PROTECTED] wrote: I think [EMAIL PROTECTED] wrote: Is there a way to call one rule from another., instead of recreating non-similar conditions in another rule too? If you're worried about duplication on the right-hand-side of

RE: JESS: few questions [control pattern example]

2004-08-17 Thread Jason Morris
I think that Bhaskar wrote: Can you give me an example of control-patterns? Hi Bhaskar, Sure thing. Try saving and running this batch file. (clear) (watch all) (defrule rule-1 Fires only if a (control-1) fact is present. ;; You might