Unpause a Workflow User Task

0
Hi all!   I'm struggeling to unpause a workflow user task that has been successfully paused by a microflow. Here is what I do:   I have an approval object, where the Workflow object is linked to. I retrieve the workflow. I then retrieve all user tasks related to the workflow. With "Change Workflow state" activity I choose the operation "pause workflow". Then I also use "change object" activty to change the state of the related user tasks of the workflow to "paused".   That works fine and the user can see that his user tasks has been set to pause.    To unpause the workflow I use the same activity "Change workflow state" and choose the operation "unpause workflow". And again, I try to set the state of related user tasks to "InProgress" manually by "Change Object" activity.    That does not work. The task stays in paused, as well as the workflow.    When I go to the workflow administration page and manually select "Workflow Actions" and select "Unpause workflow", The workflow and related tasks are set to in progress again.    Why can't I seem to get it to work with the microflow`?   Can anybody give advice?
asked
2 answers
0

Hi Anne Timm,

 

When you pause a Workflow user task, the Workflow Engine internally manages the task state. Just updating the task status with Change Object is not enough — because the Workflow runtime will override it again.

 

To properly unpause a user task, you must use the correct Workflow Operations:

 

 Correct Approach in Microflow

 

Use the Workflow Activity:

 

 Change Workflow State → Unpause workflow Then, retrieve the related user tasks and perform:

 

Workflow User Task → Resume User Task

 

Example microflow steps:

 

1. Retrieve the user task(s) for the workflow instance

 

2. Action → Unpause Workflow

 

3. Loop through retrieved tasks

 → Operation → Resume user task

 

This will correctly update both: ✔ Workflow instance state

All associated user tasks state (Back to In Progress)

 

 

Why your current approach failsYou are only changing the attribute value on the task → but the Workflow Engine still considers it paused internally, so it doesn’t reflect in the UI or engine state.

answered
0

It might be locking. In the Workflow module, there is a microflow like the one below. Instead of doing it from the UI, can you try mitigating this in your own microflow and test again?

 

Screenshot 2025-11-27 at 16.13.28.png

answered