cancel
Showing results for 
Search instead for 
Did you mean: 

How to set custom properties in a mode editor source

alpeb
Champ in-the-making
Champ in-the-making
Hi,

We're currently using external form rendering and for this we need to have available some custom properties during the process execution. We define this properties in the model's editor source JSON. The problem is that when the deployment for that model is built, we transform that editor source into the BPMN XML (using
new BpmnJsonConverter().convertToBpmnModel(modelEditorSource)
) and our custom parameters are ignored in the resulting XML.

As a workaround we're thinking on, every time an instance is started, retrieve the model editor source and extract our custom parameters, and then pass them as process variables:

runtimeService.startProcessInstanceByKey("process", variables)


Is this the right way? What is the best practice to handle custom parameters?

Thanks in advance
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
I think a better approach would be to add those parameters in extensionElements in the xml?=
What kind of parameters are we talking about here?