title: Programmatically Process all Sitecore items with Workflow
body: <p>I have situation where I have a lot items in the <code>Workbox</code> that I need to clear out.</p>
  
  <p>I need to process these items so that they can be assigned a workflow state (without triggering workflow actions) according to this rule:</p>
  
  <p>If the item has a state of draft or waiting for approval and there is a published version higher than the current version then set the workflow state to be <code>x</code> worflowstate.</p>
  
  <p>I haven't done much experimenting with workflow, so does anybody have any code samples or thoughts of how I could achieve this?</p>