Powershell to start workflow question RRS feed

  • Question

  • ref: http://veenstra.xyz/2014/10/09/sharepoint-2013-startcancelrestart-workflows-from-powershell/

    I was able to adapt this script, but when it starts the workflow, it seems to start it 3-4 times.   The author of the blog references this issue, but I don't understand what he means by using  a 'wait activity'

    "Until the workflow has a context switch (Wait, Approval Task, State change, … and some  other activities) the multiple copies of the same instance will run. This can give many problems.

    Solution: Start the workflow with a Wait Activity and the wait activity is run twice, however the activity after the wait is not. Problem solved."

    Tuesday, April 14, 2015 11:42 PM


All replies