My project is currently running a CQ 5.4 implementation. We have a requirement that asks us to modify the existing page replication process (initiated via "Activate Page" in the sidekick or through the websites console). I have two questions:
Of course you can inspect the default activation workflow in the respective console. There you can also change the workflow model so you can execute custom code. See http://dev.day.com/docs/en/cq/5-4/administering/working_with_workflows/workflow_processes. html for a documentation on the existing workflows and how they can be adjusted.