-
Enhancement
-
Resolution: Done
-
Minor
-
None
-
1.32.0.Final
-
None
-
False
-
None
-
False
-
---
-
---
-
2023 Week 03-05 (from Jan 16), 2023 Week 06-08 (from Feb 6), 2023 Week 09-11 (from Feb 27), 2023 Week 12-14 (from Mar 20), 2023 Week 15-17 (from Apr 10), 2023 Week 24-26 (from Jun 12), 2023 Week 18-20 (from May 1), 2023 Week 21-23 (from May 22)
On some situations it is useful to overwrite rest templates, for instance a spring app that uses WebFlux framework, but cloneForDMNResult method from DecisionRestResourceGenerator class seeks for first return statement on cloned method generating a wrong template class, for example following expected dmn_dmnresult cloned method
public Mono<ResponseEntity<?>> dmn_dmnresult(@RequestBody(required = false) InputSet variables, ServerHttpResponse httpResponse) {
return Mono.fromCallable(() ->
...
return buildDMNResultResponse(result);
);
}
ends up being like:
public Mono<ResponseEntity<?>> dmn_dmnresult(@RequestBody(required = false) InputSet variables, ServerHttpResponse httpResponse) {
return buildDMNResultResponse(result); //literally one line, obviously not compiling
}