I'm writing a workflow to send an email each time an user is created and I'm calling this workflow from a POJO. Everything looks good, no errors, in debug mode in my POJO I see that the workflow starts, there are no messages in my inbox. This is what my log says:
day.cq.workflow.impl.CQWorkflowSession Workflow instance started with model: /etc/workflow/models/send-user-email/jcr:content/model and ID: /etc/workflow/instances/2013-04-04/model_17333941154731 for payload: /email@example.com
My model only includes a workflow process step to send the email. Here comes the problem... it's not sending the email, I'm debuging the workflow and is not passing through the step that I wrote. In the workflow console the workflow the instance says "STALE". What causes the workflow going to stale state?
It would be hard to tell from the info you have given, but I am assuming you chose the "Send Emnail" Process step and have it correctly configured . You could enable DEBUG level logging for the Workflow packages  and see if there is any extra information output from their, also maybe the Mail Service packages. I would also make sure you have configured the Mail service correctly  and that you have rights to send the email using the 'from' through the mail server you have configured.
Thanks -- David
Thanks for the reply,
Actually I'm not using the "Send Email" process step, I'm using a custom process step, the source is in a bundle that I'm installing in my CQ, the bundle is installed and active. I've also configured the Mail Service, tested with other process.