The following document explains in datail all the steps to create a custom mass activity from scratch.
(Login Required) Cookbook Mass Activities