
When you first start building SharePoint workflows, you’ll sometimes get a nasty, empty feeling in the base of your stomach. It that feeling of venturing into the unknown and it’s usually accompanied by that dreaded Error Occured message. You were expecting a confidence-inducing In Progress message instead. Where to now? With all the quirks of SharePoint how do you get your workflow moving again?
This is no different than when a car breaks down. You… call a mechanic and hail a cab. Job done! Thanks for visiting my blog.
So, what happens when you’re out in the middle of the desert, in a foreign country, and you can’t afford a mechanic to save yourself? Well, it’s time to pop the hood and have a look at the engine, and that’s exactly what we’re going to do in this guide. Lucky for us, SharePoint’s quite a bit more expressive about what caused your workflow to stall. The trick, for developers, is in learning how to listen.
Read more ›
The setState activity is a SharePoint Workflow activity that modifies the status of a running workflow. Normally, when you initiate a custom SharePoint workflow, its status changes to in progress. It will stay in this state until the worfklow completes, at which point the status will change to completed. The problem is that the status will always change to completed, whether your workflow tasks are approved, rejected or reassigned. So, what if you want to update the workflow’s status as it progresses? What if you want to display a more meaningful status like Approved, Rejected or Reassigned? Enter the setState activity.