Dear All,
I have a requirement where I need to trigger a custom workflow upon page deactivation. Author is expected only to deactivate page and I should internally trigger my workflow. Can someone please suggest with some sample code.
I tried with EventHandler but FramworkUtil is not having a method - getBundle to get the bundle context. I am using osgi coe version 4.3.0
Please provide some code example whcih I can use or refer.
Thanks,
Ravi
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
if your author does not have the "replicate" privilege, the logic behind the "deactivate" buttons invokes the "request for deactivation" workflow by default (at least in Classic UI, haven't tested with TouchUI yet). And then you can customize this workflow.
kind regards,
Jörg
Views
Replies
Total Likes
Hi,
if your author does not have the "replicate" privilege, the logic behind the "deactivate" buttons invokes the "request for deactivation" workflow by default (at least in Classic UI, haven't tested with TouchUI yet). And then you can customize this workflow.
kind regards,
Jörg
Views
Replies
Total Likes
Hi,
For deactivation are you using your custom workflow ?
Views
Replies
Total Likes
you can customize the deactivate action and assign that service when you click on 'deactivate' button
Views
Replies
Total Likes
Authors will have replicate auhorization. I just need to get hold of my workflow as soon as he click deactivate button.
Views
Replies
Total Likes
Can you please share any code example so that I can follow it.
Views
Replies
Total Likes
No. On deactivation I want to trigger my workflow whcih actually connects to Solr server to remove that index.
Views
Replies
Total Likes
whenever a deactivate button/option is clicked (either from sidekick or siteadmin). it is eventually handled by (AFAIK) CQ.wcm.SiteAdmin.internalDeactivatePage function which in turn makes a call to /bin/replicate.json servlets that deactivates the page.
you can override that function to do your stuff.
hoep this helps. Sorry I dont have any code snippets to show right now.
Views
Replies
Total Likes
Hey
I tried this approach for an asset deactivation for the same requirement as that of Ravi.
I added a custom step in the "Request for Deactivation" workflow, but the changes did not reflected. However they reflect for the "Schedule deactivation of page/asset" workflow.
Can you please suggest the fix?
Views
Replies
Total Likes
Views
Likes
Replies