Skip to content

Commit 385f2fa

Browse files
committed
Add initial composable workflows.
1 parent da5a7bd commit 385f2fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/workflow.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def register(self, configuration: str = "") -> bool:
315315
"""
316316
return core.BNRegisterWorkflow(self.handle, str(configuration))
317317

318-
def clone(self, name: str, activity: ActivityType = "") -> "Workflow":
318+
def clone(self, name: str = None, activity: ActivityType = "") -> "Workflow":
319319
"""
320320
``clone`` Clone a new Workflow, copying all Activities and the execution strategy.
321321
@@ -324,6 +324,8 @@ def clone(self, name: str, activity: ActivityType = "") -> "Workflow":
324324
:return: a new Workflow
325325
:rtype: Workflow
326326
"""
327+
if name is None:
328+
name = ""
327329
workflow = core.BNWorkflowClone(self.handle, str(name), str(activity))
328330
return Workflow(handle=workflow)
329331

0 commit comments

Comments
 (0)