Digging Deep – A Guide to Debugging SharePoint Workflows

Description: An error has occured in your workflow.

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 ›

Tagged with: , , , , , , , , , ,
Posted in C#.Net, SharePoint 2007, Visual Studio 2008, Workflow

Ready, Set, Workflow – Using SetState to Update Workflow Status

  • setstate_activityThe 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.

Read more ›

Tagged with: , , , , , , , , , ,
Posted in C#.Net, SharePoint 2007, Visual Studio 2008, Workflow

Simple SharePoint Workflow with InfoPath Task Form

I’m going to write a series of short(er) articles that I can reference later in longer examples. The focus of this post is to describe how to create an InfoPath form and how to pubish it as a task form, so that it can be used in a custom SharePoint workflow. A task form is presented to a user as part of the CreateTask activity in a SharePoint sequential workflow. It is rendered as a web page and if the user is running Outlook 2007, it can even be displayed within Outlook.

Read more ›

Tagged with: , , , , , , , , , , ,
Posted in C#.Net, InfoPath 2007, SharePoint 2007, Visual Studio 2008, Workflow

Super Mega Quiz – SharePoint & InfoPath Working Together

I’ve decided to write a tutorial that combines some key elements of working with InfoPath 2007 and SharePoint 2007. In this guide, I’ll be creating a quiz that can be completed online. The questions and results will be stored in SharePoint. InfoPath will provide the presentation layer for the application. It will also calculate the results and provide feedback to the quiz taker.

Read more ›

Tagged with: , , , , , , , ,
Posted in C#.Net, InfoPath 2007, SharePoint 2007
WordPress doesn’t like file paths
I'm having a bit of a problem with file paths. It seems that WP is automatically stripping out any backslash '\' characters that I use in my posts. I'm working on fixing this but it's a long (and boring) process. Thanks for being patient with this one. - fodi
Archives
Blog Stats
  • 62,086 hits