How to calculate the sum of a list of integer in Rules In a Rules component I have a list of integer (as variable data type). I have to calculate the sum of items and to expose the result. Any suggestions?
I found the solution.


Add a variable (integer) "total", for example.
Loop the list of integers:


Calculate a value, input 1: [total], input 2: [line-item], return: "result".
Set a data value, data: [total], value: [result].

Outside of the loop, the [total] value is still available.