1

我正在为我们的项目仔细阅读 Kogito,并且正在构建一个原型。我注意到的是,当输入 json 不符合接口合同做出决定时,kogito 会响应错误详细信息。它还提供决策执行细节。

有没有办法打开响应中的决策结果,因为我们需要它用于审计目的。

每个响应都需要此跟踪

"decision-results": [
        {
            "decision-id": "_260E6369-DE61-464C-889B-04B24776D47E",
            "decision-name": "A",
            "result": 200,
            "messages": [],
            "status": "SUCCEEDED"
        },
        {
            "decision-id": "_1728962B-CF7A-4EEF-9AFB-50C961A3AB0B",
            "decision-name": "D",
            "result": null,
            "messages": [
                {
                    "level": "ERROR",
                    "dmn-message-severity": "ERROR",
                    "message": "Unable to evaluate decision 'D' as it depends on decision 'C'",
                    "message-type": "REQ_NOT_FOUND",
                    "source-id": "_1728962B-CF7A-4EEF-9AFB-50C961A3AB0B"
                }
            ],
            "status": "SKIPPED"
        },
        {
            "decision-id": "_433DCDBB-3674-4EF9-96BC-B766B9CB54EC",
            "decision-name": "C",
            "result": null,
            "messages": [
                {
                    "level": "ERROR",
                    "dmn-message-severity": "ERROR",
                    "message": "Required dependency 'Subject Loan' not found on node 'C'",
                    "message-type": "REQ_NOT_FOUND",
                    "source-id": "_433DCDBB-3674-4EF9-96BC-B766B9CB54EC"
                }
            ],
            "status": "SKIPPED"
        },
        {
            "decision-id": "_8468FF9C-1DE1-4E93-9828-088F7690B18F",
            "decision-name": "B",
            "result": 3220,
            "messages": [],
            "status": "SUCCEEDED"
        }
    ]
4

0 回答 0