tag:help-archives.hannonhill.com,2010-02-09:/discussions/how-do-i/14310-unpublish-and-delete-workflowCascade CMS: Discussion 2014-10-21T19:27:47Ztag:help-archives.hannonhill.com,2010-02-09:Comment/347298092014-09-26T16:14:48Z2014-09-26T16:14:48ZUnpublish and Delete Workflow<div><p>Hi Robert,</p>
<p>Currently, both the Delete and DeletAndUnpublish triggers are
designed to essentially end the workflow after the deletion trigger
is executed to avoid potential issues and/or corrupted data.
Unfortunately, this means your Email and PublishSet triggers that
occur after the delete trigger will not fire.</p>
<p>For the Email trigger, you can simply move it up into the
initial step to make sure it is fired prior to the deletion;
however, the PublishSet trigger will be a bit more difficult since
you need it to fire after the delete occurs, which is not currently
possible.</p>
<p>The only way I can think of possibly accomplishing this, which
is by no means elegant, is to use the <a href=
"http://www.hannonhill.com/kb/Workflow-Trigger/available-workflow-triggers/new-workflow-trigger.html">
new workflow trigger</a> to kick off a manual workflow that has a
single step that calls a publish set trigger, then call your
unpublish and delete trigger. Theoretically, at that point you
would have a new workflow with a single step that publishes the
publish set. The down side is it can't be automated; otherwise, you
could have a race condition where the publish set workflow is
executed before the unpublish and delete trigger ever fires, which
defeats the purpose of the publish set workflow.</p>
<p>Note: the new workflow trigger was really designed for an
internationalization type of workflow, so I'm not 100% confident in
saying it will be able to do what I described.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/347298092014-09-26T16:18:50Z2014-10-21T19:27:47ZUnpublish and Delete Workflow<div><p>Thanks I had a feeling this was the case. Is it documented
anywhere?</p>
<p>I think I will just get rid of the delete workflow as the main
purpose of it is to publish some XML files that list the file being
deleted. It doesn't accomplish much without being able to run the
publish set afterwards.</p></div>rgraves2tag:help-archives.hannonhill.com,2010-02-09:Comment/347298092014-09-26T18:44:11Z2014-09-26T18:44:11ZUnpublish and Delete Workflow<div><p>Not a problem at all, Robert. My apologies for not being able to
provide you with a straight-forward solution.</p>
<p>If you would like, feel free to post a suggestion for this
functionality on our <a href="http://ideas.hannonhill.com/">Idea
Exchange</a> for others to vote up and/or comment on. I went ahead
and sent over an invitation, let me know if you have any issues
accessing the system.</p>
<blockquote>
<p>Is it documented anywhere?</p>
</blockquote>
<p>Thank you for pointing this out. Looking over the <a href=
"http://www.hannonhill.com/kb/Workflow-Trigger/available-workflow-triggers/unpublish-delete-trigger.html">
DeleteAndUnpublish trigger Knowledge base page</a>, I am not seeing
this documented. I am assuming this is the case for the Delete
trigger as well. I will make a note to check with the developers
and update the two trigger pages.</p>
<p>I'm going to go ahead and close this discussion, please feel
free to comment or reply to re-open if you have any additional
questions.</p>
<p>Have a great day!</p></div>Ryan Griffith