Add polymorphic method Workflow.register to add new tasks.