Example #1
0
def workflow_create(context):
    values = {"name": "test-workflow"}
    workflow = db_api.workflow_create(context, values)
    return workflow
Example #2
0
 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