'submit_workflow(application_path, properties=None) -> jobid
Raise RestException on error.'

def submit_workflow(self, application_path, properties=None):

    defaults = {'oozie.wf.application.path': application_path, 'user.name': self.user}
    if (properties is not None):
        defaults.update(properties)
    properties = defaults
    return self.submit_job(properties)
