My customer is struggling with something very simple: how to customize the Task title. You can certainly create an argument in the task, use Data Associations to map the argument, and then use XPath expression to get the value from the task payload and set it to the task title. That works fine. But it only executes once, when the process instance 'enters' in the task.
So once the Task is created, you can see the custom title in the Workspace.
Now, can we change the Title on runtime? I thought you could get the task payload, update the title and finally update the task but this does not seem to work. Here's the code that does it.
In this example, the priority is updated successfully but not the title.