Hi,
in our project, we are calling match() via setInterval() on a session with initially asserted facts.
We want to avoid using matchUntilHalt(), yet this way we observe that our rules fire only the first time match() is called - unless we reassert all facts during each iteration, which is no option either.
Any ideas as to what might be the cause and solution to our problem are most welcome.
Thanks in advance!
Use modify() to all your facts before calling match() again.
Multiple calls to match, does not reset your facts, unless you create new session before match().
Hi, in our project, we are calling match() via setInterval() on a session with initially asserted facts. We want to avoid using matchUntilHalt(), yet this way we observe that our rules fire only the first time match() is called - unless we reassert all facts during each iteration, which is no option either. Any ideas as to what might be the cause and solution to our problem are most welcome. Thanks in advance!