AnsweredAssumed Answered

How to set custom properties in a mode editor source

Question asked by alpeb on Apr 13, 2015
Latest reply on Apr 14, 2015 by jbarrez

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