startActivity → ServiceTask1 → ServiceTask2 → UserTask1 → UserTask2 → endActivity
ThreadA with key KEY proceeds via ST1 and ST2 and commits its state to DB as UserTask1. However, this thread gets detached from UI due to some reason and UI triggers another call.
ThreadB again with same KEY goes via ST1 and ST2, but what will happen when it tries to update its state as userTask1 again ? will it throw any exception ? if no, will it override the existing state of process instance ?