Terminate Event Setting a variable will cause an FK exception

I have a very simple process. I set an end event to terminate, set a variable i before the end, and I get an FK exception as a result

error.bpmn (3.1 KB)