Fix for ACT-2042 : runtimeService.deleteProcessInstance does not set process instance end time when current activity is a scope
Many thanks to Ryan Johnston from BP3!
Event logging: variables