Hi, All,
I have a problem. Now I have a rule like :
(defrule rule1 (or (My_Fact_1 (name_1 ?x)) (My_Fact_2 (name_2
?y)...) )
=> (printout t ?x ?y crlf) )
If only My_Fact_1 is inserted into the engine, I want to know the value of
?x. when I run this rule, it will throw exceptions indi
Hi All, I have demand pool bean which has demands as an array.Demand has customerPriority, cusFactor, wantedDate, quantity etc.I have been able to write to match supply with a demand in the demand pool. But I want to write a rule such that for the given demands only cusPriority highest should be
Thanks Ernest Friedman for the reply.
I have one main problem here in the first mail. Can you please respond to it? Because thats kind of important design decision we have to make!
In the second mail I sent I was trying to check whether any demand has customerPriority value 1.
Thanks
Bhaska
I think bhaskar yallala wrote:
> Why this doesnt fire?
> I am passing demandPool with three demand objects and customerPriority set 1 for
> each of them?
>
> (demandPool (OBJECT ?demandPool))
> (demandPool (demands $?demands&:(member$ (eq customerPriority 1)
> $?demands ) ) )
I don'
Why this doesnt fire?
I am passing demandPool with three demand objects and customerPriority set 1 for each of them?
(demandPool (OBJECT ?demandPool))
(demandPool (demands $?demands&:(member$ (eq customerPriority 1) $?demands ) ) )
I am calling rete.run();
Thanks
Bhaskar
bhaskar yall
Hi All,
I have demand pool bean which has demands as an array.
Demand has customerPriority, cusFactor, wantedDate, quantity etc.
I have been able to write to match supply with a demand in the demand pool.
But I want to write a rule such that for the given demands only cusPriority highest shou
Keep in mind two things:
First, when matching to a literal value in Jess, the very stringent
"eq" test is used; the items have to have the same type and the same
value, so, for instance, 1.0 doesn't match 1, because the first is a
FLOAT and the second is an INTEGER.
Second, there's no way to wri
Hello,
I have the following problem.
- I'm trying to call Jess from Java program.
- I assert facts using Rete.assertFact(fact) method. The fact has an id field of
type long, so I use f.setFlotValue("id", new LongValue(factdata.getId()).
- Template for the fact does not specify data type for the