List the change element options in a dropdown on the Properties Panel

Good day,
Is there a way to retrief the list of elements that is called behind the “screw wrench” so that we can list them in a dropdown in the properties panel? That will allow the user to select the type and then we call the updateProperties once they have selected a different time.

Example : In the bpmn i have a Task element. When you click on the “screw wrench” you get the Change Element popup with the various options (User Task, Service Task, Send Task…) I would like to know how can i get hold of that list and then display them in a dropdown?

The list of possible replacements is defined here: bpmn-js/lib/features/replace/ReplaceOptions.js at develop · bpmn-io/bpmn-js · GitHub However, the logic to filter the applicable options is defined here: bpmn-js/lib/features/popup-menu/ReplaceMenuProvider.js at develop · bpmn-io/bpmn-js · GitHub

Thank you for your reply. I will look into it during our next quater and update the post with what we have done as a end result.

1 Like