Skip to main content
Nintex Community Menu Bar
Question

Restart All Workflows after a K2 Version upgrade to 5.4


Forum|alt.badge.img+1

 

After upgrading to version 5.4, there is a need to restart over 500 workflows in K2. Apart from the manual process of doing them one at a time is there any better way of doing it. Is it possible to create a tool for automating this task?

Translate
Did this topic help you find an answer to your question?

Forum|alt.badge.img+13

It would be possible to utilize the K2 API to loop through all workflow instances and do a “GOTO Activity → Start” on each one. Would that work or does each workflow have a different idea of what “restart” means?

Translate

MillaZ
Nintex Employee
Forum|alt.badge.img+21
  • Nintex Employee
  • January 15, 2024

Hi @rahulchaturvedi 
Did this response help answer your question? 

Translate

Forum|alt.badge.img+1

Certainly, my goal is to execute a "GOTO Activity → Start" on every workflow instance. How can I iterate through all workflow instances, and which APIs can I use—SmartObject OData API or Workflow REST API?

Translate

Forum|alt.badge.img+10
  • Nintex Employee
  • January 19, 2024

If using Odata, you may have to create a SmartObject that surfaces the ‘GotoActivity’ method, this is located at [K2 Management service type > K2 Management service instance > Workflow > Management > ManagementService]

 

Workflow REST API does not surface this GotoActivity method.

 

Alternatively, you can use some of the K2 assemblies/dlls:

https://help.nintex.com/en-US/k2five/devref/5.4/Content/Runtime/WF-Manage/LIM.html

https://help.nintex.com/en-US/k2five/devref/5.4/Content/Runtime/WF-Manage/LIM-Manage.html

https://help.nintex.com/en-US/k2five/devref/5.4/Content/Runtime/WF-Manage/LIM-Ko.html

https://help.nintex.com/en-US/k2five/devref/5.4/Content/Runtime/WF-Manage/LIM-Client.html

 

If applicable, you can also migrate process version/gotoactivity with:

https://community.nintex.com/archive-25/process-version-migration-utility-v3-0-6-9598

 

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings