Is there a way to enable trace to display the sequence of decisions executed for a DMN in Kogito?

我只是一个虾纸丫 提交于 2020-03-25 18:37:05

问题


I finally got my sample dmn-quarkus example running. Is there a property that enables the trace, such a way it prints the sequence of decisions executed?

I noticed that when I provide a incorrect JSON for my DMN model, Kogito responds with a detail response, telling me which decision failed.

This is awesome! Is there a property to turn on to get the details in each response?


回答1:


Kogito is based on a domain-model first approach to code generation

Kogito ergo domain

Kogito adopts to your business domain rather than the other way around [...]

this means the automatically code-generated API will always take the "shape" of the input/output context of the DMN model, and no longer the v7.x kie-server approach of a generic API.

The information you obtain during error is meant to provide an analogous to a stacktrace.

You can always leverage the Kogito API programming model to build the REST service yourself, in the way better fit your specific business requirement --shall that be provide a list of DMNDecisionResult(s). For instance a pragmatic approach could be to inspect the automatically generated code, and then code a bespoke service, based on this one.

We are looking into Audit functional requirements, but that is not provided out of the box yet. We always welcome community feedback, especially even more in this very early versions! Don't hesitate to join the community on our mailing-list or raise a JIRA ticket to take part of the conversation, the team will be glad to look further into it considering community feedback and suggestions!



来源:https://stackoverflow.com/questions/60453840/is-there-a-way-to-enable-trace-to-display-the-sequence-of-decisions-executed-for

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!