Thanks for sharing. Your Sandbox looks a bit chaotic as it seems to include a lot of unrelated stuff. I’d suggest you to start with a clean copy of the basic bpmn-js Sandbox and then clarify what you want to achieve, step by step:
- Add a custom popup menu module, find some explanations in this forum thread
- Add a custom context pad provider module, find an example of how to do that in this example
- Add an action to your context pad provider to open the defined pop-up menu, cf. to the
bpmn-replace
example of how to do that
It’s important to understand how the module architecture of bpmn-js works to gather the connection between the context pad and the popup menu. I can recommend the walkthrough to get more information on that.