Explicitly set processDefinition.name attribute

We deploy our processes programatically via

val result = repositoryService.createDeployment()
                    .name(flow.name)
                    .addString("${flow.name}.bpmn", request.content)
                    .deployWithResult()

The thing is that result.deployedProcessDefinitions contains deployed definition, but name attribute is null, though key attribute equals to BPMN’s id attribute. Is there any way to set the name attribute via deploying a new version?

@vicmosin you need to set Process Name attribute while modelling the process itself. The name tag:

<bpmn:process id="DynamicActivityNamesProcess" name="Dynamic Activity Names" isExecutable="true" camunda:historyTimeToLive="P1D">