What does your own work item definition do? Could you please mention an example of what you are trying to achieve?
For example, if you have a custom work item definition, "Ping Server". Then, you will have to have some code that pings a server. You can have it inside the Console classpath, using it as I explained in the previuos comment. Or maybe calling a webservice?
Demian