- All Implemented Interfaces:
- Collector<T,List<T>,Object>
public class SingleValueOrContextCollector<T>
extends Object
implements Collector<T,List<T>,Object>
Custom DT collector: it only 1 output, return the output itself.
If more than 1 output, return a FEEL Context (hashmap) with name of the output and its value.
From the specs:
The output expression of a rule in a single output decision table is simply the rule's output entry. The output
expression of a multiple output decision table is a context with entries composed from the output names and
the rule's corresponding output entries.