This screencast shows how to work with tasks in a workflow build in Visual Studio for SharePoint.
Part 1 can be found under https://blogs.msdn.com/kalleb look for SharePoint inovation day. There you will find a "Hello World" workflow. It will show you how to deploy a workflow from Visual Studio to SharePoint
This Screencasts builds on that.
Oh, I almost forgot! I speak swedish, but if you don't crank up the volume and learn some or mute it. You'll understand what I'm doing anyway.