``clone`` Clone a new Workflow, copying all Activities and the execution strategy. :param str name: if specified, name the new Workflow, otherwise the name is copied from the original :param str activity: if specified, perform the clone operation using ``activity`` as the root :return: a n
(self, name: str = None, activity: ActivityType = "")
| 351 | return core.BNRegisterWorkflow(self.handle, str(configuration)) |
| 352 | |
| 353 | def clone(self, name: str = None, activity: ActivityType = "") -> "Workflow": |
| 354 | """ |
| 355 | ``clone`` Clone a new Workflow, copying all Activities and the execution strategy. |
| 356 | |
| 357 | :param str name: if specified, name the new Workflow, otherwise the name is copied from the original |
| 358 | :param str activity: if specified, perform the clone operation using ``activity`` as the root |
| 359 | :return: a new Workflow |
| 360 | :rtype: Workflow |
| 361 | """ |
| 362 | if name is None: |
| 363 | name = "" |
| 364 | workflow = core.BNWorkflowClone(self.handle, str(name), str(activity)) |
| 365 | return Workflow(handle=workflow) |
| 366 | |
| 367 | def register_activity(self, activity: Activity, subactivities: List[ActivityType] = []) -> Optional[Activity]: |
| 368 | """ |