Is it possible to set Jess into a mode where every activation triggers a
run? I have tried the following, but it doesn't work, i.e. rules are
only fired when I call engine.run() subsequently.

  engine.addJessListener(new JessListener()
  {
    public void eventHappened(JessEvent event)
      throws JessException
    {
      switch (event.getType())
      {
        case JessEvent.ACTIVATION:
          engine.run(); // Doesn't do anything!
          break;
        ...
      }
    }
  });

--
Eric Jain

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