Hi @Nkosi_M,
You can use a task listener: Delegation Code | docs.camunda.org.
In the task listener you have access to the DelegateTask
object and you can set the attributes like names.
The task definition key is the task ID in the bpmn file and I would not change it (maybe it’s even not possible). This is the link to the model and saved in the database.
Hope this helps, Ingo