How to set custom properties in a mode editor source
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2015 12:02 PM
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
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:
Is this the right way? What is the best practice to handle custom parameters?
Thanks in advance
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
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2015 09:04 AM
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?
What kind of parameters are we talking about here?
