Remove old running instances of workflow if payload matches | Community
Skip to main content
chintan97
Level 2
June 24, 2024

Remove old running instances of workflow if payload matches

  • June 24, 2024
  • 1 reply
  • 649 views

Hello,

 

If I schedule publication for asset A at path /content/dam/test/article-a, it creates the scheduled activation workflow as expected. Now let's assume it is scheduled to be published at 3 PM. Let's assume I missed one change while editing, so I made the change and marked it to be published at 3:05 PM, so it would trigger another workflow. Now because of the scheduled activation workflow, it would trigger publication at 3:00 PM for asset A and another publication at 3:05 PM for the same asset. 

 

To avoid double publication, is there any easier way for the editors to see if there is any existing running workflow for the asset? Considering there are huge amount of editors and want to avoid too many technicalities for them.

OR

Is there any OOTB way to remove the old running workflow if the payload is the same? Or will I need to write a custom workflow step to check all running workflow and remove if the payload matches?

 

Thanks!

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

1 reply

arunpatidar
Community Advisor
Community Advisor
June 24, 2024

Hi @chintan97 
Are you using OOTB schedule publish workflow? If yes then each state of scheduled workflow is going to publish that exact version of the page.

However you can check the existing workflow from timeline

 

 

 

Arun Patidar
chintan97
chintan97Author
Level 2
June 24, 2024

Hi @arunpatidar , Yes. I am using OOTB workflow. I do see workflow pending for the asset. 

Looks like for our case, I will have to remove older versions of the workflows when a new activation request comes and if there are already some activations are pending.