Example #1
0
def _update_workflow(wf_spec, definition, scope, identifier=None):
    values = _get_workflow_values(wf_spec, definition, scope)

    return db_api.update_workflow_definition(
        identifier if identifier else values['name'],
        values
    )
Example #2
0
def _update_workflow(wf_spec, definition, scope, identifier=None):
    values = _get_workflow_values(wf_spec, definition, scope)

    return db_api.update_workflow_definition(
        identifier if identifier else values['name'],
        values
    )
Example #3
0
def _update_workflow(wf_spec, definition, scope):
    workflow = db_api.load_workflow_definition(wf_spec.get_name())

    if workflow and workflow.is_system:
        raise exc.InvalidActionException(
            "Attempt to modify a system workflow: %s" %
            workflow.name
        )
    values = _get_workflow_values(wf_spec, definition, scope)

    return db_api.update_workflow_definition(values['name'], values)
Example #4
0
def _update_workflow(wf_spec, definition, scope):
    values = _get_workflow_values(wf_spec, definition, scope)

    return db_api.update_workflow_definition(values['name'], values)
Example #5
0
def _update_workflow(wf_spec, definition, scope):
    values = _get_workflow_values(wf_spec, definition, scope)

    return db_api.update_workflow_definition(values['name'], values)