To modify the name of an instance of the process in runtime, I used the following code in a script task.
Is it the right way? Is there a better alternative?
var idProcessInstance = execution.getProcessInstanceId();
runtimeService.setProcessInstanceName(idProcessInstance, ‘Name…’);
Thank!