have a look at this post: Dynamically Override "User-Task" Name or taskDefKey , using an expression. eg : ${taskDefinitionKey == TASK_ID} - #2 by Ingo_Richtsmeier
There are other posts available with more specific examples, as well. I could not find them right now.
Hope this helps, Ingo