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

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

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

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