Bind new tasks with case or process instance

Is it possible to create tasks with REST API( http://localhost:8080/engine-rest/task/create ) and bind the new tasks with a case or process instance? I tried setting caseInstanceId with the ID of the case that was running but it didn’t bind. I closed the case even though the task was in process.

Hi bopbruno,

I think binding in context of lifecycle binding is not possible.
You can add a task and set caseInstanceId to find it via queries etc but it will have no effect to
lifecycle of case so as you already said the case could close even if task is still active.

Best regards,