am inserting numerous facts in jbpm rules matching , once rules matched appropriate actions needed. number of facts numerous, size of 20k facts in memory jbpm takes following time following things:
start process - 3-4 seconds insert fact - 4+ seconds fireallrules - 3-4 seconds.
can please me understand cause these delays.
starting process may include rule compilation, depends on number of rules or lines of code in drl file(s).
the 4+ seconds due evaluation of rule conditions forall inserted facts. of course, not depends on number of facts, on complexity of left hand side code (conditions). whether 4+ sec adequate cannot said without inspecting rules.
you can track firing of rules means in terms of right hand side code (consequences). have coded this, , can monitor using event listener. if slow, check code does, , how.
Comments
Post a Comment