trigger workflow on delete | Community
Skip to main content
October 16, 2015
Solved

trigger workflow on delete

  • October 16, 2015
  • 4 replies
  • 1327 views

Hi,

I need to trigger a workflow when the user deletes a page on publish instance.

[img]Untitled.png[/img]

Now i'm on author instance and i delete a published page under /content/gimb_it/x/y, the workflow isn't triggered.

Why?

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by PaulMcMahon

In screenshot you provided you set the run mode of the trigger to Publish. When you set the run mode to Publish that means that workflow will on be kicked off on a server that includes the Publish run mode. Since you author server has a run mode of Author that workflow trigger will never start a workflow - regardless of where you delete the page. 

If you set up the same launcher on a publish instance it would would start a workflow - but only on the publish server - not on the author server. You probably want the to set the run mode to Author not Publish. Try that and you should see the results you expect (assuming of course that the delete action is happening on the author server and not on the publish server). 

4 replies

roger547
October 16, 2015

Can you explain more ?

 

R5 Studio

Lokesh_Shivalingaiah
October 16, 2015

that because, this workflow is activated only for 'publish' instance

October 16, 2015

sure,

I'm in siteadmin of CQ5.5.

I have created a trigger that runs when a page publish side is deleted. (img of the previous post)

I think that if i delete a published page in author instance the same page will be deleted publish side.

But if i delete the page the trigger doesn't run.

Why?

PaulMcMahonAccepted solution
October 16, 2015

In screenshot you provided you set the run mode of the trigger to Publish. When you set the run mode to Publish that means that workflow will on be kicked off on a server that includes the Publish run mode. Since you author server has a run mode of Author that workflow trigger will never start a workflow - regardless of where you delete the page. 

If you set up the same launcher on a publish instance it would would start a workflow - but only on the publish server - not on the author server. You probably want the to set the run mode to Author not Publish. Try that and you should see the results you expect (assuming of course that the delete action is happening on the author server and not on the publish server).