How to trigger the full selection event with a custom button

Description: The mouse clicks a button to trigger the selection of all process nodes in the current canvas to be selected and retrieved.

OBJECTIVE: To obtain the information of selected process nodes

So you want to select all elements? And then do what exactly? What have you done already to achieve this?