Terminate All Workflows Except Current workflow in Nintex Cloud
Hello,
I am working on migrating a 2010 On Prem workflow that is using the Terminate Workflow - All except current workflow option but it’s not a option in the Nintex Automation environment. Is there any way to have this same functionality/step in Automation environment?
Page 1 / 1
Hi @fortyone,
There is no out-of-the-box way to achieve this solution. You will need to use Nintex Automation Clouds API’s.
The list I am working with has 5 different workflows that might run against a specific item and when a certain field is changed all workflows running need to be totally stopped/terminated. Thanks for your help
Hi @fortyone,
Yes, you would use a call a web service action to call that URL to list the instances. As you may have multiple instances of a workflow running on the list, one for each item, I suggest that you use the Set Instance name action at the start of each workflow to give each instance a unique name. It could be as simple as appending the item ID to the end of the name. This will make it easy to identify in the list of instances. Unfortunately, you must do this 5 times if you have 5 different workflows.
Thanks! So if I set one of the Workflows instance name to be Test Workflow 1 - ID
The Url would look like this?:
Hi @fortyone,
That does not look correct. That web service is to list all the instances for a workflow, so the workflow ID needs to be provided, not the workflow name. To find the workflowID, open the workflow in the designer and grab the GUID from the URL.