'Creates a workflow from a dict. Created workflow is stored in the database and returned.'

def _workflow_from_dict(self, trans, data, source=None, add_to_menu=False, publish=False, exact_tools=False):

    workflow_contents_manager = workflows.WorkflowContentsManager(self.app)
    created_workflow = workflow_contents_manager.build_workflow_from_dict(trans, data, source=source, add_to_menu=add_to_menu, publish=publish, exact_tools=exact_tools)
    return (created_workflow.stored_workflow, created_workflow.missing_tools)
