Skip to content

[Feature][API] process definition delete api add check process instance is already running. #3581

@zhuangchong

Description

@zhuangchong

Describe the feature
To delete a workflow definition in the workflow definition page, check whether there is a running workflow instance. If there is a running workflow instance, it is not allowed to delete it.

Is your feature request related to a problem? Please describe.
At present, when there are running workflow instances and task instances, workflow definitions can be deleted successfully. After deletion, the running workflow instance and task instance cannot be found on the page.

Describe the solution you'd like
The workflow definition deletion function is added to check whether there are running workflow instances according to the workflow definition ID and running status. If there are running workflow instances, they are not allowed to be deleted, and a friendly prompt will be given.


描述功能

在工作流定义页面中删除某一个工作流定义,需先检查一下是否有正在运行的工作流实例,如果有正在运行的工作流实例,不允许删除。

您的功能请求是否与问题相关?请描述一下

目前,当有正在运行的工作流实例和任务实例,工作流定义是可以被删除成功的。删除后,正在运行的工作流实例和任务实例在页面也查询不到。

描述你想要的解决方案

工作流定义删除功能,新增根据工作流定义ID和运行状态,检查是否有正在运行的工作流实例,如果有正在运行的工作流实例,不允许删除,友情提示。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions