'Return False if this tool that created this dataset can\'t be re-run
(e.g. upload).'

def serialize_rerunnable(self, dataset, key, **context):

    if dataset.creating_job:
        tool = self.app.toolbox.get_tool(dataset.creating_job.tool_id, dataset.creating_job.tool_version)
        if (tool and tool.is_workflow_compatible):
            return True
    return False
