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

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -