summaryrefslogtreecommitdiff
path: root/python/workflow.py
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2024-08-16 13:37:13 -0400
committerBrian Potchik <brian@vector35.com>2024-08-16 13:37:13 -0400
commit385f2fa00e829aea8ec3ebb765785eeb2cbb5ca0 (patch)
tree5f789c8f4c0f91d8b14093d13133fa62c3fafeb8 /python/workflow.py
parentda5a7bdce8ccae5a66f312a09660160fd3819027 (diff)
Add initial composable workflows.
Diffstat (limited to 'python/workflow.py')
-rw-r--r--python/workflow.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/workflow.py b/python/workflow.py
index dbff138d..29d86f5a 100644
--- a/python/workflow.py
+++ b/python/workflow.py
@@ -315,7 +315,7 @@ class Workflow(metaclass=_WorkflowMetaclass):
"""
return core.BNRegisterWorkflow(self.handle, str(configuration))
- def clone(self, name: str, activity: ActivityType = "") -> "Workflow":
+ def clone(self, name: str = None, activity: ActivityType = "") -> "Workflow":
"""
``clone`` Clone a new Workflow, copying all Activities and the execution strategy.
@@ -324,6 +324,8 @@ class Workflow(metaclass=_WorkflowMetaclass):
:return: a new Workflow
:rtype: Workflow
"""
+ if name is None:
+ name = ""
workflow = core.BNWorkflowClone(self.handle, str(name), str(activity))
return Workflow(handle=workflow)