How to rename Process Name dynamically during runtime?


#1

Hello,

I have bpmn model which is having predefined process id & Process name. But i want to change it dynamically while starting the process instance . Can anyone help me ?

Here is my model code :

  <bpmn:collaboration id="Collaboration_03cxq62">
         <bpmn:participant id="start" name="SomeName" processRef="executionOne" />
 </bpmn:collaboration>

 <bpmn:process id="executionOne" name="SomeName" isExecutable="true" 
                                          camunda:versionTag="1.1">

I am using spring boot to start my process instance.

Here is my code :

runtimeService.startProcessInstanceByKey("executionOne", variables);

This starts Properly. But When there is some task created, The Process Name By default always set as “SomeName

Is there any way i can change the process name during runtime or any other way ?


#2

This is a cross post and has been answered here: https://forum.camunda.org/t/how-to-rename-process-name-dynamically-during-runtime/3164


#3

Thanks @ThorbenLindhauer.


#4