Set Name property programatically


I was going through the BPMN-JS examples and wanted to look into the possibility of setting default properties for specific task types. For example,
I want to set custom ‘Name’ property for user tasks based on the ‘id’ property of the task i.e., if the ‘id’ of the task is ‘Task_1jrfl6h’, set the name to ‘Task_A’. I tried messing around with the custom-elements example and the properties-panel-extension example but received no positive results so far.

Is this achievable ?