Description is not clear what problem you are trying to solve. From cq perspective None of the requests are initiated until the DOMContent event is fired. What I have seen in due to third party java script integrations you might notice delay in campaign getting loaded as it is blocked by those integ...
Sitecatalyst helps & preferred for your case. You do not need to configure reverse replication, you can configure in publish to post stat to author directly. Yes in author also cleans dialy & unfortunately no configuration option.
Out of the box it cleans up every day based on property value /var/statistics/@lastCleanUpDate & is expected. The service responsible is http://localhost:4502/system/console/configMgr/com.day.cq.statistics.impl.StatisticsServiceImpl & there is no configuration option. Only workaround if you do not ...
With latest AEM 5.5 + You can't find unless you decompile the bundle. If you have crx 5.4 you can find it in crx explorer web-inf folder. Acleditor uses api of http://jackrabbit.apache.org/api/2.0/org/apache/jackrabbit/api/security/package-summary.html
Oh i see. Shouldn;t workflow creation one time & not regularly updated. Anyhow you can write a EventHandler for task event [1] and set service ranking properly so that get triggered before EmailNotification[1] https://dev.day.com/docs/en/cq/current/javadoc/com/adobe/granite/taskmanagement/TaskEven...
create a process step before participant looks right way & what problem did you faced here & why do you think it does not meet your requirement? Alternative I could think is create dynamic participant step & in getParticipant() method before returning implement your logic.
Add a button to sidekick[1]. Click of button invoke your service & in that service implement an logic to cancel the the workflow using workflow api shared earlier. [1] http://aemfaq.blogspot.com/2013/04/adding-button-to-sidekick.html
You can use workflow api or jmx. An example for workflow api look at source code at [1].[1] http://helpx.adobe.com/experience-manager/kb/howtopurgewf.html[2] http://helpx.adobe.com/experience-manager/kb/workflow-monitor-via-jmx.html