``insert_after`` Insert the list of ``activities`` after the specified ``activity`` and at the same level. :param str activity: the Activity node for which to insert ``activities`` after :param list[str] activities: the list of Activities to insert :return: True on success, False otherwise
(self, activity: ActivityType, activities: Union[List[str], str])
| 506 | return core.BNWorkflowInsert(self.handle, str(activity), input_list, len(activities)) |
| 507 | |
| 508 | def insert_after(self, activity: ActivityType, activities: Union[List[str], str]) -> bool: |
| 509 | """ |
| 510 | ``insert_after`` Insert the list of ``activities`` after the specified ``activity`` and at the same level. |
| 511 | |
| 512 | :param str activity: the Activity node for which to insert ``activities`` after |
| 513 | :param list[str] activities: the list of Activities to insert |
| 514 | :return: True on success, False otherwise |
| 515 | :rtype: bool |
| 516 | """ |
| 517 | if isinstance(activities, str): |
| 518 | activities = [activities] |
| 519 | input_list = (ctypes.c_char_p * len(activities))() |
| 520 | for i in range(0, len(activities)): |
| 521 | input_list[i] = str(activities[i]).encode('charmap') |
| 522 | return core.BNWorkflowInsertAfter(self.handle, str(activity), input_list, len(activities)) |
| 523 | |
| 524 | def remove(self, activity: ActivityType) -> bool: |
| 525 | """ |
no test coverage detected