You can create an Adobe CQ custom workflow step by using Maven. A custom workflow step lets you customize a CQ workflow to meet your business requirements. An Adobe CQ workflow consists of steps that are either participant steps or process steps.
Note: This development article is for Adobe CQ 5.5 or lower. If you want to create a custom step for AEM 5.6, see http://scottsdigitalcommunity.blogspot.ca/2013/10/creating-custom-aem-workflow-steps-that.html.
Participant steps require manual intervention by a person to advance the workflow. Process steps are actions performed by Adobe CQ if certain configured conditions are satisfied. You can create either a participant or process custom workflow step using Maven. You can use the Adobe CQ Java API to create a custom step.
To read this entire article, click this link: