Here are two more links to follow:
For Registering Custom Workflow follow this:
msdn.microsoft.com/.../gg328153.aspx
General Detailed Procedure:
inogic.blogspot.com/.../custom-workflow-activities-for.html
But the sandboxed isolation mode is limited to 2 minutes before timing out. This cannot be changed in a CRMOnline deployment.