通过rest-engine启动时从Camunda进程返回数据
我有一个名为 PartnerPortal 的 Camunda 进程。它接受 3 个变量,因为
{
"variables": {
"userId" : {
"value" : "user1"
},
"userName" : {
"value" : "childProtect"
},
"accountType" : {
"value" : "ideamart"
}
}
}
我使用 Camunda Rest-engine 和端点 “engine-rest/process-definition/key/{processId}/start” 调用此流程一个单独的 spring-boot 应用程序。我的要求是,我想在进程完成时将数据从 Camunda 引擎返回到外部 spring-boot 应用程序(就像常规 API 调用一样)。
例如,如果我使用 "engine-rest/process-definition/key/partnerPortal/start" 启动流程,我希望从 Camunda 引擎接收到 spring-boot 应用程序的 JSON 数组。
I have a Camunda process called partnerPortal. This accepts 3 variables as,
{
"variables": {
"userId" : {
"value" : "user1"
},
"userName" : {
"value" : "childProtect"
},
"accountType" : {
"value" : "ideamart"
}
}
}
I call this process using Camunda rest-engine with the endpoint "engine-rest/process-definition/key/{processId}/start" using a separate spring-boot application. My requirement is, I want to return data from the Camunda-engine to the external spring-boot application when the process completes (Just like a regular API call).
For example, if I start the process using "engine-rest/process-definition/key/partnerPortal/start", I want to receive a JSON array from the Camunda engine to the spring-boot application.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
https://docs.camunda .org/manual/7.16/reference/rest/process-definition/post-start-process-instance/
请求正文:
指示是否应返回流程实例在执行期间使用的变量。默认值: false
请求
POST /process-definition/aProcessDefinitionId/start
POST /process-definition/key/aProcessDefinitionKey/start
请求正文:
响应
https://docs.camunda.org/manual/7.16/reference/rest/process-definition/post-start-process-instance/
Request Body:
Indicates if the variables, which was used by the process instance during execution, should be returned. Default value: false
Request
POST /process-definition/aProcessDefinitionId/start
POST /process-definition/key/aProcessDefinitionKey/start
Request body:
Response