java - How to terminate Camunda running process?
问题描述
Have an existing bpmn
process that already does some work:
- processes received payload;
- triggers sub-process;
- creates a few task for manual user processing;
- etc.
And now I need to find a way how to stop/terminate/cancel running workflow (I am not sure which action is preferable in terms of Camunda
) because the action that we expect to be done by Camunda
process already successfully performed by another external system.
Camunda docs say that I can start/stop/cancel process via REST API
or just via Java API
but I am looking on way of visualization of possibility to cancel/terminate process via Camunda Modeller
.
How can I do it?
I see that multiple types of events supported: Start
, End
, Intermediate
but which one can suite my needs?
解决方案
将事件子流程放置在所需范围内(完整的父流程,就在画布上)。使用消息或条件类型的中断开始事件(实线)。将其直接连接到结束事件,或连接到您想要在进程完全终止之前执行的其他任务。中断启动事件在触发时将取消周围范围(父进程)中的任何标记。您可以通过设置流程数据(条件启动事件)或通过消息(消息启动事件)例如 REST API 来触发它。
https://camunda.com/bpmn/reference/#activities-event-subprocess
推荐阅读
- visual-studio - Visual Studio 2019 始终重建,不进行更改
- sql - 将所有终端 ID 映射到以前的 ID
- beautifulsoup - bs4 获取标签的值
- python-3.x - 狮身人面像找不到熊猫
- html - 如何将子元素的宽度设置为与祖父元素相同
- azure - Azure AD - 使用电子邮件作为备用 ID 登录
- angular - 使用 @ViewChild 时未定义 ElementRef
- php - 如何让样式表显示在 index.php 上
- python - 如何在 Python 中获得多列的总和?
- python - 无法将 Lambda 函数分配给方法