Project: mule
Issue MULE-7089: Write spec for new summarizer feature
Write a spec for a new feature that is compliant with the following story: Add a new message processor that would allow to totalise element attributes over a collection or stream. The element should be able to extract a value based on an expression, and then calculate on these summarizer functions: add, average, count, max, min over the value. The result should be saved into a flow variable also defined in the element. This processor should work with streams like auto paging collections. For these cases, the options are to lazily calculate the elements as the stream is consumed or to consume the whole stream. The former should be he default, and there should be an attribute allowing to change the behaviour.
Story points: 3