def workflow_create(context): values = {"name": "test-workflow"} workflow = db_api.workflow_create(context, values) return workflow
def workflow_create(self, context, name, wf_spec): """Create a workflow""" values = {"name": name, "spec": wf_spec} workflow = db_api.workflow_create(context, values) return workflow