This is an example of How to create an approval workflow in SharePoint 2010 with Visual studio 2010 and InfoPath 2010.