How to get User task's cancellation/ending reason from the History service

@cmalouf
Thanks for your time!
But, in this case, there could not be a timer boundary event attached to the user task all the time. For example, consider this:

cancelled_user_task

This time, the process was externally cancelled, so the user task. But there is not a timer element in the process, then there will be no ACT_HI_JOB_LOG record. If any timer boundary event was attached to the user task, your solution would be ok to go, but I need to find a more generic way matches to all the cases.

Thanks!