If you are designing a complex or long workflow using SharePoint Designer 2010 and for some reason during debugging process you may want to comment out certain actions or disable certain actions. I could not find any out of the box solution to this. I am not a big fan of SPD workflow but if I write a workflow in SPD I usually put IF condition around the actions that I want to comment out and if I want to run those actions my condition will be
If 1 equals 1
and if I dont want them to run then my condition will be
If 1 equals 2
This has already been posted couple of time already bust still posting this with little more details around using Impersonation SharePoint Designer.
Starting SharePoint Designer 2010 MS introduced this new step called “Impersonation Step” where any activity used inside this step will run under the workflow author (person who last edited the workflow in designer). Mind you this does not mean the person who started the workflow.
To use Impersonation step you simply click below your current step and from the ribbon click Impersonation step.
Once you add this step you will see a new step added to your workflow like shown below.