This tutorial will walk you through the steps involved in creating custom workflow component.
You will need the following:
A working instance of AEM with Form Add-on package installed
Development environment set up according to this document