I think Mark Egloff wrote:
> Thank you again for your answers. I snipped some text and ask some 
> more questions.
> 
> >> Could you also provide me an example how I could increment a value
> >> "amount" for an unordered fact like this:
> >> 
> >> (event (type A) (amount 2)) 
> >> 
> > This is an unordered fact, so you may be getting your terms mixed up.
> 
> I also have written that is an unordered fact, however does not matter.


I was confused because in the preceding part of you message you were
asking for a way to modify an ordered fact, and so I wasn't sure if
there was a terminology problem.

> 
> I am looking still for a simpler way to increment a value from an
> unordered a fact. Exists there one in Jess?. If not, exists a way to
> access a fact through java and modify it while this fact is already in
> Jess asserted?

I'm not sure what you're asking -- something besides this?

(defrule my-rule
  (?e <- event (type A) (amount ?a))
  =>
  (modify ?e (amount (+ ?a 1))))

> 
> This requires also that the rule is a kind of trigger and executes a
> java code. Is this possible?   


It's easy to execute Java code from Jess, as described in the manual.

---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550         http://herzberg.ca.sandia.gov

--------------------------------------------------------------------
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