GH-623 Fix applicatioin initialization when defaulting function name

IN the event when we have a single supplier, and SupplierExporter provides  'origin|' as its name we attempt to auto-discover the other function name which framework defaults to 'functionRouter' when it should not. This fixes it.

Resolves #623
This commit is contained in:
Oleg Zhurakousky
2021-01-11 12:05:28 +01:00
parent 25462ec6cd
commit 1d625077e8

View File

@@ -245,7 +245,7 @@ public class SimpleFunctionRegistry implements FunctionRegistry, FunctionInspect
}
String determinImpliedDefinition(Set<String> fNames, String originalDefinition) {
if (fNames.size() == 2) {
if (!fNames.contains(RoutingFunction.FUNCTION_NAME) && fNames.size() == 2) {
Iterator<String> iter = fNames.iterator();
String n1 = iter.next();
String n2 = iter.next();