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

Question

Question

Can one workflow evaluate another workflow and stop it if conditions are met?

asked on May 23, 2024

I have a workflow that has 400 instances running in a "waiting" condition.  Some of them may still be valid, but some of them have an entry ID that has already been acted upon and moved or deleted from the system.  Has anyone created a workflow to evaluate another workflow and terminate it if necessary, depending upon conditions? 

0 0

Replies

replied on May 28, 2024

You could use a SQL query on your workflow database to evaluate the conditions. For example, if you know the `workflow_id` of the workflow you want to evaluate, you can query the `bp_instance` table by `workflow_id` and `bpi_status`, which will return all instances of the workflow that are the status that you specify.

 

0 0
replied on May 28, 2024

Are you sure your Subscriber is working properly and not backlogged? Deleting an entry would trigger a notification to Workflow and the wait condition would be cancelled.

0 0
replied on May 29, 2024

I actually think they decided to do some manual work instead of letting the workflow do the work for them, so many of the workflows are sitting there waiting and abandoned. 

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

Sign in to reply to this post.