ramp_database.tools.event.add_workflow

ramp_database.tools.event.add_workflow(session, workflow_object)

Add a new workflow.

Workflow class should exist in rampwf.workflows. The name of the workflow will be the classname (e.g. Classifier). Element names are taken from workflow.element_names. Element types are inferred from the extension. This is important because e.g. the max size and the editability will depend on the type.

add_workflow is called by add_problem, taking the workflow to add from the problem.py file of the starting kit.

Parameters
sessionsqlalchemy.orm.Session

The session to directly perform the operation on the database.

workflow_objectrampwf.workflows

A ramp workflow instance. Refer to rampwf.workflows for all available workflows.