aarebrot.net Frode's blog on Sharepoint and other stuff

How sloppiness and SPWorkflowTask.AlterTask() could inadvertantly lock your workflow task

Posted on October 19, 2011
VN:F [1.9.22_1171]
Rating: 5.0/5 (3 votes cast)

The SPWorkflowTask.AlterTask() method is handy dandy. It allows us to alter task details from outside of the workflow itself. I was using it in a couple of custom task forms I had created to update the task based on some user input. It's pretty simple. You get a reference to the active workflow task item, create a hashtable that you populate with the data you want to change, then use AlterTask() to update the task.

This is pretty much exactly what I was doing, except I threw in an item.Update() after my SPWorkflowTask.AlterTask() call for good measure. I wasn't sure if the AlterTask() actually did an Update() internally so I figured it couldn't possibly hurt, right?

Speaking at the Prairie Dev Con, in November

Posted on August 12, 2011
VN:F [1.9.22_1171]
Rating: 5.0/5 (1 vote cast)

Prairie Dev Con logoI will be doing a session on  SharePoint 2010 workflows at the Prairie Dev Con in Winnipeg this fall. The event takes place at the Viscount Gort Hotel on November 21 and 22. This session will feature part of the presentation I did earlier this year, but will focus on and delve deeper into workflows. Be sure to check it out to see how to develop a complete workflow with custom forms using Visual Studio 2010 (without InfoPath). Also make sure you check out their website and get your tickets while the early bird offer is still on. Hope to see you there!

Slide deck and demos from yesterdays presentation

Posted on May 12, 2011
VN:F [1.9.22_1171]
Rating: 4.5/5 (2 votes cast)

Thanks to everyone who showed up at yesterdays event. This was my first public presentation and based on the feedback I guess I did good. I hope you enjoyed the content, and that you learned something in the process. I'll be out of the country for the next 2 weeks, but you're welcome to tweet/email me questions and comments if you have any. I'll try and get back to you as soon as I can.

You can find the slides from my presentation at the bottom of this post, along with the Visual Studio solutions for the three demos that I did. These are the actual demos that I created during the presentation, complete with grammar mistakes and everything, so you should be looking at the same thing that you saw then. You'll need a dev machine setup with SharePoint 2010 and Visual Studio 2010 to be able to try these out.

As a last note, I should give credit where credit is due. The fourth slide in my presentation was borrowed from Eric Shupps' TechEd 2010 presentation.