From adb819496e5e447b7acf5336ffe5d0a18a03c448 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Sat, 29 Jul 2023 01:59:56 -0400 Subject: Core workflows feature update. --- python/function.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'python/function.py') diff --git a/python/function.py b/python/function.py index 5df6f62a..91441bc3 100644 --- a/python/function.py +++ b/python/function.py @@ -3263,7 +3263,18 @@ class Function: handle = core.BNGetWorkflowForFunction(self.handle) if handle is None: return None - return workflow.Workflow(handle=handle) + return workflow.Workflow(handle=handle, function_handle=self.handle) + + @property + def provenance(self): + """ + ``provenance`` returns a string representing the provenance. This portion of the API is under develoment. + Currently the provenance information is undocumented, not persistent, and not saved to a database. + + :return: string representation of the provenance + :rtype: str + """ + return core.BNGetProvenanceString(self.handle) def get_mlil_var_refs(self, var: 'variable.Variable') -> List[ILReferenceSource]: """ -- cgit v1.3.1