I opted to go with an expression (${taskTitle}). However, the generated name is not used when the completed task is written into the history by camunda. Instead the literal “${taskTitle}” is saved as the historic tasks name.
Is there any way to make the history take the changing of the task name into account?
As it turns out, the resolved task name DOES get saved in the corresponding historic task instance (see test #2).
It just does not get saved in the corresponding historic activity (see test #3, which fails).
That does resolve my initial problem. But is there an explanation for this behaviour? It seems inconsistent.
I think reason for this is that activity is a common concept used for service tasks and other types as well and task is the user task, where the task object is saved.