ramp_database.tools.event.get_workflow

ramp_database.tools.event.get_workflow(session, workflow_name)

Get workflow from the database.

Parameters
sessionsqlalchemy.orm.Session

The session to directly perform the operation on the database.

workflow_namestr or None

The name of the workflow to query. If None, all the workflows will be queried.

Returns
workflowramp_database.model.Workflow or list of ramp_database.model.Workflow

The queried workflow.