[英]FAILURE answer from kie-server (using kie-server-showcase and business-central-workbench-showcase)
我正在使用在 docker 中運行的 kie-server 測試業務中心,兩者都是“展示”版本。 我已經用“Cow”model(圖片)和決策表(圖片)在商業中心制作了項目。 構建和部署成功。
發送帶有請求正文的 json 后
{
"commands:": [
{
"insert": {
"object": {
"Cow": {
"name": "cow1",
"age": 11
}
},
"out-identifier": "Cow",
"return-object": true
}
},
{
"fire-all-rules": {}
}
]
}
到端點http://localhost:8180/kie-server/services/rest/server/containers/instances/Cow
收到錯誤:
{
"type": "FAILURE",
"msg": "Bad request, no commands to be executed - either wrong format or no data",
"result": null
}
有什么我做錯了嗎? 為什么我的請求沒有進行?
我認為在您的請求中,您需要規范的 class 名稱com.axaukraine.Cow
,但您只使用簡單的名稱Cow
。
{
"commands:": [
{
"insert": {
"object": {
"com.axaukraine.Cow": {
"name": "cow1",
"age": 11
}
},
"out-identifier": "Cow",
"return-object": true
}
},
{
"fire-all-rules": {}
}
]
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.