How can I do to simulate a click of the shape task from a button

How can I do to simulate a click of the shape task from a button that is outside the diagram to show the contextPad.

help please!!

image

The context pad opens automatically when an element is selected.

const elementRegistry = modeler.get('elementRegistry'),
      selection = modeler.get('selection');

const task = elementRegistry.get('Task_1');

selection.select(task);
1 Like

Thanks for your help, it helped me a lot to solve the inconvenience I had. @philippfromme