Skip to main content
Version: Next

Math Expression


Description

A pipeline element that evaluates Math expressions using the Apache Commons JEXL library.


Required input

This processor works with any input stream that contains numerical values.


Configuration

A math expression can be defined using the JEXL syntax (see https://commons.apache.org/proper/commons-jexl/index.html).

Example:

flow_rate*2

It is also possible to use methods from java.lang.Math:

Math.pow(flow_rate^2)

All fields from th einput stream are available as variables.

Output

For each expression, an additional field is created in the output stream. Field names are user-defined.