JESS: few questions

2004-08-16 Thread BYALLALA
Is there a way to call one rule from another., instead of recreating non-similar conditions in another rule too? Is it required for dynamic bean to have m_name as property and a constructor? Thanks Bhaskar To unsubscri

RE: JESS: few questions

2004-08-16 Thread Jason Morris
I think that Bhaskar wrote: >> Is there a way to call one rule from another. Hi Bhaskar, First, make sure that you're not trying to procedurally control the rules from firing, otherwise you violate the Zen of Jess http://herzberg.ca.sandia.gov/jess/zen.shtml. You might want to try using the "cont

Re: JESS: few questions

2004-08-16 Thread ejfried
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 rules, you can write a deffunction, and call it on the right-hand-side of both

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 rul

RE: JESS: few questions

2004-08-17 Thread bhaskar yallala
Hi Jason,   Thanks for the answers. Can you give me an example fo control-pattern?   Thanks Bhaskar Jason Morris <[EMAIL PROTECTED]> wrote: I think that Bhaskar wrote:>> Is there a way to call one rule from another.Hi Bhaskar,First, make sure that you're not trying to procedurally control the rules

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