'Get the latest Workflow for the StoredWorkflow identified by `id` and
encode it as a json string that can be imported back into Galaxy
This has slightly different information than the above. In particular,
it does not attempt to decode forms and build UIs, it just stores
the raw state.'

@web.json_pretty
def for_direct_import(self, trans, id):

    stored = self.get_stored_workflow(trans, id, check_ownership=False, check_accessible=True)
    return self._workflow_to_dict(trans, stored)
