After getting some unexpected NPEs using CDI (e.g. injecting ProcessInstance) I had a look into the activiti tables and noticed some tasks having a process instance id assigned - but their assigned execution do not have a process instance id. Is this supposed to be possible/allowed? Can anyone shed some light on this?
Sorry, I was referring to the ACT_RU_TASK table, that have the missing executtion-ids. I don't see anything in our code that could be causing the absence/disappearing of the ID. So you are saying you cannot reproduce the issue with your process? If you still can, perhaps it's a good idea to extract the process that is showing this behavior, simplify it and create a simple unit-test so we can look closer.
No, I don't have act_ru_task records without execution id.
I will try to restore the state when this problem occured. I just added three more table exports that might be helpful just in case I can't reproduce the problem.