How to start a workflow on publish instance with a workflow launcher?
What I want to do is a workflow for approval of Events in a Calendar created on publish instance by our users. So, there is a calendar. Some user adds new event there. I want the event not to appear in the calendar immediately, but only after admin approval. How I want to achieve it:
1) Create a workflow which starts on AddEvent event. This workflow: reverse-replicates the event (now we have this event on author), deactivates page (now we don't have this event on publish), waits for admin approval. If positive ->activates page (now we have this event on publish again).
2) Create a workflow launcher which launches the workflow on AddEvent event on publish.
The problem which I face is that my workflow doesn't start when I create an Event on publish instance. It starts without any problems on author instance though.
question 1: is it possible to approve user-generated content using above listed workflow?
question 2: how to make my workflow start when event was created on publish instance? Should I create the workflow on publish or on author? Should I replicate it? Should I replicate the launcher of this workflow?
Update: actually, I am not able to launch any workflow with a launcher on publish instance. I have no messages in log about the workflow. But I can see the workflow I am trying to start both on author and publish instances here /libs/cq/workflow/content/console.html. Also I see the launcher both on author and publish instances. Both of the launchers have runmode publish&author.