Register an workflow to be showed in the workflows list.

def register_workflow(self, name, workflow):
        """Register an workflow to be showed in the workflows list."""
        assert name not in self.workflows
        self.workflows[name] = workflow