You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm unable to reproduce the below example for parameter-dependent operations, and I think that adding less-arbitrary naming might help clarify where this is useful.
classProject(FlowProject):
passdefadd_foo_workflow(bar):
job.doc.setdefault('foo', dict())
deffoo_ran(job):
returnbarinjob.doc.foo# Make sure to make the operation-name a function of the parameter(s)!@Project.operation('foo-{})'.format(bar))@Project.post(foo_ran)deffoo(job):
job.doc.foo[bar] ='hello world!'forbarin (4, 8, 15, 16, 23, 42):
add_foo_workflow(bar=bar)
The text was updated successfully, but these errors were encountered:
I'm unable to reproduce the below example for parameter-dependent operations, and I think that adding less-arbitrary naming might help clarify where this is useful.
The text was updated successfully, but these errors were encountered: