def submit(self, source, dependencies=None, inputs=None, options=None, labels=None, on_hold=False):
    'Submit a workflow.\n\n        Returns:\n            JSON Response from POST request submit a workflow\n        '
    manifest = {}
    with open(source) as fp:
        manifest['workflowSource'] = io.StringIO(fp.read())
    if dependencies:
        with open(dependencies, 'rb') as fp:
            manifest['workflowDependencies'] = io.BytesIO(fp.read())
    if inputs:
        with open(inputs) as fp:
            manifest['workflowInputs'] = io.StringIO(fp.read())
    else:
        manifest['workflowInputs'] = io.StringIO('{}')
    if options:
        with open(options) as fp:
            manifest['workflowOptions'] = io.StringIO(fp.read())
    if labels:
        with open(labels) as fp:
            manifest['labels'] = io.StringIO(fp.read())
    if on_hold:
        manifest['workflowOnHold'] = True
    r = self.__request_post(CromwellRestAPI.ENDPOINT_SUBMIT, manifest)
    logger.debug('submit: {r}'.format(r=r))
    return r
Submit a workflow.

Returns:
    JSON Response from POST request submit a workflow
def submit(self, source, dependencies=None, inputs=None, options=None, labels=None, on_hold=False):
    'Submit a workflow.\n\n        Returns:\n            JSON Response from POST request submit a workflow\n        '
    manifest = {}
    with open(source) as fp:
        manifest['workflowSource'] = io.StringIO(fp.read())
    if dependencies:
        with open(dependencies, 'rb') as fp:
            manifest['workflowDependencies'] = io.BytesIO(fp.read())
    if inputs:
        with open(inputs) as fp:
            manifest['workflowInputs'] = io.StringIO(fp.read())
    else:
        manifest['workflowInputs'] = io.StringIO('{}')
    if options:
        with open(options) as fp:
            manifest['workflowOptions'] = io.StringIO(fp.read())
    if labels:
        with open(labels) as fp:
            manifest['labels'] = io.StringIO(fp.read())
    if on_hold:
        manifest['workflowOnHold'] = True
    r = self.__request_post(CromwellRestAPI.ENDPOINT_SUBMIT, manifest)
    logger.debug('submit: {r}'.format(r=r))
    return r