How sloppiness and SPWorkflowTask.AlterTask() could inadvertantly lock your workflow task
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?
Solvera LipDub Project
Working for a great company has it's benefits and sometimes we get to do really fun stuff. Be it working with people we respect, working on products and technologies we love, or doing crazy random things for no other reason than having fun. As a consultant company it's often hard to meet people that work on different client sites. As a result we have frequent social gatherings and the latest one was quite a special one. Check out the video below the break!
