You are viewing limited content. For full access, please sign in.

Question

Question

Entry deleted during a wait condition

asked on April 29, 2015

Hello everyone,

 

I'm new to workflows, and we've only recently upgraded to WF 9.1.  I am learning about a lot of how our workflows we've had for years are working and I am monitoring them closely after the upgrade.  We have a workflow that does what it is supposed to, but occasionally it terminates during a wait condition because a user has deleted the original document.  This is a valid, though uncommon, scenario, but I do not see a way to add into the wait condition that the starting entry is deleted.

 

Is there a way to have the wait condition be met either on a status change for the starting entry (what it uses now), or if the starting entry is deleted?

 

Thank you

 

0 0

Answer

SELECTED ANSWER
replied on April 29, 2015

Hi Robert,

 

This one's kind of tricky because the "entry deleted" is actually a Laserfiche error event.

 

To trigger off of those you can put your actions in a try-catch.

 

 

Here I tried to "wait for entry" and when I delete it, the catch branch will fire, and the workflow will then continue on processing the remaining events regardless.

 

If the wait condition successfully satisfies, the catch branch will not be specified, and the events below this picture would fire.

 

 

Give that a go.

 

Cheers,

Carl

2 0
replied on April 29, 2015 Show version history

If you only want to ignore these particular errors, switch to "Only Errors of this type" in the catch branch and copy in this Assembly Qualified Name: "Laserfiche.Workflow.Activities.Condition.ConditionEntryDeletedException, Laserfiche.Workflow.Activities.83, Version=8.3.0.0, Culture=neutral, PublicKeyToken=d8428ff9263e6cda"

4 0

Replies

replied on April 29, 2015

If you only want to ignore these particular errors, switch to "Only Errors of this type" and copy in this Assembly Qualified Name: "Laserfiche.Workflow.Activities.Condition.ConditionEntryDeletedException, Laserfiche.Workflow.Activities.83, Version=8.3.0.0, Culture=neutral, PublicKeyToken=d8428ff9263e6cda"

replied on April 29, 2015

Thank you both very much!  I've been able to get the workflow to behave as desired and not show up as terminated.

0 0
replied on November 1, 2018 Show version history

Thank you!  I have set up these steps as well, to stop terminated emails that I don't need to see.

UPDATE:  Didn't work.  I still got the termination error email.  I note that this post was from 2015 and there have likely been changes that are not reflected here.  Does anyone know how to do this in Workflow for Version 10.3?

0 0
replied on November 5, 2018

(There's no Workflow 10.3.) Have you looked in your instance details to see why it terminated?

1 0
replied on November 5, 2018

In the Catch part of the Try Catch activity just has an End Workflow activity for if the entry is deleted.  The End Workflow activity "Reason" was left blank because there will be different reasons for the entries to be deleted.  I didn't think there was a connection here but maybe there is.  I'll give it something generic and see if that solves the problem. 

Thanks, Miruna.

0 0
replied on November 5, 2018

End Workflow activity has 2 options: terminate it or complete it. If you terminate it, then it will still count as terminated and be reported by the termination notification email.

1 0
replied on November 7, 2018

I think that was the problem, Miruna.  When I went back into the workflow, I spotted that and noticed I had not changed it to Complete and not terminate.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.