The edit step is system step and is simply for editing. Why don't you introduce one more step after the edit, once the editor saves the page and pushes it further and then do the logic in that step? Or, maybe you just need to save and page.CheckIn() as per the API examples before moving to the next step.