What is the best place to implement custom function like substraction of two field values of a fact in BRMS 6 ?
Issue
- When choosing formula in modifying constraints for fact, what is the best way to implement following function?
e.g. User needs to calculate the difference between 2 integer numbers. The condition can be written asif (a-b)>5. Whereaandbare integer fields of the same fact. - What is the best practice to do implement it? Should users write a function for that or there are built-in sum/average/count etc. functions?
Environment
- Red Hat JBoss BRMS (BRMS)
- 6.3.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.