Formula Evaluator Library

Formula Evaluator is a utility to evaluate simple arithmetic and boolean expressions with binding variables, which evaluates into a numeric or boolean value.

Groovy
cost * marginPercent / (100 - marginPercent)
Groovy
quantity > 0 && revenue == 0

You can use this library wherever you need the business user to enter the expression/formula based on their needs, instead of being hardcoded into the logics.

For example, this library is used by Approval Workflow accelerator for evaluation of decision conditions.