'Creates a linear workflow'

def setup_simple_workflow(self):

    Link.objects.filter(parent__workflow=self.wf).delete()
    Link(parent=self.wf.start, child=self.wf.end, name='related').save()
    action1 = add_node(self.wf, 'action-name-1', 'mapreduce', [self.wf.start], {'description': '', 'files': '[]', 'jar_path': '/user/hue/oozie/examples/lib/hadoop-examples.jar', 'job_properties': '[{"name":"sleep","value":"${SLEEP}"}]', 'prepares': '[{"value":"${output}","type":"delete"},{"value":"/test","type":"mkdir"}]', 'archives': '[]'})
    action2 = add_node(self.wf, 'action-name-2', 'mapreduce', [action1], {'description': '', 'files': '[]', 'jar_path': '/user/hue/oozie/examples/lib/hadoop-examples.jar', 'job_properties': '[{"name":"sleep","value":"${SLEEP}"}]', 'prepares': '[{"value":"${output}","type":"delete"},{"value":"/test","type":"mkdir"}]', 'archives': '[]'})
    action3 = add_node(self.wf, 'action-name-3', 'mapreduce', [action2], {'description': '', 'files': '[]', 'jar_path': '/user/hue/oozie/examples/lib/hadoop-examples.jar', 'job_properties': '[{"name":"sleep","value":"${SLEEP}"}]', 'prepares': '[{"value":"${output}","type":"delete"},{"value":"/test","type":"mkdir"}]', 'archives': '[]'})
    Link(parent=action3, child=self.wf.end, name='ok').save()
