Skip to main content
Nintex Community Menu Bar

Stop workflow instances using SMO

  • May 31, 2020
  • 2 replies
  • 159 views

Forum|alt.badge.img+7

Hi,

 

Is there any way to Stop perticular workflow instances using SMO.

 

My requirement is user will mark respective project as on hold in application, based on that i want to stop respective process instances.

Note- I have service instance id with me and i dont want user go to managment site and perform it manually.   

2 replies

Forum|alt.badge.img+12
  • June 1, 2020

Hello,

The Process Instance Info SmartObject has a Stop method you could use. It only requires the Process Instance ID as an input.

You may find this SmartObject in System > Management > Workflows > SmartObjects


 


Hope this helps!


 


 


Forum|alt.badge.img

I wanted to use this method, but it is a bit clumsy in that the workflow instance remains in the "Stopped" state and tasks that may have been created in the workflow are not deleted. Therefore, I returned to the original method - terminating the workflow using the "GoTo" method in the "Activity" (described here: https://community.nintex.com/k2-blackpearl-13/terminate-a-k2-workflow-14642)