https://docs.camunda.org/manual/latest/reference/rest/process-instance/post-modification/
I used this API to modify it and found another task appeared
This is not what I want. I just want to return the task to the original one and not create a new one. How to realize it
Hi @icefox,
you sould add a cancelActivity command in your REST body to cancel the current activity. Have a look for further details here: Process Instance Modification | docs.camunda.org.
Hope this helps, Ingo
Thank you for your reply.
If I want to use the API directly, I need to request twice:
Use “startbeforeactivity” to generate new returned tasks for the first time;
The second use request uses “Cancel” to cancel the previous task.
Is that right
Hi @icefox,
you can use both cammands in a single request like here: Execute Modification | docs.camunda.org
Hope this helps, Ingo
think you for your reply, i will try it