@Test public void invokeParamNotCollection() { FunctionTestUtil.assertResult(flattenFunction.invoke(BigDecimal.valueOf(10.2)), Collections.singletonList(BigDecimal.valueOf(10.2))); FunctionTestUtil.assertResult(flattenFunction.invoke("test"), Collections.singletonList("test")); }
public FEELFnResult<List> invoke(@ParameterName( "list" ) Object list) { if ( list == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "list", "cannot be null")); } final List<Object> result = new ArrayList<>(); flattenList( list, result ); return FEELFnResult.ofResult( result ); }
FlattenFunction extends BaseFEELFunction { public FEELFnResult<List> invoke(@ParameterName( "list" ) Object list) { if ( list == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "list", "cannot be null")); } final List<Object> result = new ArrayList<>(); flattenList( list, result ); return FEELFnResult.ofResult( result ); } }
FlattenFunction extends BaseFEELFunction { public FEELFnResult<List> invoke(@ParameterName( "list" ) Object list) { if ( list == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "list", "cannot be null")); } final List<Object> result = new ArrayList<>(); flattenList( list, result ); return FEELFnResult.ofResult( result ); } FlattenFunction(); }
FlattenFunction extends BaseFEELFunction { public FEELFnResult<List> invoke(@ParameterName( "list" ) Object list) { if ( list == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "list", "cannot be null")); } final List<Object> result = new ArrayList<>(); flattenList( list, result ); return FEELFnResult.ofResult( result ); } FlattenFunction(); FEELFnResult<List> invoke(@ParameterName( "list" ) Object list); }
FlattenFunction extends BaseFEELFunction { public FEELFnResult<List> invoke(@ParameterName( "list" ) Object list) { if ( list == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "list", "cannot be null")); } final List<Object> result = new ArrayList<>(); flattenList( list, result ); return FEELFnResult.ofResult( result ); } FlattenFunction(); FEELFnResult<List> invoke(@ParameterName( "list" ) Object list);  }