Data Loss After Input Sets Value


When I use JavaScript to change the contents of an input box, the contents of the input box are no longer saved after downloading xml. Can you give me some advice?

var camundaExecutionTime = document.getElementById('camunda-executionTime')
camundaExecutionTime.value = 'YiChars'

“camundaExecutionTime ” It’s an input box.

Using Js I used the method in this article, but reported the following error to me:

Cannot read property 'get' of undefined


Hi @xuchaojavascript

Given the following code you mentioned from the other topic:

var modeling = bpmnModeler.get('modeling');
modeling.updateProperties(element, {name: 'mmmm'});

and the error you posted:

Cannot read property 'get' of undefined

it seems that your modeler is undefined. Do you have any more stacktrace to share? Can you give any code to us where you try to get the modeling module from your used modeler? You can also have a look at this starter example on how to use the modeler.


Thank you for your reply. I’ve been browsing the documents of BPMN for several days. Although it’s hard to learn, I don’t want to give up. Maybe I haven’t really mastered BPMN yet. I’m reviewing the articles in this field again. I hope I can get some results.