apache / incubator-kie-kogito-examples

Kogito examples - Kogito is a cloud-native business automation technology for building cloud-ready business applications.
http://kogito.kie.org
255 stars 380 forks source link

Controlling output from kogito-drools #706

Open jiwonjoung opened 3 years ago

jiwonjoung commented 3 years ago

I am able to run the dmn-quarkus-example and get the output from model. I am wondering how to customize the format of the output from the model.

For example, I want to remove the original inputs from the response. I also want to add a 'status' field in the returned JSON.

evacchi commented 3 years ago

AFAIK there is no way to do this at the moment, but we could file a feature request. I think that when we will support custom definition of REST endpoints then you may just expose a custom POJO in your endpoint signature cc @tarilabs

tarilabs commented 3 years ago

cc @danielezonca

Since the Swagger/OAS generation is based on the specification conventions, this use-case can only be achieved by manual customisation of (other) REST endpoints by the developer. e.g.: skip REST generation, manually develop REST endpoint using Quarkus as desired.

danielezonca commented 3 years ago

I think there are way to approach the requirement: