This data converter provides an opportunity to evaluate an expression.
The input text to the data converter can be used in the expression by using the INPUT notation, see the examples below.
The Evaluate Expression data converter is configured using the following properties:
Get the current date and time can happen with this expression:
now()If the input text is "The time is " and the current time should be added, this expression can be used:
INPUT + time(now())Numeric calculations can also be performed. For example, if the integer attribute Item.price contains 95 and the number attribute Customer.discount contain 25.0 then the discount can be computed:
(Item.price * Customer.discount)/100Likewise, if the input text is "10", it can be multiplied by 20 by using this expression:
toInteger(INPUT) + 20