flowable / flowable/flowable-engine

Process instance suspend itself, the process instance can never be activated.

Open
#2,019 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
9.5k
Forks
2.9k
Avg merge
7h 8m
Merged PRs (30d)
2

Description

**Describe the bug**
When **I use a execution listener to suspend the current process instance**, all the executions, tasks, jobs will be suspended.
However, after the execution listener completed, **the process seems to create a new execution or task, and the new execution or task has not been suspended.**
By this time, **the process instance can never be activated**, beacuse when I try to activate the process, the new task has not been suspended, so it also can not be activated, and throw the FlowableException "Cannot set suspension state active for xxx : already in state active."
**What's more, I can't even delete the current process instance, because it is suspended.**

**Expected behavior**
However, I use Signal Intermediate Catching Event to implement my requirement.
But I think it is better to do a validation when execute the suspend commend, and if a process instance try to suspend itself, throw an exception to warn the user this error usage.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.