Wednesday, November 30, 2011

/etc/workflow/launcher/config is flat

I wanted to create various launchers for this project.

So, I started to create launcher nodes:
/etc/workflow/launcher/config/proj1/foo
/etc/workflow/launcher/config/proj1/bar
 ...
where
/etc/workflow/launcher/proj1 is sling:Folder


This does not work. com.day.cq.workflow.launcher.impl.LauncherConfig expects /etc/workflow/launcher/config  to be flat. Every child node of the node should have eventType property. Obviously, the sling:Folder, proj1 didn't have.

That broke ENTIRE WORKFLOW LAUNCHER. No workflow was launched.

Make it flat.