Updating custom element properties


I was going through the BPMN-JS examples and wanted to look into the possibility of setting default properties for specific task types. For example, I want to set ‘Form Key’ property for user tasks based on the ‘Name’ property of the task i.e., if the name of the task is ‘A’, set the form key to ‘a.html’. I tried messing around with the custom-elements example and the properties-panel-extension example in the bpmn-js-examples repository but received no positive results so far.

Is this achievable ? I also looked at the bpmn.json moddle descriptor and found no mention of these properties.

Hoping for a helpful response.


We do not support this.

You may only set properties based on an elements type, not based on specific properties that may easily be changed by the user.