栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

部署flowable遇到问题:curl: (26) couldn‘t open file “holiday-request.bpmn20.xml“

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

部署flowable遇到问题:curl: (26) couldn‘t open file “holiday-request.bpmn20.xml“

部署flowable遇到问题:curl: (26) couldn’t open file “holiday-request.bpmn20.xml”

部署过程中遇到问题1:

解决办法:添加holiday-request.bpmn20.xml的完整路径或者把该文件复制到当前cUrl执行的路径
问题2:

curl: (3) Port number ended with 'h'
curl: (6) Could not resolve host: variables
curl: (3) [globbing] bad range specification in column 2
curl: (3) [globbing] unmatched brace in column 1
curl: (6) Could not resolve host: value
curl: (6) Could not resolve host: John Doe
curl: (3) [globbing] unmatched close brace/bracket in column 1
curl: (3) [globbing] unmatched brace in column 1
curl: (3) Port number ended with 'n'
curl: (6) Could not resolve host: 7
curl: (3) [globbing] unmatched close brace/bracket in column 1
{"timestamp":"2021-10-29T03:37:02.496+00:00","status":404,"error":"Not Found","path":"/flowable-rest/service/runtime/process-instance"}

背景:
在学习 flowable 工作流的官方文档时, https://tkjohn.github.io/flowable-userguide/ 2.4.3. 启动流程实例
复制文档的

curl --user rest-admin:test -H "Content-Type: application/json" -X POST -d '{ "processDefinitionKey":"holidayRequest", "variables": [ { "name":"employee", "value": "John Doe" }, { "name":"nrOfHolidays", "value": 7 }]}' http://localhost:8080/flowable-rest/service/runtime/process-instances

解决方案:
cURL命令后不工作在Windows命令提示符,因为使用单引号,

把单引号改成双引号,把类似 { “name”:“nrOfHolidays”, “value”: 7 } 中的双引号使用 ‘’ 转义一下.即可. 修改后完整版如下:

curl --user rest-admin:test -H "Content-Type: application/json" -X POST -d "{ "processDefinitionKey":"holidayRequest", "variables": [ { "name":"employee", "value": "John Doe" }, { "name" :"nrOfHolidays", "value": "7" }]}" http://localhost:8080/flowable-rest/service/runtime/process-instances

参考博客:flowable部署时遇到的问题:curl: (26) couldn‘t open file “holiday-request.bpmn20.xml“
使用flowable 6.1.2 REST API 运行请假审批流程
cURL命令后不工作在Windows命令提示符,因为使用单引号

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/389099.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号