title: Orchard 1.7 - Create custom Workflow Activity for Unpublished
body: <p>I needed to tap into a list of activities in Orchard CMS; unpublished activity being one of the requirements. I have looked and found out that Orchard default Workflow activity list doesn't have a unpublished activity.</p>
  
  <p>I have built a module that add my own custom Workflow Activities. I have had no problem creating activities and making them work but I have no idea how to bind one of these with an event. Even if I copy the publish activity that is found in the default activity folder of Workflow module, the copied activity doesn't get bind to any event.</p>
  
  <p>How can I make it so that my activity class is called whenever someone unpublishes or drafts a post.</p>
  
  <p>I have also created a thread <a href="https://orchard.codeplex.com/discussions/536986" rel="nofollow">here</a> but so far no answers. </p>