diff options
| author | Brian Potchik <brian@vector35.com> | 2024-09-30 13:25:21 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2024-09-30 13:25:21 -0400 |
| commit | 209468660e0df9d985ffb8fe9ad19e65a20d81d3 (patch) | |
| tree | d99f547784fae39c9df619762d9ebf18703558d1 /python/workflow.py | |
| parent | 917c201f797fb16e7a0d4ac7011612998079f8f4 (diff) | |
Additional core functionality in support of Workflows.
Diffstat (limited to 'python/workflow.py')
| -rw-r--r-- | python/workflow.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/python/workflow.py b/python/workflow.py index 925c2bf0..77227933 100644 --- a/python/workflow.py +++ b/python/workflow.py @@ -522,6 +522,24 @@ class Workflow(metaclass=_WorkflowMetaclass): """ core.BNWorkflowShowReport(self.handle, "trace") + def eligibility_settings(self) -> List[str]: + """ + ``eligibility_settings`` Retrieve the list of eligibility settings for the Workflow. + + :return: list of eligibility settings + :rtype: list[str] + """ + length = ctypes.c_ulonglong() + result = core.BNWorkflowGetEligibilitySettings(self.handle, ctypes.byref(length)) + assert result is not None, "core.BNWorkflowGetEligibilitySettings returned None" + out_list = [] + try: + for i in range(length.value): + out_list.append(result[i].decode('utf-8')) + return out_list + finally: + core.BNFreeStringList(result, length.value) + @property def machine(self): if self._machine is not None: |
