title: Start a workflow on page activation without activating the page in CQ5
body: <p>I would need to call a workflow whenever a content author clicks activate on a page. The workflow would then send a notification to the administrator, who then proceeds to activate the page.</p>
  
  <p>Let me explain this with some more detail. There are 2 parts to this </p>
  
  <p>i) Whenever a content author is done modifying a page, he would then proceed to click "<strong>Activate Page</strong>" from either the sidekick or from page properties on the siteadmin. By doing so, he is not activating the page straight away but calling a workflow.</p>
  
  <p>ii) The workflow will send out a notification to the admin, who then decides to activate the page. This bit is fairly ordinary, so no issues here.</p>
  
  <p>All of this is an effort to make sure that there is nothing published/activated unless it has been reviewed by an admin.</p>
  
  <p>I tried setting up a ReplicationEvent listener that would call a workflow. What happens is that the page is already activated <em>before</em> the workflow is called; the occurrence of a <em>ReplicationEvent</em> is only after said Replication Event (i.e Activate) occurs (Obviously!).</p>
  
  <p>As stated, I need to make sure that the page isn't actually activated when the user clicks activate; which means I need to modify what the activate button does exactly. </p>
  
  <p>I have tried looking up online, but found nothing, which leads me to believe that most of CQ5's siteadmin code is hidden from us and cannot be modified (and with good reason). </p>
  
  <p>So is there anything else that anyone can think of which may help me to achieve my requirement? Or should I give this up as a lost cause? </p>
  
  <p>Thanks in advance and apologies for the long post</p>