use of org.kie.kogito.jitexecutor.dmn.DMNEvaluator in project kogito-apps by kiegroup.
the class SchemaResource method schema.
@POST
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public Response schema(MultipleResourcesPayload payload) {
DMNEvaluator dmnEvaluator = DMNEvaluator.fromMultiple(payload);
DMNModel dmnModel = dmnEvaluator.getDmnModel();
DMNOASResult oasResult = DMNOASGeneratorFactory.generator(dmnEvaluator.getAllDMNModels()).build();
return fullSchema(dmnModel, oasResult, false);
}
use of org.kie.kogito.jitexecutor.dmn.DMNEvaluator in project kogito-apps by kiegroup.
the class SchemaResource method form.
@POST
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Path("form")
public Response form(MultipleResourcesPayload payload) {
DMNEvaluator dmnEvaluator = DMNEvaluator.fromMultiple(payload);
DMNModel dmnModel = dmnEvaluator.getDmnModel();
DMNOASResult oasResult = DMNOASGeneratorFactory.generator(dmnEvaluator.getAllDMNModels()).build();
return formSchema(dmnModel, oasResult);
}
Aggregations