I need am upgrading existing code from cq 5.4 to CQ 5.5.
The exsiting code uses a servlet with an injected @MailService reference to send emails. It is currently used as a process step service.
However, with CQ 5.5 I see that I need to implement the WorkFlowProcess interface, to see this class listed as in the Process step drop down list.
The issue I have is if I keep the class as a Servlet extension , it does not show up in the drop down list of the process step.
Is there a way to update the code to list this servlet as a process step?
Or is there a way to inject the MailService reference into a class which only implements the "WorkflowProcess" interface and is not a servlet ?
The implementation of WorkflowProcess is to be deployed as an OSGi service, so you can @Reference the MailService in that class.
http://dev.day.com/docs/en/cq/current/workflows/wf-extending.html#Defining a Process Step with a Java Class