java - Calling a custom function in drools lhs -
i need write custom function checks on facts in drools working memory , returns number.
as far i've figured out - need import helper class has custom function.
now how access working memory function? , how call function in lhs?
functions can't access working memory. bind required facts in rule , send them parameters function.
a better approach use query instead of function. can read more queries in drools' documentation: http://docs.jboss.org/drools/release/6.3.0.beta1/drools-docs/html_single/index.html#querysection
Comments
Post a Comment