Reputation: 55
I'm working with Adobe Experience Manager version 5.6 (CQ). I have a requirement that involves modifying the ActivatePageProcess workflow process, basically checking who the user is that is trying to publish, and actually opening the document for edit if it's not an administrator. The issue I'm having is that I'm not clear where I can find the ActivatePageProcess script in CRXDE ... or if it's even there. Once I find it, I know I can move it to /apps and make my changes, but so far I'm not able to find it at all. Can anybody give me some guidance?
Thanks very much in advance, Jim
Upvotes: 1
Views: 2493
Reputation: 3890
Typically you would remove replicate permissions for your Authors, and then modify the OOTB Activate WF step to include whatever logic you need. the Replication servlet that is called when a user clicks Activate (or Deactivate) will invoke the OOTB WF model if the users dont have permissions to replicate the content.
Upvotes: 0
Reputation: 9304
The process component can be found here:
/libs/wcm/workflow/components/workflow/activateresourceprocess
Please notice it's only an invoker of the ActivatePageProcess
OSGi component.
However, I'm not sure if it a correct approach to achieve your goal. This process is used to activate some resource, but it isn't an activation event listener. Modifying it won't change the activation behaviour.
What you can do:
/bin/replicate
servlet (Firebug will give you more details). You can write a servlet filter to intercept activation requests and send redirect is the user has insufficient privileges.Upvotes: 2