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

Question

Question

Terminate Workflows

asked on November 15, 2016

How can I use a workflow to terminate all running workflows on an entry. 

Let's say I have an active employee folder and the employee gets terminated. I want to stop all running workflows on any entries within their employee folder.

I guess I'm wondering if I need to put a wait condition on each of my HR processes if the folder status changes terminate.

I want to use the best practice since I might have to update multiple workflows if the above is the case.

1 0

Replies

replied on November 15, 2016 Show version history

Hi Chynna.

I have an idea but it can sound a little drastic.

What if you do a workflow searching for an specific status on a field every day and that workflow do the following:?


01 Copy the folder with the status could be maybe "terminate" in a diferent path of the original folder 
02 Delete de original folder (To this point yo do not have workflow running for your employe the workflow do not remain when an entry is deleted they change they status to "Terminate" with the messagge no entry found)
03  Then you move the copy of the step 1 to the original folder location with some flag maybe on an other field something like Field = Status = "No workflow running" in the folder metadata in that could be a way to exclude your search query criterial of the workflow

Regards!!

1 0
replied on November 16, 2016

Hi David,

Thanks for that suggestion! I am a little nervous when it comes to deleting folders because of it being HR and possible legal issues. Maybe I can ease them over since we have Audit Trail.

0 0
replied on November 16, 2016

Hi Chynna.

I know what you thinking that is why said"Drastic", but maybe we can think in something else.

What if we make it simple just add the wait condition on your HR process, that will be more clean and will calm your nerves wink .


​​​​​​​Regards!!
 

1 0
replied on November 16, 2016

Yeah that's what I was thinking originally, but I wasn't sure if someone else knew of a "Special Laserfiche trick" I could steal. 

Yeah dealing with HR can be seriously intense...LOL! When I say DELETE it's like setting off alarm. 

1 0
replied on November 16, 2016

You could script it through the Workflow SDK. See this other thread for some info on how that could be achieved.

0 0
replied on November 16, 2016

Thanks Miruna. I will subscribe to that thread and will have to show my IT Team or VAR.

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

Sign in to reply to this post.