What is the best place to implement custom function like substraction of two field values of a fact in BRMS 6 ?

Solution Unverified - Updated -

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 as if (a-b)>5 . Where a and b are 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content