'Converts a workflow to a dict of attributes suitable for exporting.'

def _workflow_to_dict(self, trans, stored):

    workflow_contents_manager = workflows.WorkflowContentsManager(self.app)
    return workflow_contents_manager.workflow_to_dict(trans, stored)
