We often see requests of how to pause a workflow for less than 5 minutes. Until now this has not been possible as the pause action relies on the SharePoint Workflow Timer Job to wake the workflow instance back up (occurs every 5 minutes) after the indicated amount of time.
Utilizing PowerShell you can effectively pause a workflow all the way down to 1ms. While a PowerShell script is running it will hold up the progress of the workflow until it completes. To set this up you simply need to set the PowerShell action to execute this command:
PowerShell Script |
---|
|
Note: 20000 would be a 20 second pause.
Here is a screenshot of the action blocking for 20 seconds (Nintex rounds up to the minute for display purposes):
Note: Avoid pausing the workflow for long periods of time as it may result in the workflow batch timing out.
You can obtain the PowerShell action here: NTX PowerShell Action - Initial Beta Release