https://joao.ws/developing-a-custom-workflow-dialog-in-aem/
Developing a custom workflow dialog in AEM