Hi @hyj,
if you want to change the properties of bpmn elements programmatically, you can do this by manipulating the xml. Check this to get an better understanding how bpmn.io handles XML imports.