Can the Dialog2 AUI be added to Workflow Transitions like Before the Close Button/Transition?

I just want to find a way to add this dialog2 aui to the Workflow Transition, so when i click the button a dialog opens and users will do the function required on the dialog and will submit it.
Please someone help me to achieve this.