Skip to main content
Nintex Community Menu Bar

workflow reports terminating old workflows

  • March 27, 2020
  • 1 reply
  • 10 views

Forum|alt.badge.img+9

Is there are way to terminate WFs that are over so many days. These are really old workflows that are in process. As the WF has been purged it seems the only way to terminate them is to go into each one. I have loads so this is not practical.

 

6970i96CDD6394B4A32EA.png

1 reply

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • March 29, 2020
Hi,

If the item no longer exists that the workflow is running on you can use the NWAdmn tool to terminate the workflows.
NWAdmin.exe -o SyncTerminatedWorkflows -url teamsiteurl [-preScan] [-verbose] [-confirm] [-showMissingItems] [-terminateDeletedItems

If the items still exist you can run a workflow that checks the created date of the item for instance and then terminates the workflow running on the item using the Nintex web service if the item was created before a certain date.
https://help.nintex.com/en-US/sdks/sdk2013/#Reference/SOAP/NW_REF_SOAP_TerminateWorkflow.htm%3FTocPath%3DNintex%2520Software%2520Development%2520Kit%7CNintex%2520Workflow%25202013%2520Software%2520Development%2520Kit%7CNintex%2520Workflow%25202013%2520SDK%2520Reference%7CWeb%2520Service%2520Reference%7CService%2520operations%7C_____60