For audit purposes we need to know who completed a task.
What is the best way to enforce that a task has an assignee before it is completed?
I have tried using a TaskListener to set the assignee - triggered when the task is completed, but the assignee is null when I retrieve the HistoricTaskInstance. I wonder if the instance is completed before the listener updates the assignee? Shouldn’t all the listeners need to run before the flow is moved on?