Options for troubleshooting/getting detailed logs/adding something similar to breakpoints for OSGi workflows
Hello,
I've recently gone through training and started doing some of my first OSGi workflows (and have some prior experience working with J2EE/Workbench processes).
I'm running into problems trying to use the out-of-box "Export PDF to specified type" process. I know how to view the running instance via:
lc/libs/cq/workflow/admin/console/content/instances.html and find the details there lacking for troubleshooting.
I know you can view details related to the workflow instance steps via CRX (i.e. var --> workflows --> instances --> expand my instance), and I can see errors related to the instance in our server logs, but I am not finding any clear information to help me fix the issue with this process.
Instead of erroring out/failing, it just hangs on the step that it cannot complete - I've let it run for errors before and the step with errors in the log just shows "Active" in the AEM --> Workflows --> Instances history.
I was hoping to get more information around:
1.) Is there any place I can view more detailed logs about what's happening with individual workflow steps? If there is, is there any way to turn on verbose logging for them?
2.) How does error handling work here? In workbench, a number of the built-in processes have fault routes you can use to branch off steps that fail. I can't tell how to do this, or if it's possible, with this process. I don't see any components related to error handling either. Seems really weird we wouldn't be able to do this with out-of-box processes.
3.) Can you force a hanging step to time out?
If there's some documentation around these things that might help, please share it too. I've gone through some of the stuff around workflows. One thing seems to be indicating we'd need to make a custom event handler for errors?: How to Catch and Process Workflow Events
https://helpx.adobe.com/experience-manager/kb/CatchAndProcessWorkflowEvents.html
That's the closest thing I've found to an answer for #2.
Thanks for any help or ideas you can provide around this.