flowable / flowable-engine

A compact and highly efficient workflow and Business Process Management (BPM) platform for developers, system admins and business users.
https://www.flowable.org
Apache License 2.0
8k stars 2.62k forks source link

executing resolvingTask(taskId) and complete(taskId) next will generate two pending tasks #3932

Closed lichengliang1 closed 4 months ago

lichengliang1 commented 4 months ago

1111

Admin signs in A1 for the test user: processEngine.getTaskService().delegateTask(task.getId(), “test”); After the test user completes the task: processEngine.getTaskService().resolveTask(task.getId(),this.variables); processEngine.getTaskService().complete(task.getId(), this.variables, this.localScope); The task returns to admin, But admin will have two A1 pending tasks