我正在使用kie-server测试业务中心,两者都在docker中运行,都是"showcase“版本。我用“牛”模型(pic)和决策表(pic)在商业中心做了一个项目。构建和部署成功。
在发送带有请求体的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
}我有什么地方做错了吗?为什么我的请求不能继续?
发布于 2021-04-29 17:15:08
我认为在您的请求中需要规范的类名com.axaukraine.Cow,但您只使用了简单的名称Cow。
{
"commands:": [
{
"insert": {
"object": {
"com.axaukraine.Cow": {
"name": "cow1",
"age": 11
}
},
"out-identifier": "Cow",
"return-object": true
}
},
{
"fire-all-rules": {}
}
]
}https://stackoverflow.com/questions/66601655
复制相似问题